edu.utdallas.paged.mem.disk
Class PagedGraphTripleStoreDiskSparql

java.lang.Object
  extended by edu.utdallas.paged.mem.disk.PagedGraphTripleStoreDiskSparql

public class PagedGraphTripleStoreDiskSparql
extends java.lang.Object

A class that allows us to query the Lucene indices with specific subjects or objects of SPARQL queries

Author:
vaibhav

Field Summary
 org.apache.lucene.index.IndexReader objReader
          A static index reader for the object Lucene index
 org.apache.lucene.search.Searcher objSearcher
          A static index searcher for the object Lucene index
 org.apache.lucene.index.IndexReader predReader
          A static index reader for the predicate Lucene index
 org.apache.lucene.search.Searcher predSearcher
          A static index searcher for the predicate Lucene index
 org.apache.lucene.index.IndexReader subReader
          A static index reader for the subject Lucene index
 org.apache.lucene.search.Searcher subSearcher
          A static index searcher for the subject Lucene index
 
Constructor Summary
PagedGraphTripleStoreDiskSparql(java.io.File subF, java.io.File predF, java.io.File objF)
          Constructor
 
Method Summary
 void run(java.lang.String searchString, com.hp.hpl.jena.graph.Triple tr, org.apache.lucene.search.Searcher searcher, com.hp.hpl.jena.mem.MatchOrBind x, com.hp.hpl.jena.graph.query.Domain d, com.hp.hpl.jena.graph.query.StageElement next)
          Method that runs the given search string against the Lucene indices to obtain triples
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subReader

public org.apache.lucene.index.IndexReader subReader
A static index reader for the subject Lucene index


predReader

public org.apache.lucene.index.IndexReader predReader
A static index reader for the predicate Lucene index


objReader

public org.apache.lucene.index.IndexReader objReader
A static index reader for the object Lucene index


subSearcher

public org.apache.lucene.search.Searcher subSearcher
A static index searcher for the subject Lucene index


predSearcher

public org.apache.lucene.search.Searcher predSearcher
A static index searcher for the predicate Lucene index


objSearcher

public org.apache.lucene.search.Searcher objSearcher
A static index searcher for the object Lucene index

Constructor Detail

PagedGraphTripleStoreDiskSparql

public PagedGraphTripleStoreDiskSparql(java.io.File subF,
                                       java.io.File predF,
                                       java.io.File objF)
Constructor

Parameters:
subF - - the subject lucene index
predF - - the predicate lucene index
objF - - the object lucene index
Method Detail

run

public void run(java.lang.String searchString,
                com.hp.hpl.jena.graph.Triple tr,
                org.apache.lucene.search.Searcher searcher,
                com.hp.hpl.jena.mem.MatchOrBind x,
                com.hp.hpl.jena.graph.query.Domain d,
                com.hp.hpl.jena.graph.query.StageElement next)
Method that runs the given search string against the Lucene indices to obtain triples

Parameters:
searchString - - the search string
tr - - the triple pattern
searcher - - the specific index searcher
x - - the object to compare our result against
d - - the domain of variables
next - - the next sub-part of the SPARQL query to execute