-
Hi. I've noticed a bug in a tool that uses json-gold (gleanerio/gleaner#79) and I'm wondering if this is a json-gold bug or just me not using json-gold correctly. What happens is that I have some json-ld that I want to turn to RDF, let's say this:
The code that processes it is a bit complicated but I'll summarize what happens with it here:
And what I'm getting back out is an incomplete RDF representation of the data. In this instance, I get
You can see that lots of top-level properties, like the type Is this a bug in json-gold, or something I'm doing wrong? Do you have any tips or tricks I could try? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@nein09, my initial observation is that your context doesn't define all the required properties that are present in the document, and hence these properties get dropped at JSON-LD expansion stage. I would recommend debugging it by invoking the |
Beta Was this translation helpful? Give feedback.
-
@nein09, I think the problem is in the value of the
The
to your context, you will see that RDF gets generated for all the elements. I hope that helps. |
Beta Was this translation helpful? Give feedback.
@nein09, I think the problem is in the value of the
@id
property. When I tried using your JSON-LD document on https://json-ld.org/playground/ to generate N-Quads (this is always a good way to understand if there's an issue with the library or the document), I got the same answer as above. But when I tried getting a canonised representation, I got the following error:The
@id
…