You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem seems to be that rdflib doesn't process the @context inside the value property, while the JSON-LD playground does (provided that you set a base URL in the options for the bblock example!).
Reading the JSON-LD Processing Algorithm doc, I'm not 100% sure if it should, but I'm leaning towards yes (13.4.5 declares that @graph can be a property and that it should be recursively processed).
I'll see if I can apply a quick fix to rdflib; otherwise, as a workaround, we could treat '@graph' differently when building contexts.
I think we will need to use the proper context, but if we have a single container with homogeneous entries the context would be ok at the parent level, so we could implement that with a caveat or check only one graph property is allowed/safe?
I've implemented the workaround in opengeospatial/ogc-na-tools@71b576d. Basically, if a @graph is found, it's inner context is appended to its parent, not to the term itself.
@graph is a bit of magic required to handle nested objects such as a STA datastream - where the top level is an anonymous object with no id.
check out
https://tinyurl.com/23ht6l35
however this gets munged to this if we try to set the schema of the values in that array.
test case @ https://ogcincubator.github.io/bblocks-sta/bblock/ogc.api.sta.Datastream.Datastream-Values-ObsCollection/semantic-uplift
The text was updated successfully, but these errors were encountered: