project35.soa.ontology.sources
Class OntologyTerm

java.lang.Object
  extended by project35.soa.ontology.sources.OntologyTerm
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
TreeOntologyTerm

public class OntologyTerm
extends java.lang.Object
implements java.lang.Cloneable

Describes an ontology term. Originally, ontology terms were just viewed as strings. However, some of the ontologists we've talked to advise us that each term might be associated with an identifier or a URL link. We give you the ability to choose the same term from multiple ontology services. Other people may want to know which list you got your terms from. As of this release, we're not sure how this feature will work out. Identifiers might be used to access some kind of web site.

e.g: "testosterone" might have an ID of "234" to mean it was a hormone. "testosterone" might have an ID of "555" to mean it's a steroid.

one day you might be able to click on a hyperlink "testosterone" in one of the fields, and be taken to one of these web pages:

http://www.medicalterms.org/234 or http://www.medicalterms.org/678

The URL field provides a more complete definition of a web page. Both of these fields are optional for now.


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)

Constructor Summary
OntologyTerm()
           
OntologyTerm(java.lang.String identifier, java.lang.String label)
           
 
Method Summary
 void addRelatedTerm(OntologyTerm ontologyTerm)
           
 java.lang.Object clone()
           
 java.lang.String getIdentifier()
          Get the value of identifier.
 java.lang.String getLabel()
          Get the value of label.
 java.util.ArrayList getRelatedTerms()
           
 void setIdentifier(java.lang.String identifier)
          Set the value of identifier.
 void setLabel(java.lang.String label)
          Set the value of label.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OntologyTerm

public OntologyTerm(java.lang.String identifier,
                    java.lang.String label)

OntologyTerm

public OntologyTerm()
Method Detail

getIdentifier

public java.lang.String getIdentifier()
Get the value of identifier.

Returns:
value of identifier.

getLabel

public java.lang.String getLabel()
Get the value of label.

Returns:
value of label.

getRelatedTerms

public java.util.ArrayList getRelatedTerms()

setIdentifier

public void setIdentifier(java.lang.String identifier)
Set the value of identifier.

Parameters:
identifier - Value to assign to identifier.

setLabel

public void setLabel(java.lang.String label)
Set the value of label.

Parameters:
label - Value to assign to label.

addRelatedTerm

public void addRelatedTerm(OntologyTerm ontologyTerm)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object