-
Notifications
You must be signed in to change notification settings - Fork 8
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
YAML-LD-star #45
Comments
You can use |
Presumably, YAML-LD should not require anything specific to support -star; it should follow from the generalized support for JSON-LD representation in YAML. Being too explicit would require regular maintenance of YAML-LD to follow. Better figure out how to establish principles for representing JSON-LD in YAML without getting into each individual feature defined in JSON-LD, JSON-LD-star, or whatever else we may come up with. |
@gkellogg We all agree that the default route (JSON-LD->YAML-LD using the standard conversion JSON->YAML) is the base case (and an important one). The default conversion will make $id:
$id: bob
age: 42
certainty: 0.8 But {$id: bob, age: 42}: {certainty: 0.8} So Gregg, do you vote for or against this UCR? |
That certainly is an interesting capability, but also contradicts #8 and other concerns about round-trip ability, at least at the syntactic level. |
@gkellogg I think we should leave this issue open and write some test cases. I don't think that we will close this issue in 2022.
I don't know RDF* but I think that we need proper investigation. |
@ioggstream -- I realize this may seem like a quibble, but please note that while the name Discussion of the thing called A charter for an |
The RDF-star WG will have a lot of work because it needs to produce an update to a whole bunch of W3C specs: https://www.w3.org/2022/06/proposed-rdf-star-wg-charter.html. However, the delta https://w3c.github.io/rdf-star/cg-spec/editors_draft.html is pretty much settled (IMHO): the WG will need to take care of a whole lot of important details, but I don't expect any surprises at the conceptual level. |
|
I guess there should be |
As an information architect.
I want to be able to represent embedded triples and annotations.
So that I can reap the benefits of RDF-star in YAML (YAML-LD-star).
Given the JSON-LD-star effort https://json-ld.github.io/json-ld-star/, I think YAML-LD should support the same.
Examples from that spec can be translated to YAML in a straight-forward way.
Notes:
$
instead of@
to avoid quotesTurtle-star example 3
YAML-LD-star example 3:
YAML-LD-star example 4:
Turtle-star example 5
YAML-LD-star example 5:
Turtle-star example 6
YAML-LD-star example 6
Turtle-star example 7
YAML-LD-star example 7
But there is a more YAMLish way to represent these examples:
In YAML, keys may be arbitrary nodes, so example 3 can be represented like this in flow style:
YAML-LD example 3F:
{$id: bob, age: 42}: {certainty: 0.8}
And like this in block style:
YAML-LD example 3B:
YAML-LD example 7F:
{{$id: bob, knows: {$id: alice}}: {certainty: 0.8}}: {claims: ted}
The text was updated successfully, but these errors were encountered: