Hallo, I'm a bit confused about the handling of datasets in version 4.2.x of OWLIM-Lite.
I like to execute the following sparql query where ?g should be either null or http://example.org/thedataset select ?s ?p ?o ?g where { graph ?g {?s ?p ?o} } The query is created by Query q = conn.prepareQuery(QueryLanguage.SPARQL, theQuery); and then a Dataset object is used to specify the named graphs DatasetImpl ds = new DatasetImpl(); ds.addNamedGraph(null); ds.addNamedGraph("http://example.org/thedataset"); q.setDataset(ds); Now the problem is that the query results also contain solutions where ?g is bound to other URIs (e.g. http://example.org/other) than the ones that were specified (null, http://example.org/thedataset). It seems that null works as a wildcard meaning "any graph/context contained in the repository"? Does anyone have an explanation for this behaviour? Best regards, Ken -- Ken Wenzel, Fraunhofer-Institut für Werkzeugmaschinen und Umformtechnik IWU Produktionsplanung und Ressourcenmanagement, e-Service-Engineering Reichenhainer Straße 88, 09126 Chemnitz, Germany Telefon: +49 371 5397-1369 mailto:[email protected] http://www.iwu.fraunhofer.de/ _______________________________________________ OWLIM-discussion mailing list [email protected] http://ontotext.com/mailman/listinfo/owlim-discussion
