Retrieve the names and values of attributes associated with triples

(?name ?value) <> (?s ?p ?o) . 

This magic property binds ?name and ?value to each of the <attribute-name, value> pairs of the attributes associated with each <?s ?p ?o> triple. Any of the ?name, ?value, ?s, ?p, and ?o placeholders may be bound. For example, to find all of the values associated with the "color" attribute of triples whose predicate is <ex://person>, we would write

prefix attr: <>
select ?person ?color {
('color' ?color) attr:attributesNameValue (?person <ex://person> ?o) .


The following namespace abbreviations are used:

The SPARQL magic properties reference has additional information on using AllegroGraph magic properties and functions.