NAME¶
RDF::aREF::Query - aREF query expression
DESCRIPTION¶
Implements aREF query <http://gbv.github.io/aREF/aREF.html#aref-query>, a
query language to access strings and nodes from agiven RDF graph.
See also functions "aref_query"
and "aref_query_map" in RDF::aREF for
convenient application.
CONFIGURATION¶
The constructor expects the following options:
- query
- aREF query <http://gbv.github.io/aREF/aREF.html#aref-query>
expression
- decoder
- Instance of RDF::aREF::Decoder to map qNames to URIs. A new instance is
created unless given.
- ns
- Optional namespace map (RDF::NS), passed to the constructor of
RDF::aREF::Decoder if no decoder is given.
apply( $graph [, $origin ] )¶
Perform the query on a given RDF graph. The graph can be given as aREF structure
(subject map or predicate map) or as instance of RDF::Trine::Model. An origin
subject node must be provided unless the RDF graph is provided as predicate
map <http://gbv.github.io/aREF/aREF.html#predicate-maps>.
query¶
Returns the aREF query expression
SEE ALSO¶
Use SPARQL for more complex queries, e.g. with RDF::Trine::Store::SPARQL.