Comments (7)
I agree that there is no trivial way to convert back from "unstared" RDF to RDF-star, regardless of the method. I was not even suggesting we try to support it. All this, I guess, makes it a rather ad-hoc feature, that probably does not deserve to be integrated in the spec, after all... WDYT?
from json-ld-star.
I think better is a more generic specification for "reifying" RDF-star into normal RDF and back again; either/both using the reification vocabulary or named graphs. No need to make it a JSON-LD-specific thing.
from json-ld-star.
Interesting idea. It might be a bit confusing to use “graph”, as they could easily be confused with names graphs. An interesting merger could consider unnamed names graphs as N3- like graphs /: a more general case than an embedded triple. Many uses of unnamed names graphs (where the property value is a graph, and there is no explicit graph name) come fro Verifiable Claims.
from json-ld-star.
It might be a bit confusing to use “graph”, as they could easily be confused with names graphs.
Sorry but I don't quite understand this remark.
I realize that my proposal above is ambiguous about when this option is applied, maybe that's where the confusion comes from. My idea was to alter the way toRdf
works, not other algorithms (very similarly to the way we handle direction in literals).
Alternatively, we could imagine that the conversion (from RDF-star to reification or named graph) happens earlier, e.g. during the expansion... but that's not what I had in mind, and I am not sure I like that idea.
Thinking a little more about it, maybe it should not be the job of the JSON-LD processor to do this kind of "post-processing". After all, nothing in it is JSON-LD specific...
from json-ld-star.
I'm definitely conflating issues; I think that your proposal would be specifically for embedded nodes and annotation objects, that rather than creating an embedded triple, it would create an N3-style graph containing that triple (although, this gets to the re-use issue). For example Example 3 might be rendered in N3 as follows:
@prefix : <http://example.org/> .
{:bob :age 42} :certainty 0.8e0 .
But, in light of your statement above, maybe it would be closer to using named graphs (expressed in TriG), setting aside that lack of named-graph semantics for now:
@prefix : <http://example.org/> .
GRAPH _:g {:bob :age 42} .
_:g :certainty 0.8e0 .
My comment was about a larger change to interpreting graph-container values in JSON-LD, which is in line with my ideas about how JSON-LD could be considered an alternative syntax for N3 reasoning, but it may, as you suggest, be better to leave this as a mapping from RDF Named Graphs to N3 quoted graphs.
from json-ld-star.
My comment was about a larger change to interpreting graph-container values in JSON-LD, which is in line with my ideas about how JSON-LD could be considered an alternative syntax for N3 reasoning,
I was definitely not going that far 😅 (interesting as this idea is!)
from json-ld-star.
A problem with the named-graph approach is when converting from RDF, how do you distinguish a triple in a named graph which should become an embedded triple from a named graph which would be serialized using @id
and @graph
? Also, are triples in named graphs not asserted?
Its easier to see for the Reification case, although arguably, the reification triples are contained in some graph, unlike embedded triples that are not annotated.
from json-ld-star.
Related Issues (15)
- Broken link: https://github.com/json-ld/json-ld-bp/
- Allow annotations on list object HOT 4
- RDF to JSON should use @annotation, where possible HOT 5
- Expansion Algorithm: step 13.4.14
- Using `@annotation` on a `@type` HOT 15
- allow `"@annotation": "<IRI>"` in term definition HOT 3
- allow `"@type": "@triple"` or something similar? HOT 4
- W3C REC / JSON-LD 1.2/2.0 HOT 5
- are multiple triples forbidden in `@id`? HOT 1
- new container type leveraging RDF-star to encode order HOT 6
- rename "embedded node"
- Reverse properties in embedded nodes HOT 1
- Keeping quoted triples sharing subject within one node object
- Figure out restrictReferences on terms
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-ld-star.