-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The following works for me on the CRAN version but not the dev version:
library("jsonld")
# Example from https://github.com/digitalbazaar/jsonld.js#quick-examples
doc <- '{
"http://schema.org/name": "Manu Sporny",
"http://schema.org/url": {"@id": "http://manu.sporny.org/"},
"http://schema.org/image": {"@id": "http://manu.sporny.org/images/manu.png"}
}'
# Compact given a url to a context:
out <- jsonld_compact(doc, "http://purl.org/codemeta/2.0")
I wonder if this is related to 9281d4b . I'm thinking that turning content negotiation off might not be a good idea since it seems the basic json-ld algorithms rely on content negotiation as I comment in ropensci/codemetar#34. But the above fails for me with even the default setting in the dev version, so I think is a bug(?)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels