04.12.2013 15:40, Osma Suominen wrote:
So my question is: if we assume that we're dealing with TDB graphs, and the SPARQL pattern limits the context to a single graph URI (as e.g. <http://example.com/mygraph> in the example below), how can the text:search property function know that and find out the graph URI?
Ah, nevermind, I got it now. The object available from execCxt.getActiveGraph() inside TextQueryPF.exec() is actually a GraphTDB instance in this case. GraphTDB inherits the getGraphName() method from GraphView. And it seems I can use that method (as well as isDefaultGraph() and isUnionGraph() for sanity checks) to determine the graph URI to query for in the Lucene/Solr index.
I will try to implement the query side now, but it might take a while. -Osma -- Osma Suominen D.Sc. (Tech), Information Systems Specialist National Library of Finland P.O. Box 26 (Teollisuuskatu 23) 00014 HELSINGIN YLIOPISTO Tel. +358 50 3199529 [email protected] http://www.nationallibrary.fi
