--Clear Named Graphs -- SPARQL clear graph ; -- SPARQL clear graph ; -- Data Definition via SPASQL SPARQL define get:soft "soft" select * from where {?s ?p ?o.}; SPARQL define get:soft "soft" select * from where {?s ?p ?o.}; -- Data Consolidation via SPASQL SPARQL clear graph ; SPARQL Insert {graph {?s ?p ?o}} where { select * from where {?s ?p ?o.} }; SPARQL Insert {graph {?s ?p ?o}} where { select * from where {?s ?p ?o.} }; -- Custom Relationship Type SPARQL DROP SPIN LIBRARY ; SPARQL CREATE SPIN LIBRARY { CLASS { comment """Class instance generated from a Macro that defines schema:brand""" defmacro { ?this ?n. } {{ ?this ?n. }} defmacro { ?this ?n. } {{ ?this ?n. }} } } ASK FROM virtrdf: Where { ?s ?o}; -- Sample query SPARQL DEFINE input:macro-lib PREFIX rel: WITH SELECT ?x ?y ?z WHERE { ?x a . ?x geo:long ?y. ?x geo:lat ?z. } limit 10 ;