-
Notifications
You must be signed in to change notification settings - Fork 156
Support JSON values that aren't mapped #333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Perhaps something like |
Might need to be more specific about the type of literal to allow for different types of processing/passthrough like: |
See http://geojson.org/geojson-ld/ for a motivation for use in GeoJSON. |
Thinking about this some more, it's important to consider the desired expanded representation. IMO, allowing values of [{
"@id": "http://exaple/foo",
"http://example/json-value": [{
"@value": [{"native": "json"}],
"@type": "http://www.w3.org/ns/jsonld#JSON"
}]
}] This allows the JSON {
"@context": {
"@vocab": "http://example/",
"@base": "http://example/",
"jsonld": "http://www.w3.org/ns/jsonld#",
"json-value": {"@type": "jsonld:JSON"}
},
"@id": "foo",
"json-value": {"native": "json"}
} Using Transforming to RDF would preserve the |
For the record, as discussed in the call, we might consider supporting all possible JSON values (i.e. strings, booleans, numbers, and null as well as objects and arrays). |
Discussed on the call today:
We may experement with using |
Deferred to WG due to https://json-ld.org/minutes/2018-04-10/#resolution-3. |
Closed in favor of w3c/json-ld-syntax#4. |
This has already been discussed several times usingvarious terms.. the most recent request has come from David Janes on the mailing list. The basic idea is to support JSON values/subtrees that aren't mapped to an IRI in the context. They should survive algorithmic transformations (basically without being touched at all).
The text was updated successfully, but these errors were encountered: