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
Notice that the uri of the option is http://global-base/Test/Test/Documents/Pictures (the path contains Test twice however I was expecting the path to be http://global-base/Test/Documents/Pictures (I thought the scoped relative base would be relative to the global base). If I change the relative base to become an absolute base then I get the desired uri when expanded but I'm confused as to why the relative @base duplicates Test.
A related question I have is why does rdflib parse this JSON-LD differently to json-ld playground/pyld
When I serialise with rdflib I get the following output (Test only appears once in the option uri):
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a question about what the intended behaviour of a relative scoped
@baseshould be and why different parsers treat them differently.Take the JSON-LD below:
Using the JSON-LD Playground this JSON-LD expands to:
Notice that the uri of the option is
http://global-base/Test/Test/Documents/Pictures(the path containsTesttwice however I was expecting the path to behttp://global-base/Test/Documents/Pictures(I thought the scoped relative base would be relative to the global base). If I change the relative base to become an absolute base then I get the desired uri when expanded but I'm confused as to why the relative@baseduplicatesTest.A related question I have is why does rdflib parse this JSON-LD differently to json-ld playground/pyld
When I serialise with rdflib I get the following output (
Testonly appears once in the option uri):When I serialise with either JSONLD Playground or
pyld(Testappears twice in the option uri):Can anyone shed some light on this, thank you.
Beta Was this translation helpful? Give feedback.
All reactions