project35.soa.ontology.sources
Class TabIndentedTextSource
java.lang.Object
project35.soa.ontology.sources.AbstractTreeOntologySource
project35.soa.ontology.sources.TabIndentedTextSource
- All Implemented Interfaces:
- java.io.Serializable, OntologySource, TreeOntologySource, ServiceClass
public class TabIndentedTextSource
- extends AbstractTreeOntologySource
an ontology source that reads terms from a tab-indented text file
Copyright (c) 2008 Kevin Garwood for Project35. The original code was
developed by Kevin Garwood for the University of Manchester. Revisions
have been made for Project35, a project that is independent of that
institution. This code is licensed under the Academic Free License
version 3.0. The code attribution for the original code is included here:
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.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net)
- See Also:
- Serialized Form
Fields inherited from class project35.soa.ontology.sources.AbstractTreeOntologySource |
anchorTerms, collator, file, fileName, isSourceWorking, maskValidator, ontologyContext, parameters, resourceDirectory, rootTerm, searchResultTerm, status, url |
Methods inherited from class project35.soa.ontology.sources.AbstractTreeOntologySource |
addAnchorTerm, containsTerm, getInitialisationParameters, getOntologyServiceMetaData, getRelatedTerms, getSubOntologySource, getSupportedOntologyRelationships, getTerms, getTreeRoot, isWorking, reviseTreeWithAnchorTerms, search, search, setDescription, test |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TabIndentedTextSource
public TabIndentedTextSource()
load
public void load()
- loads terms read from a file. in general this method will be
what changes most in implementations of
OntologySource
initialiseForTestPurposes
public void initialiseForTestPurposes(java.net.URL termFileURL)
getOntologyTermProvenance
public OntologyTermProvenance getOntologyTermProvenance(Project35FormContext project35FormContext,
OntologyTerm ontologyTerm)
- Specified by:
getOntologyTermProvenance
in interface OntologySource
- Specified by:
getOntologyTermProvenance
in class AbstractTreeOntologySource
initialiseService
public void initialiseService(java.net.URL resourceDirectory,
Parameter[] parameters)
throws java.lang.Exception
- Specified by:
initialiseService
in interface ServiceClass
- Overrides:
initialiseService
in class AbstractTreeOntologySource
- Throws:
java.lang.Exception