Interface AnnotationProperty
- All Superinterfaces:
OntologyResource
- All Known Implementing Classes:
LexicalAnnotationProperty
- Author:
- pavlidis
-
Method Summary
Modifier and TypeMethodDescriptionThe value associated to this annotation as a string.A label for the property of this annotation.default StringThe URI of this annotation's value when the value is a URI resource, elsenull(literal values, blank nodes).Methods inherited from interface OntologyResource
getComment, getLabel, getLocalName, getUri, isObsolete
-
Method Details
-
getProperty
String getProperty()A label for the property of this annotation. -
getContents
The value associated to this annotation as a string.🛑 When the value is a RESOURCE, this returns its
rdfs:label— not its URI — and null when the resource carries no label. That indirection is right for display and wrong for identity: usegetValueUri()whenever the annotation names a term rather than describes one. -
getValueUri
The URI of this annotation's value when the value is a URI resource, elsenull(literal values, blank nodes).Exists because
getContents()resolves a resource to its label, and a label is not an identity. MONDO'scrossSpeciesExactMatchis the case that proved it: the mappingMONDO:0700199 → MONDO:0005061came back as the string"lung adenocarcinoma", which names BOTHMONDO:0005061(a disease) andHP:0030078(a phenotype) equally well. A consumer repairing an annotation from that string can silently land on the phenotype — worse than not repairing, because it looks like it worked.
-