edu.utdallas.paged.mem.disk
Class PagedGraphTripleStoreDiskReasoning

java.lang.Object
  extended by edu.utdallas.paged.mem.disk.PagedGraphTripleStoreDiskBase
      extended by edu.utdallas.paged.mem.disk.PagedGraphTripleStoreDiskReasoning

public class PagedGraphTripleStoreDiskReasoning
extends PagedGraphTripleStoreDiskBase

An implementation of Lucene search when we do reasoning

Author:
vaibhav

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.utdallas.paged.mem.disk.PagedGraphTripleStoreDiskBase
PagedGraphTripleStoreDiskBase.Singleton
 
Field Summary
static org.apache.lucene.index.IndexReader objReader
          A static index reader for the object Lucene index
static org.apache.lucene.search.Searcher objSearcher
          A static index searcher for the object Lucene index
static org.apache.lucene.index.IndexReader predReader
          A static index reader for the predicate Lucene index
static org.apache.lucene.search.Searcher predSearcher
          A static index searcher for the predicate Lucene index
static org.apache.lucene.index.IndexReader subReader
          A static index reader for the subject Lucene index
static org.apache.lucene.search.Searcher subSearcher
          A static index searcher for the subject Lucene index
 
Fields inherited from class edu.utdallas.paged.mem.disk.PagedGraphTripleStoreDiskBase
increment, incrementThreshold, lineIndex, p, readLine, tripleMatch
 
Constructor Summary
PagedGraphTripleStoreDiskReasoning(com.hp.hpl.jena.graph.TripleMatch tm, java.io.File subF, java.io.File predF, java.io.File objF)
          Constructor
 
Method Summary
 java.util.Iterator find()
          Method to find a triple pattern in the lucene index
 java.util.Iterator read(java.lang.String searchString, java.lang.String fileString)
          Method that checks the lucene index for a string
 
Methods inherited from class edu.utdallas.paged.mem.disk.PagedGraphTripleStoreDiskBase
add, removePunctuation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subReader

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


predReader

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


objReader

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


subSearcher

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


predSearcher

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


objSearcher

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

Constructor Detail

PagedGraphTripleStoreDiskReasoning

public PagedGraphTripleStoreDiskReasoning(com.hp.hpl.jena.graph.TripleMatch tm,
                                          java.io.File subF,
                                          java.io.File predF,
                                          java.io.File objF)
Constructor

Parameters:
tm - - the triple pattern we are looking for
subF - - the subject lucene index
predF - - the predicate lucene index
objF - - the object lucene index
Method Detail

find

public java.util.Iterator find()
Description copied from class: PagedGraphTripleStoreDiskBase
Method to find a triple pattern in the lucene index

Specified by:
find in class PagedGraphTripleStoreDiskBase
Returns:
a null iterator or an iterator that contains the triples that match the triple pattern we are looking for
See Also:
PagedGraphTripleStoreDiskBase.find()

read

public java.util.Iterator read(java.lang.String searchString,
                               java.lang.String fileString)
Description copied from class: PagedGraphTripleStoreDiskBase
Method that checks the lucene index for a string

Specified by:
read in class PagedGraphTripleStoreDiskBase
Parameters:
searchString - - the strinng we are looking for
fileString - - the index we want to check
Returns:
a null iterator or an iterator that contains the triples that match the triple pattern we are looking for
See Also:
PagedGraphTripleStoreDiskBase.read(String, String)