-
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
Invalid JSON-LD syntax; an @context @type value must be an absolute IRI #1
Comments
Hi @samuel-kerrien (long time no see!) Thanks for documenting the issue, I'll investigate further tomorrow but quickly I'll make to following points:
The correct Schemaorg element to use should be sod:DataCatalog (for DATS.DatasetRepository) and sdo:DataDownload (for DATS.DatasetDistribution) "storedIn": { In the DATS example: The JSON element @type point to the DATS objects hence no sdo prefixing is used. "distributions": [{ this context matches to
I ran into inconsistencies in a different context with triples returns varying greatly between the 2 libraries. So more digging is required. P |
Hi @proccaserra (indeed, a long time ;)), Thanks a lot for your quick input on the issue I am raising, this is very helpful ! Thanks for pointing out the correct Looking further into the validation error of https://github.com/datatagsuite/examples/blob/master/BDbag-AGR-example.json
Please note the statement: As a demonstration, I have taken this file So all in all, it seems to be there are 2 contexts to fix:
Actually, I took it one step further and inlined both my fixed
|
hi @samuel-kerrien , thx for investigating further. There were indeed problems in our sdo context file. |
Great, I can confirm it works smoother now in the json-ld playground. I have had a quick look at the Google tool to validate structured data and it looks like all errors are related to contexts. Funnily enough, when I inline the context in the DATS file, the errors do not manifest. I am quite interested in your findings on the matter, would be great if you could post an update when you to crack this one ... Cheers ! |
Hi guys,
I am playing with DATS and in the process I have tried to use several tools to expand/compact the json-ld representation:
Both are failing with some of the example provided in this repository, for instance this file:
https://github.com/datatagsuite/examples/blob/master/BDbag-AGR-example.json
The error message they report is:
Invalid JSON-LD syntax; an @context @type value must be an absolute IRI
.Now I can see that
rdflib
appears to be loading that data just fine in your notebook example:https://hub.gke.mybinder.org/user/datatagsuite-dats-tools-bxg5y72t/notebooks/notebooks/dats_agr.ipynb
Here is an example of the issue I seem to be facing with
dataset_sdo_context.jsonld
:https://github.com/datatagsuite/context/blob/master/sdo/dataset_sdo_context.jsonld
both 'storedIn' and 'distribution' appear to have a @type that is not a valid IRI, respectively
DataRepository
andDatasetDistribution
.To give an example that would work in the json-ld playground, I have modified the file BDbag-AGR-example.json (see below) as follow:
distributions
andstoredIn
@type
withsdo:
to make it a valid IRI. Now I am unsure if this is the IRI you were intending to use of not.identifiers
,creators
,has_part
,distributions
. I assume I could identify the offending@type
and modify them in a similar way to make them valid IRI.Any chance you could test this json-ld example on the json-ld playground (https://json-ld.org/playground/) and verify that your contexts are valid ?
The text was updated successfully, but these errors were encountered: