Package ubic.basecode.ontology.jena
Class AnnotationPropertyImpl
- java.lang.Object
-
- ubic.basecode.ontology.jena.AbstractOntologyResource
-
- ubic.basecode.ontology.jena.AnnotationPropertyImpl
-
- All Implemented Interfaces:
Serializable
,Comparable<OntologyResource>
,AnnotationProperty
,OntologyResource
public class AnnotationPropertyImpl extends AbstractOntologyResource implements AnnotationProperty
Note that this is a concrete instance of the annotation.- Author:
- pavlidis
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class ubic.basecode.ontology.jena.AbstractOntologyResource
log
-
-
Constructor Summary
Constructors Constructor Description AnnotationPropertyImpl(com.hp.hpl.jena.ontology.AnnotationProperty prop, com.hp.hpl.jena.rdf.model.RDFNode object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getContents()
String
getProperty()
String
getUri()
A URI if known, otherwise null.int
hashCode()
boolean
isObsolete()
Whether the resource is marked as obsolete.String
toString()
-
Methods inherited from class ubic.basecode.ontology.jena.AbstractOntologyResource
compareTo, getLabel, getScore
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface ubic.basecode.ontology.model.OntologyResource
getLabel, getScore
-
-
-
-
Constructor Detail
-
AnnotationPropertyImpl
public AnnotationPropertyImpl(com.hp.hpl.jena.ontology.AnnotationProperty prop, @Nullable com.hp.hpl.jena.rdf.model.RDFNode object)
- Parameters:
prop
- property for the statementsource
- ontology this relates to.object
- of the statement
-
-
Method Detail
-
equals
public boolean equals(@Nullable Object obj)
- Overrides:
equals
in classAbstractOntologyResource
-
getUri
public String getUri()
Description copied from interface:OntologyResource
A URI if known, otherwise null.- Specified by:
getUri
in interfaceOntologyResource
- Overrides:
getUri
in classAbstractOntologyResource
-
getContents
public String getContents()
- Specified by:
getContents
in interfaceAnnotationProperty
-
getProperty
public String getProperty()
- Specified by:
getProperty
in interfaceAnnotationProperty
-
isObsolete
public boolean isObsolete()
Description copied from interface:OntologyResource
Whether the resource is marked as obsolete.- Specified by:
isObsolete
in interfaceOntologyResource
- Overrides:
isObsolete
in classAbstractOntologyResource
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractOntologyResource
-
toString
public String toString()
- Overrides:
toString
in classAbstractOntologyResource
-
-