project35.metaData
Class MetaDataOntologySource

java.lang.Object
  extended by project35.metaData.MetaDataOntologySource
All Implemented Interfaces:
java.io.Serializable, OntologySource, ServiceClass

public class MetaDataOntologySource
extends java.lang.Object
implements OntologySource

provides ontology terms to fill in the names of record and field meta data records.


Copyright (c) 2008 Kevin Garwood for Project35. This code is 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.

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)
See Also:
Serialized Form

Constructor Summary
MetaDataOntologySource()
           
 
Method Summary
 boolean containsTerm(Project35FormContext metaDataEditorFormContext, OntologyTerm ontologyTerm)
          determine whether the source contains a particular ontology term
 Parameter[] getInitialisationParameters()
           
 OntologyServiceMetaData getOntologyServiceMetaData(Project35FormContext project35FormContext)
           
 OntologyTermProvenance getOntologyTermProvenance(Project35FormContext metaDataEditorFormContext, OntologyTerm ontologyTerm)
           
 OntologyTerm[] getRelatedTerms(Project35FormContext metaDataEditorFormContext, OntologyRelationshipType relationshipType, OntologyTerm ontologyTerm)
           
 OntologySource getSubOntologySource(Project35FormContext metaDataEditorFormContext, Parameter[] parameterList)
          returns another ontology source is basically this one but pared down by the parameters
 OntologyRelationshipType[] getSupportedOntologyRelationships(Project35FormContext metaDataEditorFormContext)
           
 OntologyTerm[] getTerms(Project35FormContext metaDataEditorFormContext)
          returns a collection of terms
 void initialiseService(java.net.URL resourceDirectory, Parameter[] initialisationParameters)
           
 boolean isWorking()
          indicates whether the ontology source is ready for service
 void setOntologyContext(OntologyContext ontologyContext)
           
 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

MetaDataOntologySource

public MetaDataOntologySource()
Method Detail

setOntologyContext

public void setOntologyContext(OntologyContext ontologyContext)

getInitialisationParameters

public Parameter[] getInitialisationParameters()
Specified by:
getInitialisationParameters in interface ServiceClass

initialiseService

public void initialiseService(java.net.URL resourceDirectory,
                              Parameter[] initialisationParameters)
Specified by:
initialiseService in interface ServiceClass

getOntologyServiceMetaData

public OntologyServiceMetaData getOntologyServiceMetaData(Project35FormContext project35FormContext)
Specified by:
getOntologyServiceMetaData in interface OntologySource

getOntologyTermProvenance

public OntologyTermProvenance getOntologyTermProvenance(Project35FormContext metaDataEditorFormContext,
                                                        OntologyTerm ontologyTerm)
Specified by:
getOntologyTermProvenance in interface OntologySource

isWorking

public boolean isWorking()
Description copied from interface: OntologySource
indicates whether the ontology source is ready for service

Specified by:
isWorking in interface OntologySource

test

public java.lang.String test()
Description copied from interface: OntologySource
diagnostic method that indicates whether the ontology source is working.

Specified by:
test in interface OntologySource

getTerms

public OntologyTerm[] getTerms(Project35FormContext metaDataEditorFormContext)
Description copied from interface: OntologySource
returns a collection of terms

Specified by:
getTerms in interface OntologySource

getSupportedOntologyRelationships

public OntologyRelationshipType[] getSupportedOntologyRelationships(Project35FormContext metaDataEditorFormContext)
Specified by:
getSupportedOntologyRelationships in interface OntologySource

getRelatedTerms

public OntologyTerm[] getRelatedTerms(Project35FormContext metaDataEditorFormContext,
                                      OntologyRelationshipType relationshipType,
                                      OntologyTerm ontologyTerm)
Specified by:
getRelatedTerms in interface OntologySource

containsTerm

public boolean containsTerm(Project35FormContext metaDataEditorFormContext,
                            OntologyTerm ontologyTerm)
Description copied from interface: OntologySource
determine whether the source contains a particular ontology term

Specified by:
containsTerm in interface OntologySource

getSubOntologySource

public OntologySource getSubOntologySource(Project35FormContext metaDataEditorFormContext,
                                           Parameter[] parameterList)
Description copied from interface: OntologySource
returns another ontology source is basically this one but pared down by the parameters

Specified by:
getSubOntologySource in interface OntologySource