Package ubic.basecode.ontology.jena
Class AbstractOntologyResource
- java.lang.Object
-
- ubic.basecode.ontology.jena.AbstractOntologyResource
-
- All Implemented Interfaces:
Serializable,Comparable<OntologyResource>,OntologyResource
- Direct Known Subclasses:
AnnotationPropertyImpl,OntologyIndividualImpl,OntologyPropertyImpl,OntologyTermImpl
public abstract class AbstractOntologyResource extends Object implements OntologyResource
- Author:
- pavlidis
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlog
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractOntologyResource(com.hp.hpl.jena.ontology.OntResource resource)AbstractOntologyResource(com.hp.hpl.jena.ontology.OntResource resource, double score)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(OntologyResource other)booleanequals(Object obj)StringgetLabel()A label, if known, otherwise null.DoublegetScore()If this is result from a free-text search, a corresponding score, otherwise null.StringgetUri()A URI if known, otherwise null.inthashCode()booleanisObsolete()Whether the resource is marked as obsolete.StringtoString()
-
-
-
Method Detail
-
getUri
public String getUri()
Description copied from interface:OntologyResourceA URI if known, otherwise null.- Specified by:
getUriin interfaceOntologyResource
-
getLabel
public String getLabel()
Description copied from interface:OntologyResourceA label, if known, otherwise null.- Specified by:
getLabelin interfaceOntologyResource
-
isObsolete
public boolean isObsolete()
Description copied from interface:OntologyResourceWhether the resource is marked as obsolete.- Specified by:
isObsoletein interfaceOntologyResource
-
getScore
@Nullable public Double getScore()
Description copied from interface:OntologyResourceIf this is result from a free-text search, a corresponding score, otherwise null.- Specified by:
getScorein interfaceOntologyResource
-
compareTo
public int compareTo(OntologyResource other)
- Specified by:
compareToin interfaceComparable<OntologyResource>
-
-