public class SelectQueryDocumentModifier extends Object implements DocumentModifier, ContextModelsUser
| Modifier and Type | Field and Description |
|---|---|
protected String |
label
A name to be used in logging, to identify this instance.
|
protected List<String> |
queries
The queries to be executed.
|
protected RDFService |
rdfService |
| Constructor and Description |
|---|
SelectQueryDocumentModifier() |
| Modifier and Type | Method and Description |
|---|---|
void |
addQuery(String query) |
void |
addTargetField(String fieldName) |
void |
addTypeRestriction(String typeUri) |
void |
modifyDocument(Individual ind,
SearchInputDocument doc)
Use the rules contained within this class to modify this search document,
according to the characteristics of this individual.
|
protected boolean |
passesTypeRestrictions(Individual ind) |
void |
setContextModels(ContextModelAccess models) |
void |
setLabel(String l) |
void |
shutdown()
Called to inform the DocumentModifier that the system is shutting down.
|
String |
toString() |
void |
validate() |
protected RDFService rdfService
protected String label
public void setContextModels(ContextModelAccess models)
setContextModels in interface ContextModelsUserpublic void setLabel(String l)
public void addQuery(String query)
public void addTargetField(String fieldName)
public void addTypeRestriction(String typeUri)
public void validate()
public void modifyDocument(Individual ind, SearchInputDocument doc)
DocumentModifiermodifyDocument in interface DocumentModifierind - The individual that is being indexed. Will not be null.doc - The document as it stands so far. Will not be null.protected boolean passesTypeRestrictions(Individual ind)
public void shutdown()
DocumentModifiershutdown in interface DocumentModifierCopyright © 2022. All rights reserved.