Package org.incenp.obofoundry.kgcl.owl
Class OntologyBasedLabelResolver
- java.lang.Object
-
- org.incenp.obofoundry.kgcl.SimpleLabelResolver
-
- org.incenp.obofoundry.kgcl.owl.OntologyBasedLabelResolver
-
- All Implemented Interfaces:
ILabelResolver
public class OntologyBasedLabelResolver extends SimpleLabelResolver
An object to resolve labels into identifiers using therdfs:labelannotations of an ontology’s entities.
-
-
Constructor Summary
Constructors Constructor Description OntologyBasedLabelResolver(org.semanticweb.owlapi.model.OWLOntology ontology)Creates a new instance to resolve labels based on the contents of the provided ontology.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringresolve(String label)Finds the identifier corresponding to the given label.-
Methods inherited from class org.incenp.obofoundry.kgcl.SimpleLabelResolver
add, getNewId
-
-
-
-
Method Detail
-
resolve
public String resolve(String label)
Description copied from interface:ILabelResolverFinds the identifier corresponding to the given label.- Specified by:
resolvein interfaceILabelResolver- Overrides:
resolvein classSimpleLabelResolver- Parameters:
label- The label to resolve.- Returns:
- The identifier of the entity with the given label, or
nullif the label could not be resolved.
-
-