Package ubic.basecode.ontology.providers
Class GenericOntologyService
- java.lang.Object
-
- ubic.basecode.ontology.jena.AbstractOntologyService
-
- ubic.basecode.ontology.providers.AbstractOntologyService
-
- ubic.basecode.ontology.providers.GenericOntologyService
-
- All Implemented Interfaces:
OntologyService
public class GenericOntologyService extends AbstractOntologyService
A way to create ad-hoc in-memory ontology services.- Author:
- Paul
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ubic.basecode.ontology.providers.OntologyService
OntologyService.InferenceMode, OntologyService.LanguageLevel
-
-
Field Summary
-
Fields inherited from class ubic.basecode.ontology.jena.AbstractOntologyService
log
-
-
Constructor Summary
Constructors Constructor Description GenericOntologyService(String name, String url)GenericOntologyService(String name, String url, boolean cache)Deprecated.useGenericOntologyService(String, String, String)with an explicit cache name insteadGenericOntologyService(String name, String url, boolean cache, boolean processImports)Deprecated.useGenericOntologyService(String, String, String)with an explicit cache name instead andAbstractOntologyService.setProcessImports(boolean)GenericOntologyService(String name, String url, String cacheName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetCacheName()A name for caching this ontology, or null to disable caching.protected StringgetOntologyName()The simple getOntologyName() of the ontology.protected StringgetOntologyUrl()Defines the location of the ontology eg: MGEDprotected booleanisOntologyEnabled()Indicate if this ontology is enabled.-
Methods inherited from class ubic.basecode.ontology.jena.AbstractOntologyService
cancelInitializationThread, findIndividuals, findResources, findTerm, findUsingAlternativeId, getAdditionalPropertyUris, getAllURIs, getChildren, getDescription, getExcludedWordsFromStemming, getInferenceMode, getLanguageLevel, getName, getParents, getProcessImports, getResource, getTerm, getTermIndividuals, index, initialize, initialize, isEnabled, isInitializationThreadAlive, isInitializationThreadCancelled, isOntologyLoaded, isSearchEnabled, loadModel, loadModelFromStream, loadTermsInNameSpace, setAdditionalPropertyUris, setExcludedWordsFromStemming, setInferenceMode, setLanguageLevel, setProcessImports, setSearchEnabled, startInitializationThread, toString, waitForInitializationThread
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ubic.basecode.ontology.providers.OntologyService
findIndividuals, findResources, findTerm, getChildren, getParents
-
-
-
-
Constructor Detail
-
GenericOntologyService
public GenericOntologyService(String name, String url, @Nullable String cacheName)
-
GenericOntologyService
@Deprecated public GenericOntologyService(String name, String url, boolean cache)
Deprecated.useGenericOntologyService(String, String, String)with an explicit cache name instead
-
GenericOntologyService
@Deprecated public GenericOntologyService(String name, String url, boolean cache, boolean processImports)
Deprecated.useGenericOntologyService(String, String, String)with an explicit cache name instead andAbstractOntologyService.setProcessImports(boolean)
-
-
Method Detail
-
getOntologyName
protected String getOntologyName()
Description copied from class:AbstractOntologyServiceThe simple getOntologyName() of the ontology. Used for indexing purposes. (ie this will determine the getOntologyName() of the underlying index for searching the ontology)- Specified by:
getOntologyNamein classAbstractOntologyService
-
getOntologyUrl
protected String getOntologyUrl()
Description copied from class:AbstractOntologyServiceDefines the location of the ontology eg: MGED- Specified by:
getOntologyUrlin classAbstractOntologyService
-
isOntologyEnabled
protected boolean isOntologyEnabled()
Description copied from class:AbstractOntologyServiceIndicate if this ontology is enabled.- Specified by:
isOntologyEnabledin classAbstractOntologyService
-
getCacheName
@Nullable protected String getCacheName()
Description copied from class:AbstractOntologyServiceA name for caching this ontology, or null to disable caching.Note that if null is returned, the ontology will not have full-text search capabilities.
- Specified by:
getCacheNamein classAbstractOntologyService
-
-