Skip to content
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

Mapping between Chunks and RDF #34

Open
draggett opened this issue Mar 22, 2021 · 3 comments
Open

Mapping between Chunks and RDF #34

draggett opened this issue Mar 22, 2021 · 3 comments
Labels
Ready for editing Feature is ready for inclusion in the spec

Comments

@draggett
Copy link
Member

draggett commented Mar 22, 2021

The chunks and rules spec has an empty section on the mapping with RDF. This needs to be fleshed out using the information at: chunks and rules - mapping with RDF

The essential idea is to map names to RDF URIs in a manner similar to that used by JSON-LD. This includes support for base URLs, the use of prefixes for brevity, and links to external definitions.

@tidoust tidoust added the Ready for editing Feature is ready for inclusion in the spec label Mar 29, 2021
@tidoust
Copy link
Member

tidoust commented Mar 29, 2021

Can we restrict ourselves to mapping names to URIs for now?

I mean, JSON-LD has thorough serialization/deserialization algorithms. How far do we want to go to describe similar mechanisms with chunks?

@draggett
Copy link
Member Author

Yes, I think mapping names to URIs is fine for now. We could map Links to single triples, but in general chunks map to n-ary relations in RDF, i.e. a collection of triples with the same subject node.

@tidoust
Copy link
Member

tidoust commented Jul 9, 2021

I prepared a PR to describe the mapping. I defined @prefix as a property and not also as a chunk type as in mapping with RDF as I don't see what mandating the prefix chunk type would be useful for.

# Why should p1 be of type "@prefix"?
# Any type could work, what matters it that it gets referenced
# through an @prefix property in the @rdfmap chunk
compact p1 {
  ex: http://example.org/ns/
  schema: http://schema.org/
}

@rdfmap {
  @prefix p1
  title ex:title
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready for editing Feature is ready for inclusion in the spec
Projects
None yet
Development

No branches or pull requests

2 participants