We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, please look at this example:
document
{ "@context": "https://raw.githubusercontent.com/filip26/iridium-cbor-ld/main/src/test/resources/com/apicatalog/cborld/encoder/0025-context.jsonld", "a": "Note", "x": { "a": "x", "b": "y", "d": 106 }, "y": {"a": "x", "b": "y", "c": 102 } }
context
{ "@context": { "@vocab": "https://www.w3.org/ns/activitystreams#", "y": { "@id": "idy", "@context": { "a": "@type", "b": "@id", "c": "longitude" } }, "a": "@type", "x": { "@id": "idx", "@context": { "a": "@id", "b": "@type", "d": "latitude" } } } }
The output produced by the library is:
[{ 0: ...0025-context.jsonld, 100: Note, 102: { 100: 102, 106: y, 108: 106 }, 104: { 100: x, 106: 104, 110: 102 } }]
where
100: a, 102: x, 104: y, 105: b, 108: d 110: c
why is not @type x.b : y and y.a: x encoded?
x.b : y
y.a: x
by using encoded examples produced by the library as a source to reverse engineering, I've got this result:
[{ 0: ...0025-context.jsonld, 100: Note, 102: { 100: 102, 106: 104, 108: 106 }, 104: { 100: 102, 106: 104, 110: 102 } }]
Thank you!
The text was updated successfully, but these errors were encountered:
digging more into it, if you remove a: @type from scoped context for y then the result is
a: @type
y
[{ 0: ...0025-context.jsonld, 100: Note, 102: { 100: x, 106: y, 108: 106 }, 104: { 100: x, 106: 104, 110: 102 } }]
Sorry, something went wrong.
We should add tests that show whatever the right behavior here is, ensure we pass them, and then close the issue.
No branches or pull requests
Hi,
please look at this example:
document
context
The output produced by the library is:
where
why is not @type
x.b : y
andy.a: x
encoded?by using encoded examples produced by the library as a source to reverse engineering, I've got this result:
Thank you!
The text was updated successfully, but these errors were encountered: