-- Actual query using macro -- AncestorOf SPARQL DEFINE input:macro-lib WITH SELECT * WHERE { ?x a ; ?y } ; -- Test 1 -- Actual query using macro -- hasSibling SPARQL DEFINE input:macro-lib WITH SELECT ?y AS ?SiblingOfBarbara WHERE { a ; ?y } ; -- Test 2 SPARQL DEFINE input:macro-lib WITH SELECT distinct * WHERE { ?s a ; ?y. } ; -- Test 3 SPARQL DEFINE input:macro-lib WITH SELECT ?y WHERE { a ; ?y } ; -- Test 4 SPARQL DEFINE input:macro-lib WITH SELECT ?s ?y WHERE { ?s a ; ?y } ; -- Test 5 SPARQL DEFINE input:macro-lib WITH SELECT ?s ?y WHERE { ?s a ; ?y } ; -- Test 6 SPARQL DEFINE input:macro-lib WITH SELECT ?s ?y WHERE { ?s a ; ?y } ; -- Test 7 DEFINE input:macro-lib SELECT ?this as ?person ?y as ?parent as ?relation ?n as ?child FROM WHERE { [] ?n; ?y. ?y ?this . }