Open sanuann opened 4 years ago
Seems like this is a problem with schema.org contexts as well (https://github.com/schemaorg/schemaorg/issues/2578#issuecomment-632227864)
I was stuck in the same problem. Ended up using requests to get the context JSON separately and assign it to @context key at runtime. Then the pyld functions work!
Hope this helps
"https://schema.repronim.org/rl/activities/PHQ-9/phq9_context" is returning 405 as of today. Removing that URL and playground or pyld can expand things. If you want the normalize call to work the "@id": "phq9_schema"
needs to be a valid URI. If you change that to "@id": "urn:phq9_schema"
, you'll get output.
I am trying to run pyld functions (expand, normalize) on the document below but it doesn't seem to get the context urls linked.
This doesn't work on the JSON-LD playground either. how can I make this work? Does pyld support content negotiation/Is there a way to force accept-header?