0001 /*
0002 * OConstants.java
0003 *
0004 * Niraj Aswani, 09/March/07
0005 *
0006 * $Id: OConstants.html,v 1.0 2007/03/09 16:13:01 niraj Exp $
0007 */
0008 package gate.creole.ontology;
0009
0010 import java.util.Locale;
0011
0012 /**
0013 * This interface holds some constants used by several other intrfaces
0014 * and classes in the GATE ontology API.
0015 *
0016 * @author Niraj Aswani
0017 * @author Johann Petrak
0018 *
0019 */
0020 public interface OConstants {
0021
0022 /// **********************************
0023 /// Ontology Event Log feature name
0024 /// **********************************
0025 /** denotes the name of the features for ontology event log */
0026 public static final String ONTOLOGY_EVENT_LOG_FEATURE_NAME = "eventLog";
0027
0028 /**
0029 * All predefined URIs from the RDF name space.
0030 */
0031 public static class RDF {
0032 // class adapted from Sesame 2.3,
0033 // Copyright Aduna (http://www.aduna-software.com/) <A9> 2001-2009
0034 // All rights reserved.
0035
0036 /** http://www.w3.org/1999/02/22-rdf-syntax-ns# */
0037 public static final String NAMESPACE =
0038 "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
0039 /** http://www.w3.org/1999/02/22-rdf-syntax-ns#type */
0040 public final static String TYPE =
0041 "http://www.w3.org/1999/02/22-rdf-syntax-ns#type";
0042 /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Property */
0043 public final static String PROPERTY =
0044 "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property";
0045 /** http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral */
0046 public final static String XMLLITERAL =
0047 "http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral";
0048 /** http://www.w3.org/1999/02/22-rdf-syntax-ns#subject */
0049 public final static String SUBJECT =
0050 "http://www.w3.org/1999/02/22-rdf-syntax-ns#subject";
0051 /** http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate */
0052 public final static String PREDICATE =
0053 "http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate";
0054 /** http://www.w3.org/1999/02/22-rdf-syntax-ns#object */
0055 public final static String OBJECT =
0056 "http://www.w3.org/1999/02/22-rdf-syntax-ns#object";
0057 /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement */
0058 public final static String STATEMENT =
0059 "http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement";
0060 /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag */
0061 public final static String BAG =
0062 "http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag";
0063 /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt */
0064 public final static String ALT =
0065 "http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt";
0066 /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq */
0067 public final static String SEQ =
0068 "http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq";
0069 /** http://www.w3.org/1999/02/22-rdf-syntax-ns#value */
0070 public final static String VALUE =
0071 "http://www.w3.org/1999/02/22-rdf-syntax-ns#value";
0072 /** http://www.w3.org/1999/02/22-rdf-syntax-ns#li */
0073 public final static String LI =
0074 "http://www.w3.org/1999/02/22-rdf-syntax-ns#li";
0075 /** http://www.w3.org/1999/02/22-rdf-syntax-ns#List */
0076 public final static String LIST =
0077 "http://www.w3.org/1999/02/22-rdf-syntax-ns#List";
0078 /** http://www.w3.org/1999/02/22-rdf-syntax-ns#first */
0079 public final static String FIRST =
0080 "http://www.w3.org/1999/02/22-rdf-syntax-ns#first";
0081 /** http://www.w3.org/1999/02/22-rdf-syntax-ns#rest */
0082 public final static String REST =
0083 "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest";
0084 /** http://www.w3.org/1999/02/22-rdf-syntax-ns#nil */
0085 public final static String NIL =
0086 "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil";
0087 }
0088
0089 /**
0090 * All predefined URIs from the OWL1 namespace.
0091 */
0092 public static class OWL {
0093 // class adapted from Sesame 2.3,
0094 // Copyright Aduna (http://www.aduna-software.com/) <A9> 2001-2009
0095 // All rights reserved.
0096
0097 /** http://www.w3.org/2002/07/owl# */
0098 public static final String NAMESPACE =
0099 "http://www.w3.org/2002/07/owl#";
0100 // OWL Lite
0101 /** http://www.w3.org/2002/07/owl#Class */
0102 public final static String CLASS =
0103 "http://www.w3.org/2002/07/owl#Class";
0104 /** http://www.w3.org/2002/07/owl#Individual */
0105 public final static String INDIVIDUAL =
0106 "http://www.w3.org/2002/07/owl#Individual";
0107 /** http://www.w3.org/2002/07/owl#equivalentClass */
0108 public final static String EQUIVALENTCLASS =
0109 "http://www.w3.org/2002/07/owl#equivalentClass";
0110 /** http://www.w3.org/2002/07/owl#equivalentProperty */
0111 public final static String EQUIVALENTPROPERTY =
0112 "http://www.w3.org/2002/07/owl#equivalentProperty";
0113 /** http://www.w3.org/2002/07/owl#sameAs */
0114 public final static String SAMEAS =
0115 "http://www.w3.org/2002/07/owl#sameAs";
0116 /** http://www.w3.org/2002/07/owl#differentFrom */
0117 public final static String DIFFERENTFROM =
0118 "http://www.w3.org/2002/07/owl#differentFro";
0119 /** http://www.w3.org/2002/07/owl#AllDifferent */
0120 public final static String ALLDIFFERENT =
0121 "http://www.w3.org/2002/07/owl#AllDifferent";
0122 /** http://www.w3.org/2002/07/owl#distinctMembers */
0123 public final static String DISTINCTMEMBERS =
0124 "http://www.w3.org/2002/07/owl#distinctMembers";
0125 /** http://www.w3.org/2002/07/owl#ObjectProperty */
0126 public final static String OBJECTPROPERTY =
0127 "http://www.w3.org/2002/07/owl#ObjectProperty";
0128 /** http://www.w3.org/2002/07/owl#DatatypeProperty */
0129 public final static String DATATYPEPROPERTY =
0130 "http://www.w3.org/2002/07/owl#DatatypeProperty";
0131 /** http://www.w3.org/2002/07/owl#inverseOf */
0132 public final static String INVERSEOF =
0133 "http://www.w3.org/2002/07/owl#inverseOf";
0134 /** http://www.w3.org/2002/07/owl#TransitiveProperty */
0135 public final static String TRANSITIVEPROPERTY =
0136 "http://www.w3.org/2002/07/owl#TransitiveProperty";
0137 /** http://www.w3.org/2002/07/owl#SymmetricProperty */
0138 public final static String SYMMETRICPROPERTY =
0139 "http://www.w3.org/2002/07/owl#SymmetricProperty";
0140 /** http://www.w3.org/2002/07/owl#FunctionalProperty */
0141 public final static String FUNCTIONALPROPERTY =
0142 "http://www.w3.org/2002/07/owl#FunctionalProperty";
0143 /** http://www.w3.org/2002/07/owl#InverseFunctionalProperty */
0144 public final static String INVERSEFUNCTIONALPROPERTY =
0145 "http://www.w3.org/2002/07/owl#InverseFunctionalProperty";
0146 /** http://www.w3.org/2002/07/owl#Restriction */
0147 public final static String RESTRICTION =
0148 "http://www.w3.org/2002/07/owl#Restriction";
0149 /** http://www.w3.org/2002/07/owl#onProperty */
0150 public final static String ONPROPERTY =
0151 "http://www.w3.org/2002/07/owl#onProperty";
0152 /** http://www.w3.org/2002/07/owl#allValuesFrom */
0153 public final static String ALLVALUESFROM =
0154 "http://www.w3.org/2002/07/owl#allValuesFrom";
0155 /** http://www.w3.org/2002/07/owl#someValuesFrom */
0156 public final static String SOMEVALUESFROM =
0157 "http://www.w3.org/2002/07/owl#someValuesFrom";
0158 /** http://www.w3.org/2002/07/owl#minCardinality */
0159 public final static String MINCARDINALITY =
0160 "http://www.w3.org/2002/07/owl#minCardinality";
0161 /** http://www.w3.org/2002/07/owl#maxCardinality */
0162 public final static String MAXCARDINALITY =
0163 "http://www.w3.org/2002/07/owl#maxCardinality";
0164 /** http://www.w3.org/2002/07/owl#cardinality */
0165 public final static String CARDINALITY =
0166 "http://www.w3.org/2002/07/owl#cardinality";
0167 /** http://www.w3.org/2002/07/owl#Ontology */
0168 public final static String ONTOLOGY =
0169 "http://www.w3.org/2002/07/owl#Ontology";
0170 /** http://www.w3.org/2002/07/owl#imports */
0171 public final static String IMPORTS =
0172 "http://www.w3.org/2002/07/owl#imports";
0173 /** http://www.w3.org/2002/07/owl#intersectionOf */
0174 public final static String INTERSECTIONOF =
0175 "http://www.w3.org/2002/07/owl#intersectionOf";
0176 /** http://www.w3.org/2002/07/owl#versionInfo */
0177 public final static String VERSIONINFO =
0178 "http://www.w3.org/2002/07/owl#versionInfo";
0179 /** http://www.w3.org/2002/07/owl#priorVersion */
0180 public final static String PRIORVERSION =
0181 "http://www.w3.org/2002/07/owl#priorVersion";
0182 /** http://www.w3.org/2002/07/owl#backwardCompatibleWith */
0183 public final static String BACKWARDCOMPATIBLEWITH =
0184 "http://www.w3.org/2002/07/owl#backwardCompatibleWith";
0185 /** http://www.w3.org/2002/07/owl#incompatibleWith */
0186 public final static String INCOMPATIBLEWITH =
0187 "http://www.w3.org/2002/07/owl#incompatibleWith";
0188 /** http://www.w3.org/2002/07/owl#DeprecatedClass */
0189 public final static String DEPRECATEDCLASS =
0190 "http://www.w3.org/2002/07/owl#DeprecatedClass";
0191 /** http://www.w3.org/2002/07/owl#DeprecatedProperty */
0192 public final static String DEPRECATEDPROPERTY =
0193 "http://www.w3.org/2002/07/owl#DeprecatedProperty";
0194 /** http://www.w3.org/2002/07/owl#AnnotationProperty */
0195 public final static String ANNOTATIONPROPERTY =
0196 "http://www.w3.org/2002/07/owl#AnnotationProperty";
0197 /** http://www.w3.org/2002/07/owl#OntologyProperty */
0198 public final static String ONTOLOGYPROPERTY =
0199 "http://www.w3.org/2002/07/owl#OntologyProperty";
0200 // OWL DL and OWL Full
0201 /** http://www.w3.org/2002/07/owl#oneOf */
0202 public final static String ONEOF =
0203 "http://www.w3.org/2002/07/owl#oneOf";
0204 /** http://www.w3.org/2002/07/owl#hasValue */
0205 public final static String HASVALUE =
0206 "http://www.w3.org/2002/07/owl#hasValue";
0207 /** http://www.w3.org/2002/07/owl#disjointWith */
0208 public final static String DISJOINTWITH =
0209 "http://www.w3.org/2002/07/owl#disjointWith";
0210 /** http://www.w3.org/2002/07/owl#unionOf */
0211 public final static String UNIONOF =
0212 "http://www.w3.org/2002/07/owl#unionOf";
0213 /** http://www.w3.org/2002/07/owl#complementOf */
0214 public final static String COMPLEMENTOF =
0215 "http://www.w3.org/2002/07/owl#complementOf";
0216 }
0217
0218 /**
0219 * All predefined URIs from the RDFS name space.
0220 */
0221 public static class RDFS {
0222 // class adapted from Sesame 2.3,
0223 // Copyright Aduna (http://www.aduna-software.com/) <A9> 2001-2009
0224 // All rights reserved.
0225
0226 /** http://www.w3.org/2000/01/rdf-schema# */
0227 public static final String NAMESPACE =
0228 "http://www.w3.org/2000/01/rdf-schema#";
0229 /** http://www.w3.org/2000/01/rdf-schema#Resource */
0230 public final static String RESOURCE =
0231 "http://www.w3.org/2000/01/rdf-schema#Resource";
0232 /** http://www.w3.org/2000/01/rdf-schema#Literal */
0233 public final static String LITERAL =
0234 "http://www.w3.org/2000/01/rdf-schema#Literal";
0235 /** http://www.w3.org/2000/01/rdf-schema#Class */
0236 public final static String CLASS =
0237 "http://www.w3.org/2000/01/rdf-schema#Class";
0238 /** http://www.w3.org/2000/01/rdf-schema#subClassOf */
0239 public final static String SUBCLASSOF =
0240 "http://www.w3.org/2000/01/rdf-schema#subClassOf";
0241 /** http://www.w3.org/2000/01/rdf-schema#subPropertyOf */
0242 public final static String SUBPROPERTYOF =
0243 "http://www.w3.org/2000/01/rdf-schema#subPropertyOf";
0244 /** http://www.w3.org/2000/01/rdf-schema#domain */
0245 public final static String DOMAIN =
0246 "http://www.w3.org/2000/01/rdf-schema#domain";
0247 /** http://www.w3.org/2000/01/rdf-schema#range */
0248 public final static String RANGE =
0249 "http://www.w3.org/2000/01/rdf-schema#range";
0250 /** http://www.w3.org/2000/01/rdf-schema#comment */
0251 public final static String COMMENT =
0252 "http://www.w3.org/2000/01/rdf-schema#comment";
0253 /** http://www.w3.org/2000/01/rdf-schema#label */
0254 public final static String LABEL =
0255 "http://www.w3.org/2000/01/rdf-schema#label";
0256 /** http://www.w3.org/2000/01/rdf-schema#Datatype */
0257 public final static String DATATYPE =
0258 "http://www.w3.org/2000/01/rdf-schema#Datatype";
0259 /** http://www.w3.org/2000/01/rdf-schema#Container */
0260 public final static String CONTAINER =
0261 "http://www.w3.org/2000/01/rdf-schema#Container";
0262 /** http://www.w3.org/2000/01/rdf-schema#member */
0263 public final static String MEMBER =
0264 "http://www.w3.org/2000/01/rdf-schema#member";
0265 /** http://www.w3.org/2000/01/rdf-schema#isDefinedBy */
0266 public final static String ISDEFINEDBY =
0267 "http://www.w3.org/2000/01/rdf-schema#isDefinedBy";
0268 /** http://www.w3.org/2000/01/rdf-schema#seeAlso */
0269 public final static String SEEALSO =
0270 "http://www.w3.org/2000/01/rdf-schema#seeAlso";
0271 /** http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty */
0272 public final static String CONTAINERMEMBERSHIPPROPERTY =
0273 "http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty";
0274 }
0275
0276 public class XMLSchema {
0277 // class adapted from Sesame 2.3,
0278 // Copyright Aduna (http://www.aduna-software.com/) <A9> 2001-2009
0279 // All rights reserved.
0280
0281 /** The XML Schema namespace http://www.w3.org/2001/XMLSchema# */
0282 public static final String NAMESPACE = "http://www.w3.org/2001/XMLSchema#";
0283
0284 /*
0285 * Primitive datatypes
0286 */
0287 /** http://www.w3.org/2001/XMLSchema#duration */
0288 public final static String DURATION =
0289 "http://www.w3.org/2001/XMLSchema#duration";
0290 /** http://www.w3.org/2001/XMLSchema#dateTime */
0291 public final static String DATETIME =
0292 "http://www.w3.org/2001/XMLSchema#dateTime";
0293 /** http://www.w3.org/2001/XMLSchema#time */
0294 public final static String TIME =
0295 "http://www.w3.org/2001/XMLSchema#time";
0296 /** http://www.w3.org/2001/XMLSchema#date */
0297 public final static String DATE =
0298 "http://www.w3.org/2001/XMLSchema#date";
0299 /** http://www.w3.org/2001/XMLSchema#gYearMonth */
0300 public final static String GYEARMONTH =
0301 "http://www.w3.org/2001/XMLSchema#gYearMonth";
0302 /** http://www.w3.org/2001/XMLSchema#gYear */
0303 public final static String GYEAR =
0304 "http://www.w3.org/2001/XMLSchema#gYear";
0305 /** http://www.w3.org/2001/XMLSchema#gMonthDay */
0306 public final static String GMONTHDAY =
0307 "http://www.w3.org/2001/XMLSchema#gMonthDay";
0308 /** http://www.w3.org/2001/XMLSchema#gDay */
0309 public final static String GDAY =
0310 "http://www.w3.org/2001/XMLSchema#gDay";
0311 /** http://www.w3.org/2001/XMLSchema#gMonth */
0312 public final static String GMONTH =
0313 "http://www.w3.org/2001/XMLSchema#gMonth";
0314 /** http://www.w3.org/2001/XMLSchema#string */
0315 public final static String STRING =
0316 "http://www.w3.org/2001/XMLSchema#string";
0317 /** http://www.w3.org/2001/XMLSchema#boolean */
0318 public final static String BOOLEAN =
0319 "http://www.w3.org/2001/XMLSchema#boolean";
0320 /** http://www.w3.org/2001/XMLSchema#base64Binary */
0321 public final static String BASE64BINARY =
0322 "http://www.w3.org/2001/XMLSchema#base64Binary";
0323 /** http://www.w3.org/2001/XMLSchema#hexBinary */
0324 public final static String HEXBINARY =
0325 "http://www.w3.org/2001/XMLSchema#hexBinary";
0326 /** http://www.w3.org/2001/XMLSchema#float */
0327 public final static String FLOAT =
0328 "http://www.w3.org/2001/XMLSchema#float";
0329 /** http://www.w3.org/2001/XMLSchema#decimal */
0330 public final static String DECIMAL =
0331 "http://www.w3.org/2001/XMLSchema#decimal";
0332 /** http://www.w3.org/2001/XMLSchema#double */
0333 public final static String DOUBLE =
0334 "http://www.w3.org/2001/XMLSchema#double";
0335 /** http://www.w3.org/2001/XMLSchema#anyURI */
0336 public final static String ANYURI =
0337 "http://www.w3.org/2001/XMLSchema#anyURI";
0338 /** http://www.w3.org/2001/XMLSchema#QName */
0339 public final static String QNAME =
0340 "http://www.w3.org/2001/XMLSchema#QName";
0341 /** http://www.w3.org/2001/XMLSchema#NOTATION */
0342 public final static String NOTATION =
0343 "http://www.w3.org/2001/XMLSchema#NOTATION";
0344
0345 /*
0346 * Derived datatypes
0347 */
0348 /** http://www.w3.org/2001/XMLSchema#normalizedString */
0349 public final static String NORMALIZEDSTRING =
0350 "http://www.w3.org/2001/XMLSchema#normalizedString";
0351 /** http://www.w3.org/2001/XMLSchema#token */
0352 public final static String TOKEN =
0353 "http://www.w3.org/2001/XMLSchema#token";
0354 /** http://www.w3.org/2001/XMLSchema#language */
0355 public final static String LANGUAGE =
0356 "http://www.w3.org/2001/XMLSchema#language";
0357 /** http://www.w3.org/2001/XMLSchema#NMTOKEN */
0358 public final static String NMTOKEN =
0359 "http://www.w3.org/2001/XMLSchema#NMTOKEN";
0360 /** http://www.w3.org/2001/XMLSchema#NMTOKENS */
0361 public final static String NMTOKENS =
0362 "http://www.w3.org/2001/XMLSchema#NMTOKENS";
0363 /** http://www.w3.org/2001/XMLSchema#Name */
0364 public final static String NAME =
0365 "http://www.w3.org/2001/XMLSchema#Name";
0366 /** http://www.w3.org/2001/XMLSchema#NCName */
0367 public final static String NCNAME =
0368 "http://www.w3.org/2001/XMLSchema#NCName";
0369 /** http://www.w3.org/2001/XMLSchema#ID */
0370 public final static String ID =
0371 "http://www.w3.org/2001/XMLSchema#ID";
0372 /** http://www.w3.org/2001/XMLSchema#IDREF */
0373 public final static String IDREF =
0374 "http://www.w3.org/2001/XMLSchema#IDREF";
0375 /** http://www.w3.org/2001/XMLSchema#IDREFS */
0376 public final static String IDREFS =
0377 "http://www.w3.org/2001/XMLSchema#IDREFS";
0378 /** http://www.w3.org/2001/XMLSchema#ENTITY */
0379 public final static String ENTITY =
0380 "http://www.w3.org/2001/XMLSchema#ENTITY";
0381 /** http://www.w3.org/2001/XMLSchema#ENTITIES */
0382 public final static String ENTITIES =
0383 "http://www.w3.org/2001/XMLSchema#ENTITIES";
0384 /** http://www.w3.org/2001/XMLSchema#integer */
0385 public final static String INTEGER =
0386 "http://www.w3.org/2001/XMLSchema#integer";
0387 /** http://www.w3.org/2001/XMLSchema#long */
0388 public final static String LONG =
0389 "http://www.w3.org/2001/XMLSchema#long";
0390 /** http://www.w3.org/2001/XMLSchema#int */
0391 public final static String INT =
0392 "http://www.w3.org/2001/XMLSchema#int";
0393 /** http://www.w3.org/2001/XMLSchema#short */
0394 public final static String SHORT =
0395 "http://www.w3.org/2001/XMLSchema#short";
0396 /** http://www.w3.org/2001/XMLSchema#byte */
0397 public final static String BYTE =
0398 "http://www.w3.org/2001/XMLSchema#byte";
0399 /** http://www.w3.org/2001/XMLSchema#nonPositiveInteger */
0400 public final static String NON_POSITIVE_INTEGER =
0401 "http://www.w3.org/2001/XMLSchema#nonPositiveInteger";
0402 /** http://www.w3.org/2001/XMLSchema#negativeInteger */
0403 public final static String NEGATIVE_INTEGER =
0404 "http://www.w3.org/2001/XMLSchema#negativeInteger";
0405 /** http://www.w3.org/2001/XMLSchema#nonNegativeInteger */
0406 public final static String NON_NEGATIVE_INTEGER =
0407 "http://www.w3.org/2001/XMLSchema#nonNegativeInteger";
0408 /** http://www.w3.org/2001/XMLSchema#positiveInteger */
0409 public final static String POSITIVE_INTEGER =
0410 "http://www.w3.org/2001/XMLSchema#positiveInteger";
0411 /** http://www.w3.org/2001/XMLSchema#unsignedLong */
0412 public final static String UNSIGNED_LONG =
0413 "http://www.w3.org/2001/XMLSchema#unsignedLong";
0414 /** http://www.w3.org/2001/XMLSchema#unsignedInt */
0415 public final static String UNSIGNED_INT =
0416 "http://www.w3.org/2001/XMLSchema#unsignedInt";
0417 /** http://www.w3.org/2001/XMLSchema#unsignedShort */
0418 public final static String UNSIGNED_SHORT =
0419 "http://www.w3.org/2001/XMLSchema#unsignedShort";
0420 /** http://www.w3.org/2001/XMLSchema#unsignedByte */
0421 public final static String UNSIGNED_BYTE =
0422 "http://www.w3.org/2001/XMLSchema#unsignedByte";
0423 }
0424 /// ***********************************
0425 /// Closure types
0426 /// ***********************************
0427
0428 /**
0429 * The set of entities directly connected.
0430 *
0431 * @deprecated use {@link Closure} instead.
0432 */
0433 @Deprecated
0434 public static final byte DIRECT_CLOSURE = 0;
0435
0436 /**
0437 * The set of entities directly or indirectly connected.
0438 *
0439 * @deprecated use {@link Closure} instead.
0440 */
0441 @Deprecated
0442 public static final byte TRANSITIVE_CLOSURE = 1;
0443
0444 /**
0445 * Closure constants.
0446 */
0447 public static enum Closure {
0448 DIRECT_CLOSURE,
0449 TRANSITIVE_CLOSURE
0450 }
0451 /// Default base URI
0452 public static final String ONTOLOGY_DEFAULT_BASE_URI = "http://gate.ac.uk/owlim#";
0453 /// ***********************************
0454 /// Property types
0455 /// ***********************************
0456 /**
0457 * denotes the rdf property
0458 */
0459 public static final byte RDF_PROPERTY = 0;
0460 /**
0461 * denotes the object property.
0462 */
0463 public static final byte OBJECT_PROPERTY = 1;
0464 /**
0465 * denotes the datatype property.
0466 */
0467 public static final byte DATATYPE_PROPERTY = 2;
0468 /**
0469 * denotes the symmetric property.
0470 */
0471 public static final byte SYMMETRIC_PROPERTY = 3;
0472 /**
0473 * denotes the transitive property.
0474 */
0475 public static final byte TRANSITIVE_PROPERTY = 4;
0476 /**
0477 * denotes the annotation property.
0478 */
0479 public static final byte ANNOTATION_PROPERTY = 5;
0480 /// ***********************************
0481 /// Class types
0482 /// ***********************************
0483 /**
0484 * specifies that the value of y in the x rdf:type y is owl:class
0485 */
0486 public static final byte OWL_CLASS = 0;
0487 /**
0488 * specifies that the value of y in the x rdf:type is owl:restriction and that is ia cardinality restriction
0489 */
0490 public static final byte CARDINALITY_RESTRICTION = 1;
0491 /**
0492 * specifies that the value of y in the x rdf:type is owl:restriction and that it is a min cardinality restriction
0493 */
0494 public static final byte MIN_CARDINALITY_RESTRICTION = 2;
0495 /**
0496 * specifies that the value of y in the x rdf:type is owl:restriction and that it is a max cardinality restriction
0497 */
0498 public static final byte MAX_CARDINALITY_RESTRICTION = 3;
0499 /**
0500 * specifies that the value of y in the x rdf:type is owl:restriction and that it is a hasValue restriction
0501 */
0502 public static final byte HAS_VALUE_RESTRICTION = 4;
0503 /**
0504 * specifies that the value of y in the x rdf:type is owl:restriction and that it is a allValuesFrom restriction
0505 */
0506 public static final byte ALL_VALUES_FROM_RESTRICTION = 5;
0507 /**
0508 * specifies that the value of y in the x rdf:type is owl:restriction and that it is a someValuesFrom restriction
0509 */
0510 public static final byte SOME_VALUES_FROM_RESTRICTION = 6;
0511 /**
0512 * specifies that the value of y in the x rdf:type is owl:restriction and that it is a someValuesFrom restriction
0513 */
0514 public static final byte ANNONYMOUS_CLASS = 7;
0515 /**
0516 * specifies that it is an instance
0517 */
0518 public static final byte INSTANCE = 8;
0519
0520 /// ***********************************
0521 /// Ontology Types
0522 /// ***********************************
0523 /**
0524 * A list of serialization formats for ontologies. Which of these
0525 * formats are supported for loading, importing or saving ontologies
0526 * is implementation-dependent.
0527 */
0528 public static enum OntologyFormat {
0529
0530 RDFXML() {
0531
0532 @Override
0533 public String toString() {
0534 return "rdfxml";
0535 }
0536 },
0537 TURTLE() {
0538
0539 @Override
0540 public String toString() {
0541 return "turtle";
0542 }
0543 },
0544 N3() {
0545
0546 @Override
0547 public String toString() {
0548 return "n3";
0549 }
0550 },
0551 NTRIPLES() {
0552
0553 @Override
0554 public String toString() {
0555 return "ntriples";
0556 }
0557 };
0558 }
0559
0560 public static enum QueryLanguage {
0561
0562 SPARQL, SERQL
0563 }
0564 /**
0565 * denotes the N3 ontology format
0566 */
0567 public static final byte ONTOLOGY_FORMAT_N3 = 0;
0568 /**
0569 * denotes the NTRIPLES ontology format
0570 */
0571 public static final byte ONTOLOGY_FORMAT_NTRIPLES = 1;
0572 /**
0573 * denotes the RDFXML ontology format
0574 */
0575 public static final byte ONTOLOGY_FORMAT_RDFXML = 2;
0576 /**
0577 * denotes the TURTLE ontology format
0578 */
0579 public static final byte ONTOLOGY_FORMAT_TURTLE = 3;
0580 /**
0581 * Name of the anonymouse class
0582 */
0583 public static final String ANONYMOUS_CLASS_NAME = "Anonymous";
0584 /// **********************************************
0585 /// when resources are modified
0586 /// **********************************************
0587 /**
0588 * denotes the event when a new class is added
0589 */
0590 public static final int OCLASS_ADDED_EVENT = 0;
0591 /**
0592 * denotes the event when a new anonymous class is added
0593 */
0594 public static final int ANONYMOUS_CLASS_ADDED_EVENT = 1;
0595 /**
0596 * denotes the event when a new cardinality_restriction is added
0597 */
0598 public static final int CARDINALITY_RESTRICTION_ADDED_EVENT = 2;
0599 /**
0600 * denotes the event when a new min_cardinality_restriction is added
0601 */
0602 public static final int MIN_CARDINALITY_RESTRICTION_ADDED_EVENT = 3;
0603 /**
0604 * denotes the event when a new max_cardinality_restriction is added
0605 */
0606 public static final int MAX_CARDINALITY_RESTRICTION_ADDED_EVENT = 4;
0607 /**
0608 * denotes the event when a new has_value_restriction is added
0609 */
0610 public static final int HAS_VALUE_RESTRICTION_ADDED_EVENT = 5;
0611 /**
0612 * denotes the event when a new some_values_from_restriction is added
0613 */
0614 public static final int SOME_VALUES_FROM_RESTRICTION_ADDED_EVENT = 6;
0615 /**
0616 * denotes the event when a new all_values_from_restriction is added
0617 */
0618 public static final int ALL_VALUES_FROM_RESTRICTION_ADDED_EVENT = 7;
0619 /**
0620 * denotes the addition of sub class event
0621 */
0622 public static final int SUB_CLASS_ADDED_EVENT = 8;
0623 /**
0624 * denotes the removal of sub class event
0625 */
0626 public static final int SUB_CLASS_REMOVED_EVENT = 9;
0627 /**
0628 * denotes the event of two classes set as equivalent
0629 */
0630 public static final int EQUIVALENT_CLASS_EVENT = 10;
0631 /**
0632 * denotes the event when a new annotation property is added
0633 */
0634 public static final int ANNOTATION_PROPERTY_ADDED_EVENT = 11;
0635 /**
0636 * denotes the event when a new datatype property is added
0637 */
0638 public static final int DATATYPE_PROPERTY_ADDED_EVENT = 12;
0639 /**
0640 * denotes the event when a new object property is added
0641 */
0642 public static final int OBJECT_PROPERTY_ADDED_EVENT = 13;
0643 /**
0644 * denotes the event when a new transitive
0645 * property is added
0646 */
0647 public static final int TRANSTIVE_PROPERTY_ADDED_EVENT = 14;
0648 /**
0649 * denotes the event when a new symmetric property is added
0650 */
0651 public static final int SYMMETRIC_PROPERTY_ADDED_EVENT = 15;
0652 /**
0653 * denotes the event when an annotation property is assigned to a
0654 * resource with some compatible value
0655 */
0656 public static final int ANNOTATION_PROPERTY_VALUE_ADDED_EVENT = 16;
0657 /**
0658 * denotes the event when a datatype property is assigned to a
0659 * resource with some compatible value
0660 */
0661 public static final int DATATYPE_PROPERTY_VALUE_ADDED_EVENT = 17;
0662 /**
0663 * denotes the event when an object property is assigned to a resource
0664 * with some compatible value
0665 */
0666 public static final int OBJECT_PROPERTY_VALUE_ADDED_EVENT = 18;
0667 /**
0668 * denotes the event when an rdf property is assigned to a resource
0669 * with some compatible value
0670 */
0671 public static final int RDF_PROPERTY_VALUE_ADDED_EVENT = 19;
0672 /**
0673 * denotes the event when an annotation property value is removed from
0674 * the resource
0675 */
0676 public static final int ANNOTATION_PROPERTY_VALUE_REMOVED_EVENT = 20;
0677 /**
0678 * denotes the event when a datatype property value is removed from
0679 * the resource
0680 */
0681 public static final int DATATYPE_PROPERTY_VALUE_REMOVED_EVENT = 21;
0682 /**
0683 * denotes the event when an object property value is removed from the
0684 * resource
0685 */
0686 public static final int OBJECT_PROPERTY_VALUE_REMOVED_EVENT = 22;
0687 /**
0688 * denotes the event when an rdf property value is removed from the
0689 * resource
0690 */
0691 public static final int RDF_PROPERTY_VALUE_REMOVED_EVENT = 23;
0692 /**
0693 * denotes the event when two properties are set to be equivalent
0694 */
0695 public static final int EQUIVALENT_PROPERTY_EVENT = 24;
0696 /**
0697 * denotes the event when a new instance is added
0698 */
0699 public static final int OINSTANCE_ADDED_EVENT = 25;
0700 /**
0701 * denotes the event when two instances are set to be different from
0702 * each other
0703 */
0704 public static final int DIFFERENT_INSTANCE_EVENT = 26;
0705 /**
0706 * denotes the event when two instances are set to be same instances
0707 */
0708 public static final int SAME_INSTANCE_EVENT = 27;
0709 /**
0710 * when a resource is removed
0711 */
0712 public static final int RESOURCE_REMOVED_EVENT = 28;
0713 /**
0714 * when restriction's on property value is changed
0715 */
0716 public static final int RESTRICTION_ON_PROPERTY_VALUE_CHANGED = 29;
0717 /**
0718 * denotes the addition of sub property event
0719 */
0720 public static final int SUB_PROPERTY_ADDED_EVENT = 30;
0721 /**
0722 * denotes the removal of sub property event
0723 */
0724 public static final int SUB_PROPERTY_REMOVED_EVENT = 31;
0725 /// **********************************************
0726 /// Locale constants
0727 /// **********************************************
0728 /** Language code used "aa" */
0729 public static final Locale AFAR = new Locale("aa");
0730 /** Language code used "ab" */
0731 public static final Locale ABKHAZIAN = new Locale("ab");
0732 /** Language code used "af" */
0733 public static final Locale AFRIKAANS = new Locale("af");
0734 /** Language code used "am" */
0735 public static final Locale AMHARIC = new Locale("am");
0736 /** Language code used "ar" */
0737 public static final Locale ARABIC = new Locale("ar");
0738 /** Language code used "as" */
0739 public static final Locale ASSAMESE = new Locale("as");
0740 /** Language code used "ay" */
0741 public static final Locale AYMARA = new Locale("ay");
0742 /** Language code used "az" */
0743 public static final Locale AZERBAIJANI = new Locale("az");
0744 /** Language code used "ba" */
0745 public static final Locale BASHKIR = new Locale("ba");
0746 /** Language code used "be" */
0747 public static final Locale BYELORUSSIAN = new Locale("be");
0748 /** Language code used "bg" */
0749 public static final Locale BULGARIAN = new Locale("bg");
0750 /** Language code used "bh" */
0751 public static final Locale BIHARI = new Locale("bh");
0752 /** Language code used "bi" */
0753 public static final Locale BISLAMA = new Locale("bi");
0754 /** Language code used "bn" */
0755 public static final Locale BENGALI = new Locale("bn");
0756 /** Language code used "bo" */
0757 public static final Locale TIBETAN = new Locale("bo");
0758 /** Language code used "br" */
0759 public static final Locale BRETON = new Locale("br");
0760 /** Language code used "ca" */
0761 public static final Locale CATALAN = new Locale("ca");
0762 /** Language code used "co" */
0763 public static final Locale CORSICAN = new Locale("co");
0764 /** Language code used "cs" */
0765 public static final Locale CZECH = new Locale("cs");
0766 /** Language code used "cy" */
0767 public static final Locale WELSH = new Locale("cy");
0768 /** Language code used "da" */
0769 public static final Locale DANISH = new Locale("da");
0770 /** Language code used "de" */
0771 public static final Locale GERMAN = new Locale("de");
0772 /** Language code used "dz" */
0773 public static final Locale BHUTANI = new Locale("dz");
0774 /** Language code used "el" */
0775 public static final Locale GREEK = new Locale("el");
0776 /** Language code used "en" */
0777 public static final Locale ENGLISH = new Locale("en");
0778 /** Language code used "eo" */
0779 public static final Locale ESPERANTO = new Locale("eo");
0780 /** Language code used "es" */
0781 public static final Locale SPANISH = new Locale("es");
0782 /** Language code used "et" */
0783 public static final Locale ESTONIAN = new Locale("et");
0784 /** Language code used "eu" */
0785 public static final Locale BASQUE = new Locale("eu");
0786 /** Language code used "fa" */
0787 public static final Locale PERSIAN = new Locale("fa");
0788 /** Language code used "fi" */
0789 public static final Locale FINNISH = new Locale("fi");
0790 /** Language code used "fj" */
0791 public static final Locale FIJI = new Locale("fj");
0792 /** Language code used "fo" */
0793 public static final Locale FAROESE = new Locale("fo");
0794 /** Language code used "fr" */
0795 public static final Locale FRENCH = new Locale("fr");
0796 /** Language code used "fy" */
0797 public static final Locale FRISIAN = new Locale("fy");
0798 /** Language code used "ga" */
0799 public static final Locale IRISH = new Locale("ga");
0800 /** Language code used "gd" */
0801 public static final Locale SCOTS = new Locale("gd");
0802 /** Language code used "gl" */
0803 public static final Locale GALICIAN = new Locale("gl");
0804 /** Language code used "gn" */
0805 public static final Locale GUARANI = new Locale("gn");
0806 /** Language code used "gu" */
0807 public static final Locale GUJARATI = new Locale("gu");
0808 /** Language code used "ha" */
0809 public static final Locale HAUSA = new Locale("ha");
0810 /** Language code used "he" */
0811 public static final Locale HEBREW = new Locale("he");
0812 /** Language code used "hi" */
0813 public static final Locale HINDI = new Locale("hi");
0814 /** Language code used "hr" */
0815 public static final Locale CROATIAN = new Locale("hr");
0816 /** Language code used "hu" */
0817 public static final Locale HUNGARIAN = new Locale("hu");
0818 /** Language code used "hy" */
0819 public static final Locale ARMENIAN = new Locale("hy");
0820 /** Language code used "ia" */
0821 public static final Locale INTERLINGUA = new Locale("ia");
0822 /** Language code used "id" */
0823 public static final Locale INDONESIAN = new Locale("id");
0824 /** Language code used "ie" */
0825 public static final Locale INTERLINGUE = new Locale("ie");
0826 /** Language code used "ik" */
0827 public static final Locale INUPIAK = new Locale("ik");
0828 /** Language code used "is" */
0829 public static final Locale ICELANDIC = new Locale("is");
0830 /** Language code used "it" */
0831 public static final Locale ITALIAN = new Locale("it");
0832 /** Language code used "iu" */
0833 public static final Locale INUKTITUT = new Locale("iu");
0834 /** Language code used "ja" */
0835 public static final Locale JAPANESE = new Locale("ja");
0836 /** Language code used "jw" */
0837 public static final Locale JAVANESE = new Locale("jw");
0838 /** Language code used "ka" */
0839 public static final Locale GEORGIAN = new Locale("ka");
0840 /** Language code used "kk" */
0841 public static final Locale KAZAKH = new Locale("kk");
0842 /** Language code used "kl" */
0843 public static final Locale GREENLANDIC = new Locale("kl");
0844 /** Language code used "km" */
0845 public static final Locale CAMBODIAN = new Locale("km");
0846 /** Language code used "kn" */
0847 public static final Locale KANNADA = new Locale("kn");
0848 /** Language code used "ko" */
0849 public static final Locale KOREAN = new Locale("ko");
0850 /** Language code used "ks" */
0851 public static final Locale KASHMIRI = new Locale("ks");
0852 /** Language code used "ku" */
0853 public static final Locale KURDISH = new Locale("ku");
0854 /** Language code used "ky" */
0855 public static final Locale KIRGHIZ = new Locale("ky");
0856 /** Language code used "la" */
0857 public static final Locale LATIN = new Locale("la");
0858 /** Language code used "ln" */
0859 public static final Locale LINGALA = new Locale("ln");
0860 /** Language code used "lo" */
0861 public static final Locale LAOTHIAN = new Locale("lo");
0862 /** Language code used "lt" */
0863 public static final Locale LITHUANIAN = new Locale("lt");
0864 /** Language code used "lv" */
0865 public static final Locale LATVIAN = new Locale("lv");
0866 /** Language code used "mg" */
0867 public static final Locale MALAGASY = new Locale("mg");
0868 /** Language code used "mi" */
0869 public static final Locale MAORI = new Locale("mi");
0870 /** Language code used "mk" */
0871 public static final Locale MACEDONIAN = new Locale("mk");
0872 /** Language code used "ml" */
0873 public static final Locale MALAYALAM = new Locale("ml");
0874 /** Language code used "mn" */
0875 public static final Locale MONGOLIAN = new Locale("mn");
0876 /** Language code used "mo" */
0877 public static final Locale MOLDAVIAN = new Locale("mo");
0878 /** Language code used "mr" */
0879 public static final Locale MARATHI = new Locale("mr");
0880 /** Language code used "ms" */
0881 public static final Locale MALAY = new Locale("ms");
0882 /** Language code used "mt" */
0883 public static final Locale MALTESE = new Locale("mt");
0884 /** Language code used "my" */
0885 public static final Locale BURMESE = new Locale("my");
0886 /** Language code used "na" */
0887 public static final Locale NAURU = new Locale("na");
0888 /** Language code used "ne" */
0889 public static final Locale NEPALI = new Locale("ne");
0890 /** Language code used "nl" */
0891 public static final Locale DUTCH = new Locale("nl");
0892 /** Language code used "no" */
0893 public static final Locale NORWEGIAN = new Locale("no");
0894 /** Language code used "oc" */
0895 public static final Locale OCCITAN = new Locale("oc");
0896 /** Language code used "om" */
0897 public static final Locale OROMO = new Locale("om");
0898 /** Language code used "or" */
0899 public static final Locale ORIYA = new Locale("or");
0900 /** Language code used "pa" */
0901 public static final Locale PUNJABI = new Locale("pa");
0902 /** Language code used "pl" */
0903 public static final Locale POLISH = new Locale("pl");
0904 /** Language code used "ps" */
0905 public static final Locale PASHTO = new Locale("ps");
0906 /** Language code used "pt" */
0907 public static final Locale PORTUGUESE = new Locale("pt");
0908 /** Language code used "qu" */
0909 public static final Locale QUECHUA = new Locale("qu");
0910 /** Language code used "rm" */
0911 public static final Locale RHAETO_ROMANCE = new Locale("rm");
0912 /** Language code used "rn" */
0913 public static final Locale KIRUNDI = new Locale("rn");
0914 /** Language code used "ro" */
0915 public static final Locale ROMANIAN = new Locale("ro");
0916 /** Language code used "ru" */
0917 public static final Locale RUSSIAN = new Locale("ru");
0918 /** Language code used "rw" */
0919 public static final Locale KINYARWANDA = new Locale("rw");
0920 /** Language code used "sa" */
0921 public static final Locale SANSKRIT = new Locale("sa");
0922 /** Language code used "sd" */
0923 public static final Locale SINDHI = new Locale("sd");
0924 /** Language code used "sg" */
0925 public static final Locale SANGHO = new Locale("sg");
0926 /** Language code used "sh" */
0927 public static final Locale SERBO_CROATIAN = new Locale("sh");
0928 /** Language code used "si" */
0929 public static final Locale SINHALESE = new Locale("si");
0930 /** Language code used "sk" */
0931 public static final Locale SLOVAK = new Locale("sk");
0932 /** Language code used "sl" */
0933 public static final Locale SLOVENIAN = new Locale("sl");
0934 /** Language code used "sm" */
0935 public static final Locale SAMOAN = new Locale("sm");
0936 /** Language code used "sn" */
0937 public static final Locale SHONA = new Locale("sn");
0938 /** Language code used "so" */
0939 public static final Locale SOMALI = new Locale("so");
0940 /** Language code used "sq" */
0941 public static final Locale ALBANIAN = new Locale("sq");
0942 /** Language code used "sr" */
0943 public static final Locale SERBIAN = new Locale("sr");
0944 /** Language code used "ss" */
0945 public static final Locale SISWATI = new Locale("ss");
0946 /** Language code used "st" */
0947 public static final Locale SESOTHO = new Locale("st");
0948 /** Language code used "su" */
0949 public static final Locale SUNDANESE = new Locale("su");
0950 /** Language code used "sv" */
0951 public static final Locale SWEDISH = new Locale("sv");
0952 /** Language code used "sw" */
0953 public static final Locale SWAHILI = new Locale("sw");
0954 /** Language code used "ta" */
0955 public static final Locale TAMIL = new Locale("ta");
0956 /** Language code used "te" */
0957 public static final Locale TELUGU = new Locale("te");
0958 /** Language code used "tg" */
0959 public static final Locale TAJIK = new Locale("tg");
0960 /** Language code used "th" */
0961 public static final Locale THAI = new Locale("th");
0962 /** Language code used "ti" */
0963 public static final Locale TIGRINYA = new Locale("ti");
0964 /** Language code used "tk" */
0965 public static final Locale TURKMEN = new Locale("tk");
0966 /** Language code used "tl" */
0967 public static final Locale TAGALOG = new Locale("tl");
0968 /** Language code used "tn" */
0969 public static final Locale SETSWANA = new Locale("tn");
0970 /** Language code used "to" */
0971 public static final Locale TONGA = new Locale("to");
0972 /** Language code used "tr" */
0973 public static final Locale TURKISH = new Locale("tr");
0974 /** Language code used "ts" */
0975 public static final Locale TSONGA = new Locale("ts");
0976 /** Language code used "tt" */
0977 public static final Locale TATAR = new Locale("tt");
0978 /** Language code used "tw" */
0979 public static final Locale TWI = new Locale("tw");
0980 /** Language code used "ug" */
0981 public static final Locale UIGHUR = new Locale("ug");
0982 /** Language code used "uk" */
0983 public static final Locale UKRAINIAN = new Locale("uk");
0984 /** Language code used "ur" */
0985 public static final Locale URDU = new Locale("ur");
0986 /** Language code used "uz" */
0987 public static final Locale UZBEK = new Locale("uz");
0988 /** Language code used "vi" */
0989 public static final Locale VIETNAMESE = new Locale("vi");
0990 /** Language code used "vo" */
0991 public static final Locale VOLAPUK = new Locale("vo");
0992 /** Language code used "wo" */
0993 public static final Locale WOLOF = new Locale("wo");
0994 /** Language code used "xh" */
0995 public static final Locale XHOSA = new Locale("xh");
0996 /** Language code used "yi" */
0997 public static final Locale YIDDISH = new Locale("yi");
0998 /** Language code used "yo" */
0999 public static final Locale YORUBA = new Locale("yo");
1000 /** Language code used "za" */
1001 public static final Locale ZHUANG = new Locale("za");
1002 /** Language code used "zh" */
1003 public static final Locale CHINESE = new Locale("zh");
1004 /** Language code used "zu" */
1005 public static final Locale ZULU = new Locale("zu");
1006 }
|