Support for graphs, resources and SPARQL queries