-
Notifications
You must be signed in to change notification settings - Fork 0
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
JSON-LD not compliance with the standard #40
Comments
The JSON-LD is generated by Jena. So I would say that it is compatible.
No, contexts can be also provided as part of the document. Not needed to be hosted somewhere and referenced via URI.
OK, but this does not mean that the JSON-LD output is not according to the standard.
I don't understand what you mean by "not mapped"? In the context there is As for your proposals:
We can use the http://jsonld-context.io service to generate the context and then host it. But I would host it on some more stable place. e.g. at the same location where is hosted the NIF ontology - that is somewhere under persistence.uni-leipzig.org/nlp2rdf/ontologies/
Your claim "Keys must be without prefixes" its not true - they can be with prefixes. Its matter of choice. Yes, the context takes care of them. |
I think we should trust the Jena library. Further m1ci discussed that we can leave it as it is. There is only one thing, about the jsonld-context. What exactly does that mean? Do we need to rely on an external API when we use this context? And what would this change mean for the implementation? Do we need to change the output of each e-Service in case the output format is JSON-LD? |
It allows clients to use shortcut terms, like the first name of a mutual friend, to communicate more quickly but without losing accuracy. It's quite practical cause it simplifies the JSON-LD. For more see https://www.w3.org/TR/json-ld/#the-context
No, there is no need to rely on any external API.
Instead of using Jena for generating JSON-LD we will use the library of Sandro. @sandroacoelho please confirm.
No need to change anything in the e-services. The only thing to be changed will be in the "common" library which generates JSON-LD out of given RDF. |
Hi @m1ci , @jnehring
Our current JSON-LD produced by FREME Common Module is not fully compliance with the standard. The problems are:
1. Context should be just an URL that represents all ontologies that @graph collection have;
2. NIF and RDF ontologies are not fully mapped in context;
3. Some properties are not mapped in JSONLD-playground (E.g: itsrdf:taConfidence and nif:anchorOf). If it happens, you will lose data when you convert to flattened, compacted, framed or n-quads format ;
We can fix all of points above as follow:
1. Use the service http://jsonld-context.io/ to produce our context directly
OR store / distribute it using a static file under www.freme-project.eu
2. The service http://jsonld-context.io/ reads any ontology and produces a complete context. We don't need to care about it
3. All keys in JSON-LD must be produced without prefixes. The context is responsible for assign the respective prefixes on it
E.g
Best,
The text was updated successfully, but these errors were encountered: