Skip to content
New issue

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

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

Already on GitHub? # to your account

URI of a Schema? #112

Open
rwst opened this issue Jan 10, 2021 · 2 comments
Open

URI of a Schema? #112

rwst opened this issue Jan 10, 2021 · 2 comments

Comments

@rwst
Copy link

rwst commented Jan 10, 2021

This is a newbie question: what is the URI of a Schema? Is it the URI of the start Shape? But then the metadata would be inaccessible, not? I'm asking because the parsing of Schema JSON in RDFLIB makes the root triple BNode a shex:Schema. Is this intended? How would I set an "id" on the Schema?

Thanks in advance for your patience.

@rwst
Copy link
Author

rwst commented Jan 10, 2021

I was confused because the Schema syntax didn't have an id element but apparently I can just set it nevertheless. Sorry for the noise.

@rwst rwst closed this as completed Jan 10, 2021
@ericprud
Copy link
Contributor

I think this raises a best-practice question: should ShExJ and ShExR preserve the IRI of the document from which they were retrieved. ShEx{C,J,R} are isomorphic, which means we can't have any properties in ShExJ that don't have a counterpart in ShExC. That said, it could be polite to preserve it in the subject:

{ "type": "Schema", "@id": "", "shapes": [] }
<> a shex:Schema ;
   sh:shapes () .

This would introduce a bit more magic context into the test suite. @gkellogg , thoughts?

@ericprud ericprud reopened this Jan 11, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants