-
Notifications
You must be signed in to change notification settings - Fork 152
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
recursive @reverse framing #647
Comments
You have a typo in the definition of children - subclass vs subClass. Try: {
"@id" : "bdr:O9TAXTBRC201605",
"@context" : {
"children": { "@reverse": "http://purl.bdrc.io/ontology/core/taxSubclassOf" },
"taxSubclassOf" : {
"@id" : "http://purl.bdrc.io/ontology/core/taxSubclassOf",
"@type" : "@id"
},
"@vocab" : "http://purl.bdrc.io/ontology/core/",
"bdr" : "http://purl.bdrc.io/resource/"
},
"children": {
"children": {"children": {}}
}
} It also seems that you need to be explicit about how deep you want your children to go.... chz |
Thanks for the correction! But my graph is pretty deep and I can't know in advance how deep it is... so I guess that's the main problem |
Propose close, working as expected (modulo not having typos :) ) @eroux? |
well, should I open a new ticket for not having to specify the number of levels of recursion? |
Sure :) That seems an orthogonal issue to |
well, not really : in the normal mode, infinite recursion is possible, in reverse mode, it has to be specified |
I would like to use a
@reverse
property to build a tree structure in JSON-LD but it doesn't seem to work on the dev-playground nor on the distiller. My initial file is:my frame is:
I would expect the result to be:
but instead I'm getting:
(I removed the
@context
for the sake of clarity). Is it possible to get the result I want?The text was updated successfully, but these errors were encountered: