ActiveRDF query interface

Some notes on the queries in ActiveRDF. See also the local documentation and the SPARQL tutorial for more information.

Examples

Query.new.select(:s).where(:s, FOO::thing, "active").limit(20).offset(30).execute

Filters

It's now possible to use the FILTER command in the SPARQL queries from the ActiveRDF interface:

Query.new.select(:p, :o).where(michele, :p, :o).filter_operator(:o, '=', "car1") 
# Alternative: directly pass the filter statement
Query.new.select(:p, :o).where(michele, :p, :o).filter("(?o = 'car1' || ?o = 'car2')")