I’m still in the process of poking around the “infrastructure oriented” parts of Omeka S. Some of that involves thinking about what I can do with the API.
When testing the JSON-LD that the API returns, I note that the JSON-LD playground doesn’t like the extra key-value pairs in the context object.
is the Playground’s permalink that will hit the API of an Omeka S server I’m building out. Not much content there yet.
The error is: “jsonld.SyntaxError: Invalid JSON-LD syntax; a term definition must not contain vocabulary_id”
Perhaps the Playground is being too strict. Indeed, it would be nice if it ignored keys it doesn’t recognize. But do ‘vocabulary_id’ and ‘vocabulary_label’ need to be in the context from the Omeka S perspective? If not, perhaps remove for greater compatibility with a common tool? Or another perspective I should be considering? I haven’t tried parsing this in PyLD.
p.s. Yes, I fixed the cross origin issue I was having yesterday.