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

Support for RDF* #95

Closed
jacoscaz opened this issue Aug 1, 2020 · 4 comments
Closed

Support for RDF* #95

jacoscaz opened this issue Aug 1, 2020 · 4 comments

Comments

@jacoscaz
Copy link
Collaborator

jacoscaz commented Aug 1, 2020

How should we index quads within quads? This is a hard one!

@jacoscaz
Copy link
Collaborator Author

I will close this for now as we do not need this internally and there seem to be very little interest (if any at all). Will reopen should someone ask for it.

@jeswr
Copy link

jeswr commented Jul 21, 2022

@jacoscaz - just wondering if you ever put more thought into the indexing strategy as I'm currently looking into RDF-star indexing for N3.js (w3c/rdf-star#270)

@jacoscaz
Copy link
Collaborator Author

@jeswr we don't really need RDF-star internally so I haven't given this much thought over the last few months. Last I looked at this, however, I struggled with how to make quads-as-terms easily queryable. The only way I've come up with so far is to convert RDF-star triples into named graphs:

:man :hasSpouse :woman .
<<:man :hasSpouse :woman>> :startDate "2020-02-11"^^xsd:date .

would become

:man :hasSpouse :woman <someprefix_9999>.
<someprefix_9999> :startDate "2020-02-11"^^xsd:date .

However, doing this would likely present a challenge when in the presence of multiple identical quad-subjects:

<<:man :hasSpouse :woman>> :startDate "2020-02-11"^^xsd:date .
<<:man :hasSpouse :woman>> :provenance <some_origin> .

In a naive implementation, this would lead to two different but equivalent named graphs that would need to be reconciled into a single one.

Another potential way to index RDF-star triples might be to have a separate set of indexed for quad-subjects that somehow refer to triples in the standard indexes, but that also leads to a kind of "foreign key" that basically becomes equivalent to a named graph IMHO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants