public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static gate.creole.ontology.OClass |
createOClass(gate.creole.ontology.Ontology ontology,
OntologyService owlim,
String uri,
byte classType)
Creates a new instance of Ontology Class
|
static gate.creole.ontology.OInstance |
createOInstance(gate.creole.ontology.Ontology ontology,
OntologyService owlim,
String uri)
Creates a new instance of Ontology Instance
|
static gate.creole.ontology.RDFProperty |
createOProperty(gate.creole.ontology.Ontology ontology,
OntologyService ontologyService,
String uri,
byte type)
Given required parameters, this method, based on the provided type,
returns an appropriate object of a property.
|
static void |
error(String errorMsg)
Utility method that throws a GateRuntimeException to the user.
|
static String |
getRestrictionName(byte classType) |
static String |
getRestrictionName(gate.creole.ontology.Restriction res) |
static boolean |
hasSystemNameSpace(String uri) |
static void |
warnDeprecation(String methodName) |
static void |
warning(String warningMsg)
Utility method that shows warning to the user.
|
public static gate.creole.ontology.RDFProperty createOProperty(gate.creole.ontology.Ontology ontology,
OntologyService ontologyService,
String uri,
byte type)
repositoryID - ontology - ontologyService - uri - type - public static gate.creole.ontology.OClass createOClass(gate.creole.ontology.Ontology ontology,
OntologyService owlim,
String uri,
byte classType)
ontology - owlim - uri - classType - public static String getRestrictionName(byte classType)
public static String getRestrictionName(gate.creole.ontology.Restriction res)
public static gate.creole.ontology.OInstance createOInstance(gate.creole.ontology.Ontology ontology,
OntologyService owlim,
String uri)
public static boolean hasSystemNameSpace(String uri)
public static void warning(String warningMsg)
warningMsg - - message to be displayed to the userpublic static void warnDeprecation(String methodName)
public static void error(String errorMsg)
warningMsg - - message to be displayed to the user