Class AdditionalURIsForObjectProperties
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.searchindex.indexing.AdditionalURIsForObjectProperties
-
- All Implemented Interfaces:
IndexingUriFinder,ContextModelsUser
public class AdditionalURIsForObjectProperties extends Object implements IndexingUriFinder, ContextModelsUser
For a given statement, return the URIs that may need to be updated in the search index because of their object property relations to the resources in the statement. Context nodes are not handled here. They are taken care of in AdditionalURIsForContextNodex.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Loglogprotected static Stringprefixsprotected StringQUERY_FOR_RELATEDprotected RDFServicerdfService
-
Constructor Summary
Constructors Constructor Description AdditionalURIsForObjectProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>allIndividualsRelatedByObjectPropertyStmts(String uri)protected List<String>doDataPropertyStmt(org.apache.jena.rdf.model.Statement stmt)protected List<String>doObjectPropertyStmt(org.apache.jena.rdf.model.Statement stmt)voidendIndexing()Indicates that the collection of statements being processed is complete.List<String>findAdditionalURIsToIndex(org.apache.jena.rdf.model.Statement stmt)For the domain that is the responsibility of the given implementation, calculate the URIs that need to be updated in the search index.voidsetContextModels(ContextModelAccess models)voidstartIndexing()Indicates that a new collection of statements is about to be processed.StringtoString()
-
-
-
Field Detail
-
log
protected static final org.apache.commons.logging.Log log
-
rdfService
protected RDFService rdfService
-
prefixs
protected static final String prefixs
- See Also:
- Constant Field Values
-
QUERY_FOR_RELATED
protected final String QUERY_FOR_RELATED
- See Also:
- Constant Field Values
-
-
Method Detail
-
setContextModels
public void setContextModels(ContextModelAccess models)
- Specified by:
setContextModelsin interfaceContextModelsUser
-
findAdditionalURIsToIndex
public List<String> findAdditionalURIsToIndex(org.apache.jena.rdf.model.Statement stmt)
Description copied from interface:IndexingUriFinderFor the domain that is the responsibility of the given implementation, calculate the URIs that need to be updated in the search index. The URIs in the list will be updated by the IndexBuilder, which will handle URIs of new individuals, URIs of individuals that have changes, and URIs of individuals that have been removed from the model.- Specified by:
findAdditionalURIsToIndexin interfaceIndexingUriFinder- Returns:
- List of URIs. Never return null.
-
startIndexing
public void startIndexing()
Description copied from interface:IndexingUriFinderIndicates that a new collection of statements is about to be processed.- Specified by:
startIndexingin interfaceIndexingUriFinder
-
endIndexing
public void endIndexing()
Description copied from interface:IndexingUriFinderIndicates that the collection of statements being processed is complete.- Specified by:
endIndexingin interfaceIndexingUriFinder
-
doObjectPropertyStmt
protected List<String> doObjectPropertyStmt(org.apache.jena.rdf.model.Statement stmt)
-
doDataPropertyStmt
protected List<String> doDataPropertyStmt(org.apache.jena.rdf.model.Statement stmt)
-
allIndividualsRelatedByObjectPropertyStmts
protected List<String> allIndividualsRelatedByObjectPropertyStmts(String uri)
-
-