|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object project35.soa.ontology.sources.SingleColumnTextSource
public class SingleColumnTextSource
an ontology source that reads terms from a text file that contains a single
column of ontology terms. This is probably the simplest example of implementing
the OntologySource
interface.
Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.
Constructor Summary | |
---|---|
SingleColumnTextSource()
|
Method Summary | |
---|---|
boolean |
containsTerm(Project35FormContext project35FormContext,
OntologyTerm ontologyTerm)
determine whether the source contains a particular ontology term |
Parameter[] |
getInitialisationParameters()
|
OntologyServiceMetaData |
getOntologyServiceMetaData()
|
OntologyServiceMetaData |
getOntologyServiceMetaData(Project35FormContext project35FormContext)
|
OntologyTermProvenance |
getOntologyTermProvenance(Project35FormContext project35FormContext,
OntologyTerm ontologyTerm)
|
OntologyTerm[] |
getRelatedTerms(Project35FormContext project35FormContext,
OntologyRelationshipType relationshipType,
OntologyTerm ontologyTerm)
|
OntologySource |
getSubOntologySource(Project35FormContext project35FormContext,
Parameter[] parameterList)
returns another ontology source is basically this one but pared down by the parameters |
OntologyRelationshipType[] |
getSupportedOntologyRelationships(Project35FormContext project35FormContext)
|
OntologyTerm[] |
getTerms(Project35FormContext project35FormContext)
returns a collection of terms |
void |
initialiseService(java.net.URL resourceDirectory,
Parameter[] parameters)
|
boolean |
isWorking()
indicates whether the ontology source is ready for service |
void |
setRemoteSource(boolean isRemoteSource)
|
void |
setResourceDirectory(java.net.URL resourceDirectory)
|
java.lang.String |
test()
diagnostic method that indicates whether the ontology source is working. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingleColumnTextSource()
Method Detail |
---|
public OntologyServiceMetaData getOntologyServiceMetaData()
public void setRemoteSource(boolean isRemoteSource)
public void setResourceDirectory(java.net.URL resourceDirectory)
public Parameter[] getInitialisationParameters()
getInitialisationParameters
in interface ServiceClass
public void initialiseService(java.net.URL resourceDirectory, Parameter[] parameters) throws java.lang.Exception
initialiseService
in interface ServiceClass
java.lang.Exception
public OntologyServiceMetaData getOntologyServiceMetaData(Project35FormContext project35FormContext)
getOntologyServiceMetaData
in interface OntologySource
public OntologyTermProvenance getOntologyTermProvenance(Project35FormContext project35FormContext, OntologyTerm ontologyTerm)
getOntologyTermProvenance
in interface OntologySource
public boolean isWorking()
OntologySource
isWorking
in interface OntologySource
public java.lang.String test()
OntologySource
test
in interface OntologySource
public OntologyTerm[] getTerms(Project35FormContext project35FormContext)
OntologySource
getTerms
in interface OntologySource
public OntologyRelationshipType[] getSupportedOntologyRelationships(Project35FormContext project35FormContext)
getSupportedOntologyRelationships
in interface OntologySource
public OntologyTerm[] getRelatedTerms(Project35FormContext project35FormContext, OntologyRelationshipType relationshipType, OntologyTerm ontologyTerm)
getRelatedTerms
in interface OntologySource
public boolean containsTerm(Project35FormContext project35FormContext, OntologyTerm ontologyTerm)
OntologySource
containsTerm
in interface OntologySource
public OntologySource getSubOntologySource(Project35FormContext project35FormContext, Parameter[] parameterList)
OntologySource
getSubOntologySource
in interface OntologySource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |