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.Logger
log
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractOntologyResource(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 int
compareTo(OntologyResource other)
boolean
equals(Object obj)
String
getLabel()
A label, if known, otherwise null.Double
getScore()
If this is result from a free-text search, a corresponding score, otherwise null.String
getUri()
A URI if known, otherwise null.int
hashCode()
boolean
isObsolete()
Whether the resource is marked as obsolete.String
toString()
-
-
-
Method Detail
-
getUri
public String getUri()
Description copied from interface:OntologyResource
A URI if known, otherwise null.- Specified by:
getUri
in interfaceOntologyResource
-
getLabel
public String getLabel()
Description copied from interface:OntologyResource
A label, if known, otherwise null.- Specified by:
getLabel
in interfaceOntologyResource
-
isObsolete
public boolean isObsolete()
Description copied from interface:OntologyResource
Whether the resource is marked as obsolete.- Specified by:
isObsolete
in interfaceOntologyResource
-
getScore
@Nullable public Double getScore()
Description copied from interface:OntologyResource
If this is result from a free-text search, a corresponding score, otherwise null.- Specified by:
getScore
in interfaceOntologyResource
-
compareTo
public int compareTo(OntologyResource other)
- Specified by:
compareTo
in interfaceComparable<OntologyResource>
-
-