public class OntologyUtilities extends Object
| Constructor and Description |
|---|
OntologyUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static gate.creole.ontology.DataType |
getDataType(String datatypeURI)
Gets the respective datatype for the given datatype URI passed as a String.
|
static Locale |
getLocale(String languageCode)
Gets the respective locale for the given 2 character language code.
|
static gate.creole.ontology.Ontology |
getOntology(URL url)
Checks the availability of an existing instance of the Ontology
with the given URL in the GATE's CreoleRegister.
|
static String |
getResourceName(String uri)
Given a URI, this methord returns the name part
|
public static gate.creole.ontology.Ontology getOntology(URL url) throws gate.creole.ResourceInstantiationException
url - gate.creole.ResourceInstantiationExceptionpublic static String getResourceName(String uri)
uri - public static gate.creole.ontology.DataType getDataType(String datatypeURI)
datatypeURI -