RDFLib / rdflib-jsonld

JSON-LD parser and serializer plugins for RDFLib
Other
280 stars 71 forks source link

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

Open adsharma opened 3 years ago

adsharma commented 3 years ago

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: