Git Product home page Git Product logo

Comments (7)

pchampin avatar pchampin commented on September 26, 2024 1

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.

gkellogg avatar gkellogg commented on September 26, 2024 1

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.

gkellogg avatar gkellogg commented on September 26, 2024

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.

pchampin avatar pchampin commented on September 26, 2024

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.

gkellogg avatar gkellogg commented on September 26, 2024

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.

pchampin avatar pchampin commented on September 26, 2024

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.

gkellogg avatar gkellogg commented on September 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.