001: package com.hp.hpl.jena.vocabulary;
002:
003: import com.hp.hpl.jena.rdf.model.*;
004: import com.hp.hpl.jena.graph.*;
005:
006: /**
007: RDFS vocabulary items
008: @author bwm, updated by kers/daniel/christopher
009: @version $Id: RDFS.java,v 1.17 2008/01/02 12:07:29 andy_seaborne Exp $
010: */
011: public class RDFS {
012:
013: protected static final String uri = "http://www.w3.org/2000/01/rdf-schema#";
014:
015: protected static final Resource resource(String local) {
016: return ResourceFactory.createResource(uri + local);
017: }
018:
019: protected static final Property property(String local) {
020: return ResourceFactory.createProperty(uri, local);
021: }
022:
023: public static final Resource Class = resource("Class");
024: public static final Resource Datatype = resource("Datatype");
025:
026: /**
027: @deprecated obsolete: was removed by the most recent standard
028: */
029: public static final Resource ConstraintProperty = resource("ConstraintProperty");
030:
031: public static final Resource Container = resource("Container");
032:
033: public static final Resource ContainerMembershipProperty = resource("ContainerMembershipProperty");
034:
035: /**
036: @deprecated obsolete: was removed by the most recent standard
037: */
038: public static final Resource ConstraintResource = resource("ConstraintResource");
039:
040: public static final Resource Literal = resource("Literal");
041: public static final Resource Resource = resource("Resource");
042:
043: public static final Property comment = property("comment");
044: public static final Property domain = property("domain");
045: public static final Property label = property("label");
046: public static final Property isDefinedBy = property("isDefinedBy");
047: public static final Property range = property("range");
048: public static final Property seeAlso = property("seeAlso");
049: public static final Property subClassOf = property("subClassOf");
050: public static final Property subPropertyOf = property("subPropertyOf");
051: public static final Property member = property("member");
052:
053: /**
054: The RDFS vocabulary, expressed for the SPI layer in terms of .graph Nodes.
055: */
056: public static class Nodes {
057: public static final Node Class = RDFS.Class.asNode();
058: public static final Node Datatype = RDFS.Datatype.asNode();
059: public static final Node ConstraintProperty = RDFS.ConstraintProperty
060: .asNode();
061: public static final Node Container = RDFS.Container.asNode();
062: public static final Node ContainerMembershipProperty = RDFS.ContainerMembershipProperty
063: .asNode();
064: public static final Node Literal = RDFS.Literal.asNode();
065: public static final Node Resource = RDFS.Resource.asNode();
066: public static final Node comment = RDFS.comment.asNode();
067: public static final Node domain = RDFS.domain.asNode();
068: public static final Node label = RDFS.label.asNode();
069: public static final Node isDefinedBy = RDFS.isDefinedBy
070: .asNode();
071: public static final Node range = RDFS.range.asNode();
072: public static final Node seeAlso = RDFS.seeAlso.asNode();
073: public static final Node subClassOf = RDFS.subClassOf.asNode();
074: public static final Node subPropertyOf = RDFS.subPropertyOf
075: .asNode();
076: public static final Node member = RDFS.member.asNode();
077: }
078:
079: /**
080: returns the URI for this schema
081: @return the URI for this schema
082: */
083: public static String getURI() {
084: return uri;
085: }
086: }
087:
088: /*
089: * (c) Copyright 2000, 2001, 2002, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
090: * All rights reserved.
091: *
092: * Redistribution and use in source and binary forms, with or without
093: * modification, are permitted provided that the following conditions
094: * are met:
095: * 1. Redistributions of source code must retain the above copyright
096: * notice, this list of conditions and the following disclaimer.
097: * 2. Redistributions in binary form must reproduce the above copyright
098: * notice, this list of conditions and the following disclaimer in the
099: * documentation and/or other materials provided with the distribution.
100: * 3. The name of the author may not be used to endorse or promote products
101: * derived from this software without specific prior written permission.
102:
103: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
104: * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
105: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
106: * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
107: * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
108: * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
109: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
110: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
111: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
112: * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
113: *
114: * RDFS.java
115: *
116: * Created on 28 July 2000, 18:13
117: */
|