Skip to content

Parse all the data in the json-ld file? #99

@adsharma

Description

@adsharma

Trying to parse this file:

https://github.com/go-fed/activity/blob/master/astool/activitystreams.jsonld

with:

g = Graph().parse(data=open(sys.argv[1]).read(), format='json-ld')
for s, p, o in g:
    print(s, p, o)

does not provide all the information in the source json-ld file.

For example - I want to go over the list of properties and understand their domain and range. But I can't find the output in the graph.

Questions:

  • Is that information parsed and not provided in a triple, but provided somewhere else? If so where?
  • Or is it not parsed at all? In which case, what is missing and what needs to happen before I can recover all the information in the source JSON-LD file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions