-
Notifications
You must be signed in to change notification settings - Fork 7
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
allow "@annotation": "<IRI>"
in term definition
#27
Comments
"@type": "@annotation"
in term definition"@annotation": "<IRI>"
in term definition
I think this is a good idea, as it allows for "retrofitting" JSON terms that are not about the object into annotation terms. At the National Library of Sweden we have come across cases where provenance information has been conflated within blank node structures. A minimal abstract example would be: {
"@id": "a",
"classification": {
"@type": "Classification",
"code": "X",
"generatedBy": "some-process"
}
} Here, [
{
"@id": "a",
"classification": {"@id": "x"}
},
{
"@id": "x",
"@type": "Classification",
"code": "X", "generatedBy": {"@id": "some-process"}
}
] The above says that the classification itself has been generated, which is wrong. (The classification Its assignment to [
{
"@id": "a",
"classification": {"@id": "x", "@annotation": {"generatedBy": {"@id": "some-process"}}}
},
{
"@id": "x",
"@type": "Classification",
"code": "X"
}
] I believe this proposal would make it possible to take compact JSON-LD in the original example and make it equivalent to this: {
"@id": "a",
"classification": {
"@type": "Classification",
"code": "X",
"@annotation": {"generatedBy": {"@id": "some-process"}}
}
} through a context along the lines of: {
"@context": {
"@vocab": "http://example.org/vocab/",
"generatedBy": {
"@annotation": "http://example.org/vocab/generatedBy",
"@type": "@id"
}
}
} which would then "survive" the subsequent linking. I can imagine some variants of the exact form here. Perhaps Until JSON-LD-star becomes a standard, we can "get by" by ignoring the Another interesting example we are exploring is for representing diffs using RDF-star. See this diff example in my LD visualization tool. Use the controls in the bottom right corner to view the data using different syntaxes (and note that the data is editable, so you can e.g. paste the examples above into the textarea). As seen in the JSON-LD format, it becomes rather repetitive to use |
@niklasl great use-cases. Yes, that's exactly what this proposal is trying to solve. I am not too sure, though, about the
|
@pchampin You're absolutely right, I think what slightly bothers me is the requirement of using either (Were we to design it all from scratch, I might suggest using |
The rationale is the following (adapted from this message):
Since "ex:realization" is expected to be used exclusively as an annotation, one might want to write:
This would be homogeneous to how
@rev
works in terms definition.edited: the initial proposal (and title) was a mistake (and there was a bug in the 2nd example)
The text was updated successfully, but these errors were encountered: