public final class SimpleKnowledgeSourceBackend extends AbstractKnowledgeSourceBackend
| Constructor and Description |
|---|
SimpleKnowledgeSourceBackend() |
SimpleKnowledgeSourceBackend(PropositionDefinition... propDefs) |
close, getPropositionsByTerm, getPropositionsByTermSubsumption, readValueSetaddBackendListener, fireBackendUpdated, fireEvent, fireUnrecoverableError, getConfigurationsId, getId, removeBackendListener, setEventListeners, setIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddBackendListener, getConfigurationsId, getId, removeBackendListener, setEventListenerspublic SimpleKnowledgeSourceBackend()
public SimpleKnowledgeSourceBackend(PropositionDefinition... propDefs)
public void initialize(BackendInstanceSpec config) throws BackendInitializationException
BackendBackendInstanceSpec. It is called
for you by BackendInstanceSpec.getInstance(), but if you
create a Backend object yourself, you must call this manually
before using it.initialize in interface Backend<KnowledgeSourceBackendUpdatedEvent>initialize in class AbstractBackend<KnowledgeSourceBackendUpdatedEvent>config - the configuration Properties object.BackendInitializationExceptionpublic void fireKnowledgeSourceBackendUpdated()
fireKnowledgeSourceBackendUpdated in class AbstractKnowledgeSourceBackendAbstractKnowledgeSourceBackendpublic String getDisplayName()
BackendString.public PropositionDefinition readPropositionDefinition(String id) throws KnowledgeSourceReadException
KnowledgeSourceBackendid - a proposition id String. Guaranteed not
null.PropositionDefinition, or null if none
with the given id was found.KnowledgeSourceReadExceptionpublic List<PropositionDefinition> readPropositionDefinitions(String[] ids) throws KnowledgeSourceReadException
KnowledgeSourceReadExceptionpublic AbstractionDefinition readAbstractionDefinition(String id) throws KnowledgeSourceReadException
KnowledgeSourceReadExceptionpublic List<AbstractionDefinition> readAbstractionDefinitions(String[] ids) throws KnowledgeSourceReadException
KnowledgeSourceReadExceptionpublic ContextDefinition readContextDefinition(String id) throws KnowledgeSourceReadException
KnowledgeSourceReadExceptionpublic List<ContextDefinition> readContextDefinitions(String[] ids) throws KnowledgeSourceReadException
KnowledgeSourceReadExceptionpublic TemporalPropositionDefinition readTemporalPropositionDefinition(String id) throws KnowledgeSourceReadException
KnowledgeSourceReadExceptionpublic List<TemporalPropositionDefinition> readTemporalPropositionDefinitions(String[] ids) throws KnowledgeSourceReadException
KnowledgeSourceReadExceptionpublic String[] readInduces(String propId) throws KnowledgeSourceReadException
KnowledgeSourceReadExceptionpublic String[] readSubContextOfs(String propId) throws KnowledgeSourceReadException
KnowledgeSourceReadExceptionpublic Set<String> getKnowledgeSourceSearchResults(String searchKey) throws KnowledgeSourceReadException
KnowledgeSourceReadExceptionpublic Collection<String> collectPropIdDescendantsUsingAllNarrower(boolean inDataSourceOnly, String[] propIds)
public Collection<String> collectPropIdDescendantsUsingInverseIsA(String[] propIds)
public Collection<PropositionDefinition> collectPropDefDescendantsUsingAllNarrower(boolean inDataSourceOnly, String[] propIds)
public Collection<PropositionDefinition> collectPropDefDescendantsUsingInverseIsA(String[] propIds)
Copyright © 2012–2018 Emory University. All rights reserved.