-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Labels
Description
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 another quad
then q1 should still be treated normally as a quad
. However, this does not appear to be the case in the example below.
const data = `
@prefix : <http://www.example.org/> .
@prefix ex: <http://www.example.org/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
<<:bob foaf:age 23>> ex:certainty 0.9 .
`
const store = new Store();
const parser = new Parser({ format: 'turtle*' });
store.addQuads(parser.parse(data));
// Expected: 2, Result: 1
store.size
// Expected: 2, Result: 1
store.getQuads(null, null, null, null).length
// Expected: 1, Result: 0
store.getQuads(namedNode('http://www.example.org/bob'), null, null, null).length
Here I would expect that the quad with the predicate foaf:age
and the quad with the predicate ex:certainty
both contribute to the count, and are both searched over in the store.getQuads
call.