-
Notifications
You must be signed in to change notification settings - Fork 24
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
Conversion to JSON-LD is not working as expected #241
Comments
Excellent analysis, this makes sense. Can you move this issue here please: https://github.com/linkml/linkml/issues |
The root of this problem can be found in the
The issues here include:
I'll give this approach a try and will get back to you. |
Unfortunately only the old solution using rdfs:Resource produces the expected results, during the TTL conversion. |
See here for a Stack Overflow on the subject. Here is my attempt to implement your suggestion, but I keep getting obscure errors like:
|
When converting the SSSOM table to JSON-LD, the slots defined as
EntityReference
have the rangerdfs:Resource
as the datatype. So for JSON-LD, it's just another string that doesn't recognise the prefixes.In these cases, it should have the
@type: @id
. For this, the range in the schema should beuri
.Here is a piece of the JSON-LD
@context
Here is how it's loaded in RDF4J
After changing the type to
@id
(except for subject_id), this is how it looks in RDF4JThere's also another issue with
Mapping
. It's not adding the@type: Mapping
for each mapping. In the@context
, there's the definition of Mapping.The text was updated successfully, but these errors were encountered: