Class Indexer
- java.lang.Object
-
- org.openprovenance.prov.validation.Indexer
-
public class Indexer extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classIndexer.TypeTable
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Indexer(ProvFactory p, ObjectMaker om)
-
Method Summary
-
-
-
Field Detail
-
g
public final Gensym g
-
namespace
public final Namespace namespace
-
wasGeneratedByTable
public Hashtable<String,WasGeneratedBy> wasGeneratedByTable
-
wasInvalidatedByTable
public Hashtable<String,WasInvalidatedBy> wasInvalidatedByTable
-
wasStartedByTable
public Hashtable<String,WasStartedBy> wasStartedByTable
-
wasEndedByTable
public Hashtable<String,WasEndedBy> wasEndedByTable
-
wasDerivedFromTable
public Hashtable<String,WasDerivedFrom> wasDerivedFromTable
-
wasInformedByTable
public Hashtable<String,WasInformedBy> wasInformedByTable
-
wasAssociatedWithTable
public Hashtable<String,WasAssociatedWith> wasAssociatedWithTable
-
wasAttributedToTable
public Hashtable<String,WasAttributedTo> wasAttributedToTable
-
wasInfluencedByTable
public Hashtable<String,WasInfluencedBy> wasInfluencedByTable
-
actedOnBehalfOfTable
public Hashtable<String,ActedOnBehalfOf> actedOnBehalfOfTable
-
alternateOfList
public List<AlternateOf> alternateOfList
-
specializationOfList
public List<SpecializationOf> specializationOfList
-
-
Constructor Detail
-
Indexer
public Indexer(ProvFactory p, ObjectMaker om)
-
-
Method Detail
-
registerNamespaces
public void registerNamespaces(Namespace namespace)
-
index
public void index(Document doc)
-
index
public void index(Bundle bundle)
-
addTypeAttributes
public <T extends Statement> void addTypeAttributes(T entry)
-
addTypeAttributes
public <T extends Statement> void addTypeAttributes(Hashtable<String,Set<Type>> typeTable, T e)
-
summary
public String summary()
-
existentialVariable
public boolean existentialVariable(String uri)
-
existentialVariable
public boolean existentialVariable(QualifiedName name)
-
putInTable
public <T> void putInTable(Hashtable<Class,Hashtable<String,T>> t, Class<?> c, Hashtable<String,T> e)
-
makeTableIndex
public <T> Hashtable<Class,Hashtable> makeTableIndex()
TODO: can it be: Hashtable<Class,Hashtable<String,T>> TODO use this index to make other functions polymorphic.- Type Parameters:
T- a type- Returns:
- a hashtable
-
resolveDuplicate
public <T extends Influence> T resolveDuplicate(T fluen, T entry)
-
addAttributes
public <T> T addAttributes(T from, T to)
-
-