Default Query, saying WHERE some node has some relation to some object (All nodes are found)
SELECT DISTINCT ?node FROM DEFAULT WHERE { ?node ?p ?o . } |
---|
Select nodes with a certain type:
SELECT DISTINCT ?node FROM DEFAULT WHERE { ?node <member-key> <type-id> . } |
---|
Restrict nodes by relation
SELECT DISTINCT ?node FROM DEFAULT WHERE { ?node <relation-name> ?o . } |
---|
Restrict nodes by attribute:
SELECT DISTINCT ?node FROM DEFAULT FILTER (?attr = '100') |
---|
Restrict nodes by multiple relations to a single value:
SELECT DISTINCT ?node FROM DEFAULT WHERE { ?node <relation1> ?node2 . ?node2 <relation2> ?node3 . ?node3 attribute ?attr . FILTER (?attr = 5) . } |
---|