001 /**
002 * Copyright (C) 2007-2011, Jens Lehmann
003 *
004 * This file is part of DL-Learner.
005 *
006 * DL-Learner is free software; you can redistribute it and/or modify
007 * it under the terms of the GNU General Public License as published by
008 * the Free Software Foundation; either version 3 of the License, or
009 * (at your option) any later version.
010 *
011 * DL-Learner is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
014 * GNU General Public License for more details.
015 *
016 * You should have received a copy of the GNU General Public License
017 * along with this program. If not, see <http://www.gnu.org/licenses/>.
018 */
019
020 package org.dllearner.utilities.owl;
021
022 public class OWLVocabulary {
023
024 public static final String RDF_TYPE = "http://www.w3.org/1999/02/22-rdf-syntax-ns#type";
025
026 public static final String RDF_FIRST = "http://www.w3.org/1999/02/22-rdf-syntax-ns#first";
027 public static final String RDF_REST = "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest";
028 public static final String RDF_NIL = "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil";
029
030 public static final String RDFS_SUBCLASS_OF = "http://www.w3.org/2000/01/rdf-schema#subClassOf";
031 public static final String RDFS_CLASS = "http://www.w3.org/2000/01/rdf-schema#Class";
032 public static final String RDFS_IS_DEFINED_BY = "http://www.w3.org/2000/01/rdf-schema#isDefinedBy";
033
034 public static final String RDFS_COMMENT = "http://www.w3.org/2000/01/rdf-schema#comment";
035 public static final String RDFS_LABEL = "http://www.w3.org/2000/01/rdf-schema#label";
036 public static final String RDFS_DESCRIPTION = "http://www.w3.org/2000/01/rdf-schema#description";
037
038 public static final String RDFS_SUB_PROPERTY_OF = "http://www.w3.org/2000/01/rdf-schema#subPropertyOf";
039 public static final String RDFS_domain = "http://www.w3.org/2000/01/rdf-schema#domain";
040 public static final String RDFS_range = "http://www.w3.org/2000/01/rdf-schema#range";
041
042
043
044 public static final String OWL_SAME_AS = "http://www.w3.org/2002/07/owl#sameAs";
045 public static final String OWL_DIFFERENT_FROM = "http://www.w3.org/2002/07/owl#differentFrom";
046
047 public static final String OWL_OBJECTPROPERTY = "http://www.w3.org/2002/07/owl#ObjectProperty";
048 public static final String OWL_DATATYPPROPERTY = "http://www.w3.org/2002/07/owl#DataTypeProperty";
049 public static final String OWL_CLASS = "http://www.w3.org/2002/07/owl#Class";
050
051 public static final String OWL_SUBCLASS_OF = "http://www.w3.org/2002/07/owl#subClassOf";
052 public static final String OWL_DISJOINT_WITH = "http://www.w3.org/2002/07/owl#disjointWith";
053 public static final String OWL_EQUIVALENT_CLASS = "http://www.w3.org/2002/07/owl#equivalentClass";
054
055 public static final String OWL_intersectionOf = "http://www.w3.org/2002/07/owl#intersectionOf";
056 public static final String OWL_unionOf = "http://www.w3.org/2002/07/owl#unionOf";
057 public static final String OWL_complementOf = "http://www.w3.org/2002/07/owl#complementOf";
058
059 public static final String OWL_RESTRICTION = "http://www.w3.org/2002/07/owl#Restriction";
060 public static final String OWL_ON_PROPERTY = "http://www.w3.org/2002/07/owl#onProperty";
061
062 public static final String OWL_ALL_VALUES_FROM = "http://www.w3.org/2002/07/owl#allValuesFrom";
063 public static final String OWL_SOME_VALUES_FROM = "http://www.w3.org/2002/07/owl#allValuesFrom";
064 public static final String OWL_HAS_VALUE = "http://www.w3.org/2002/07/owl#hasValue";
065
066 public static final String OWL_maxCardinality = "http://www.w3.org/2002/07/owl#maxCardinality";
067 public static final String OWL_minCardinality = "http://www.w3.org/2002/07/owl#minCardinality";
068 public static final String OWL_cardinality = "http://www.w3.org/2002/07/owl#cardinality";
069
070
071 public static final String OWL_FunctionalProperty = "http://www.w3.org/2002/07/owl#FunctionalProperty";
072 public static final String OWL_InverseFunctionalProperty = "http://www.w3.org/2002/07/owl#InverseFunctionalProperty";
073 public static final String OWL_TransitiveProperty = "http://www.w3.org/2002/07/owl#TransitiveProperty";
074 public static final String OWL_SymmetricProperty = "http://www.w3.org/2002/07/owl#SymmetricProperty";
075
076
077 public static final String OWL_equivalentProperty = "http://www.w3.org/2002/07/owl#equivalentProperty";
078 public static final String OWL_inverseOf = "http://www.w3.org/2002/07/owl#inverseOf";
079
080
081
082 public static final String OWL_THING = "http://www.w3.org/2002/07/owl#Thing";
083 public static final String OWL_NOTHING = "http://www.w3.org/2002/07/owl#Nothing";
084
085 //OWL2 Namespace: http://www.w3.org/2006/12/owl2#
086
087 public static boolean isStringClassVocab (String possClass){
088 return (RDFS_CLASS.equalsIgnoreCase(possClass)
089 || OWL_CLASS.equalsIgnoreCase(possClass));
090
091 }
092
093 public static boolean isStringSubClassVocab (String possSubClass){
094 return (RDFS_SUBCLASS_OF.equalsIgnoreCase(possSubClass)
095 || OWL_SUBCLASS_OF.equalsIgnoreCase(possSubClass));
096
097 }
098 // public static final String RDF_TYPE = "";
099 // public static final String RDF_TYPE = "";
100 // public static final String RDF_TYPE = "";
101 // public static final String RDF_TYPE = "";
102 // public static final String RDF_TYPE = "";
103 // public static final String RDF_TYPE = "";
104 }