# This query is a quick test of syntax. # Its doesn'e actually do anything. PREFIX foaf: PREFIX : PREFIX ns: SELECT DISTINCT ?name1 ?name2 FROM WHERE { // basic triples. ?x ?y ?z . ?x :p ?z . ?x ?z . // Groups. { ?x ?y ?z . ?x :p ?z . ?x ?z . } . // Constaints ?z < 2 . ?z <2 . ?z { ?x foaf:knows ?y . ?x foaf:name ?name1 . ?y foaf:name ?name2 . } . GRAPH * { ?x ?y ?z . ?x :p ?z . } . // Disjunction { :a :b :c . } OR { :a :b :d . } . //{ { :a :b :c } OR { :a :b :d } } . { { :a :b :c } OR { :a :b :d } OR { :a :b :e } } . } LIMIT 10