001 /*
002 * The contents of this file are subject to the Mozilla Public License
003 * Version 1.1 (the "License"); you may not use this file except in
004 * compliance with the License. You may obtain a copy of the License at
005 * http://www.mozilla.org/MPL/
006 *
007 * Software distributed under the License is distributed on an "AS IS" basis,
008 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
009 * the specific language governing rights and limitations under the License.
010 *
011 * The Original Code is Protege-2000.
012 *
013 * The Initial Developer of the Original Code is Stanford University. Portions
014 * created by Stanford University are Copyright (C) 2007. All Rights Reserved.
015 *
016 * Protege was developed by Stanford Medical Informatics
017 * (http://www.smi.stanford.edu) at the Stanford University School of Medicine
018 * with support from the National Library of Medicine, the National Science
019 * Foundation, and the Defense Advanced Research Projects Agency. Current
020 * information about Protege can be obtained at http://protege.stanford.edu.
021 *
022 */
023
024 package edu.stanford.smi.protegex.owl.model;
025
026 import edu.stanford.smi.protege.model.FrameID;
027
028
029 /**
030 * Defines the names of the RDF(S) related parts of the OWL system ontology.
031 * This corresponds to the Model interface in general Protege.
032 *
033 * @author Holger Knublauch <holger@knublauch.com>
034 */
035 public interface RDFNames {
036
037 //added by TT for use of the fully qualified name for the owl metamodel
038
039 static String RDF_NAMESPACE= "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
040
041 public static interface Cls {
042
043 final static String ALT = (RDF_NAMESPACE + "Alt").intern();
044
045 final static String BAG = (RDF_NAMESPACE + "Bag").intern();
046
047 final static String DESCRIPTION = (RDF_NAMESPACE + "Description").intern();
048
049 final static String LIST = (RDF_NAMESPACE + "List").intern();
050
051 final static String PROPERTY = (RDF_NAMESPACE + "Property").intern();
052
053 final static String SEQ = (RDF_NAMESPACE + "Seq").intern();
054
055 final static String STATEMENT = (RDF_NAMESPACE + "Statement").intern();
056
057 final static String EXTERNAL_RESOURCE = (ProtegeNames.PROTEGE_OWL_NAMESPACE + "ExternalResource").intern();
058
059 final static String EXTERNAL_CLASS = (ProtegeNames.PROTEGE_OWL_NAMESPACE + "ExternalClass").intern();
060
061 final static String EXTERNAL_PROPERTY = (ProtegeNames.PROTEGE_OWL_NAMESPACE + "ExternalProperty").intern();
062
063 }
064
065
066 public interface ClsID {
067
068 FrameID PROPERTY = new FrameID(Cls.PROPERTY);
069 }
070
071 public static interface Slot {
072
073 /* *********************************************
074 * These guys aren't really slots or even resources? I think that
075 * that are actually just part of the rdf syntax.
076 */
077 final static String ABOUT = "rdf:about";
078
079 final static String ID = "rdf:ID";
080
081 final static String RESOURCE = "rdf:resource";
082
083 final static String PARSE_TYPE = "rdf:parseType";
084
085 final static String DATATYPE = "rdf:datatype";
086 /*
087 * *********************************************
088 */
089
090
091 final static String FIRST = (RDF_NAMESPACE + "first").intern();
092
093 final static String OBJECT = (RDF_NAMESPACE + "object").intern();
094
095 final static String PREDICATE = (RDF_NAMESPACE + "predicate").intern();
096
097 final static String REST = (RDF_NAMESPACE + "rest").intern();
098
099 final static String SUBJECT = (RDF_NAMESPACE + "subject").intern();
100
101 final static String TYPE = (RDF_NAMESPACE + "type").intern();
102
103 final static String VALUE = (RDF_NAMESPACE + "value").intern();
104 }
105
106
107 public static interface Instance {
108
109 final static String NIL = (RDF_NAMESPACE + "nil").intern();
110 }
111
112 final static String COLLECTION = "Collection";
113
114 final static String RDF_PREFIX = "rdf";
115
116 final static String XSD_PREFIX = "xsd";
117
118 final static String XML_LITERAL = (RDF_NAMESPACE + "XMLLiteral").intern();
119
120 /*
121 * I don't think that this is even a resources - it seems to just
122 * be part of the rdf syntax.
123 */
124 final static String RDF = "rdf:RDF";
125 }
126