Package ubic.basecode.ontology.providers
Class GenericOntologyService
- java.lang.Object
-
- ubic.basecode.ontology.jena.AbstractOntologyService
-
- ubic.basecode.ontology.jena.AbstractOntologyMemoryBackedService
-
- ubic.basecode.ontology.providers.GenericOntologyService
-
- All Implemented Interfaces:
OntologyService
public class GenericOntologyService extends AbstractOntologyMemoryBackedService
A way to create ad hoc ontology services (in memory) for testing- Author:
- Paul
-
-
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)
GenericOntologyService(String name, String url, boolean cache, boolean processImports)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getCacheName()
A name for caching this ontology, or null to disable caching.protected String
getOntologyName()
The simple getOntologyName() of the ontology.protected String
getOntologyUrl()
Defines the location of the ontology eg: MGEDprotected boolean
getProcessImport()
-
Methods inherited from class ubic.basecode.ontology.jena.AbstractOntologyMemoryBackedService
loadModel, loadModelFromStream
-
Methods inherited from class ubic.basecode.ontology.jena.AbstractOntologyService
cancelInitializationThread, closeIndex, findIndividuals, findResources, findTerm, findUsingAlternativeId, getAllURIs, getChildren, getParents, getResource, getTerm, getTermIndividuals, index, initialize, initialize, isEnabled, isInitializationThreadAlive, isInitializationThreadCancelled, isOntologyLoaded, loadTermsInNameSpace, 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
-
-
-
-
Method Detail
-
getOntologyName
protected String getOntologyName()
Description copied from class:AbstractOntologyService
The 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:
getOntologyName
in classAbstractOntologyService
-
getOntologyUrl
protected String getOntologyUrl()
Description copied from class:AbstractOntologyService
Defines the location of the ontology eg: MGED- Specified by:
getOntologyUrl
in classAbstractOntologyService
-
getCacheName
protected String getCacheName()
Description copied from class:AbstractOntologyService
A 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.
- Overrides:
getCacheName
in classAbstractOntologyService
-
getProcessImport
protected boolean getProcessImport()
- Overrides:
getProcessImport
in classAbstractOntologyMemoryBackedService
-
-