public abstract class AbstractOntologyResource extends Object implements OntologyResource
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOntologyResource(com.hp.hpl.jena.ontology.OntResource resource) |
|
AbstractOntologyResource(com.hp.hpl.jena.ontology.OntResource resource,
double score) |
| Modifier and Type | Method and 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() |
protected AbstractOntologyResource(com.hp.hpl.jena.ontology.OntResource resource)
public AbstractOntologyResource(com.hp.hpl.jena.ontology.OntResource resource,
double score)
public String getUri()
OntologyResourcegetUri in interface OntologyResourcepublic String getLabel()
OntologyResourcegetLabel in interface OntologyResourcepublic boolean isObsolete()
OntologyResourceisObsolete in interface OntologyResource@Nullable public Double getScore()
OntologyResourcegetScore in interface OntologyResourcepublic int compareTo(OntologyResource other)
compareTo in interface Comparable<OntologyResource>Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.