Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adsharma opened this issue Dec 4, 2020 · 0 comments
Open

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

adsharma opened this issue Dec 4, 2020 · 0 comments

Comments

@adsharma
Copy link

adsharma commented Dec 4, 2020

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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant