Open jeswr opened 3 years ago
The store doesn't do RDF-star yet as far as I recall.
AFAIK this is intended behaviour. Making a statement about something does not necessarily imply that statement. (Ruben says that cows are blue => cows are blue)
I think there are two things here:
All the rest of the above notwithstanding, RDF-star (still a draft-CG-report, not yet even a WG Editor's Draft) isn't expected to support quoted (a/k/a reified, embedded, or inline) quads; only triples are expected to be supported in this way.
I just noticed that the parser does not like RDF lists with RDF-star triples in it.
const data = `
@prefix : <http://www.example.org/> .
@prefix ex: <http://www.example.org/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
:alice ex:says ( <<:bob foaf:age 23>> ) .
`
I get a Error: Expected entity but got << on line 6.
.
I thought, I just mention it here :)
This may be a misunderstanding of the intended implementation of RDF* on my part.
To my understanding, if we have a
quad
(lets call it q1) that is the subject of anotherquad
then q1 should still be treated normally as aquad
. However, this does not appear to be the case in the example below.Here I would expect that the quad with the predicate
foaf:age
and the quad with the predicateex:certainty
both contribute to the count, and are both searched over in thestore.getQuads
call.