KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > hp > hpl > jena > vocabulary > RDFS


1
2
3 package com.hp.hpl.jena.vocabulary;
4
5 import com.hp.hpl.jena.rdf.model.*;
6 import com.hp.hpl.jena.graph.*;
7
8 /**
9     RDFS vocabulary items
10     @author bwm, updated by kers/daniel/christopher
11     @version $Id: RDFS.java,v 1.12 2005/02/21 12:21:34 andy_seaborne Exp $
12  */

13 public class RDFS {
14
15     protected static final String JavaDoc uri="http://www.w3.org/2000/01/rdf-schema#";
16
17     protected static final Resource resource( String JavaDoc local )
18         { return ResourceFactory.createResource( uri + local ); }
19
20     protected static final Property property( String JavaDoc local )
21         { return ResourceFactory.createProperty( uri, local ); }
22
23     public static final Resource Class = resource( "Class");
24     public static final Resource Datatype = resource( "Datatype");
25     public static final Resource ConstraintProperty = resource( "ConstraintProperty");
26     public static final Resource Container = resource( "Container");
27     public static final Resource ContainerMembershipProperty
28                                                      = resource( "ContainerMembershipProperty");
29     public static final Resource ConstraintResource = resource( "ConstraintResource");
30     public static final Resource Literal = resource( "Literal");
31     public static final Resource Resource = resource( "Resource");
32
33     public static final Property comment = property( "comment");
34     public static final Property domain = property( "domain");
35     public static final Property label = property( "label");
36     public static final Property isDefinedBy = property( "isDefinedBy");
37     public static final Property range = property( "range");
38     public static final Property seeAlso = property( "seeAlso");
39     public static final Property subClassOf = property( "subClassOf");
40     public static final Property subPropertyOf = property( "subPropertyOf");
41     public static final Property member = property( "member");
42
43     /**
44         The RDFS vocabulary, expressed for the SPI layer in terms of .graph Nodes.
45     */

46     public static class Nodes
47         {
48         public static final Node Class = RDFS.Class.getNode();
49         public static final Node Datatype = RDFS.Datatype.getNode();
50         public static final Node ConstraintProperty = RDFS. ConstraintProperty.getNode();
51         public static final Node Container = RDFS.Container.getNode();
52         public static final Node ContainerMembershipProperty
53                                                          = RDFS.ContainerMembershipProperty.getNode();
54         public static final Node Literal = RDFS.Literal.getNode();
55         public static final Node Resource = RDFS.Resource.getNode();
56         public static final Node comment = RDFS.comment.getNode();
57         public static final Node domain = RDFS.domain.getNode();
58         public static final Node label = RDFS.label.getNode();
59         public static final Node isDefinedBy = RDFS.isDefinedBy.getNode();
60         public static final Node range = RDFS.range.getNode();
61         public static final Node seeAlso = RDFS.seeAlso.getNode();
62         public static final Node subClassOf = RDFS.subClassOf.getNode();
63         public static final Node subPropertyOf = RDFS.subPropertyOf.getNode();
64         public static final Node member = RDFS.member.getNode();
65         }
66
67     /**
68         returns the URI for this schema
69         @return the URI for this schema
70     */

71     public static String JavaDoc getURI() {
72         return uri;
73     }
74 }
75
76 /*
77  * (c) Copyright 2000, 2001, 2002, 2002, 2003, 2004, 2005 Hewlett-Packard Development Company, LP
78  * All rights reserved.
79  *
80  * Redistribution and use in source and binary forms, with or without
81  * modification, are permitted provided that the following conditions
82  * are met:
83  * 1. Redistributions of source code must retain the above copyright
84  * notice, this list of conditions and the following disclaimer.
85  * 2. Redistributions in binary form must reproduce the above copyright
86  * notice, this list of conditions and the following disclaimer in the
87  * documentation and/or other materials provided with the distribution.
88  * 3. The name of the author may not be used to endorse or promote products
89  * derived from this software without specific prior written permission.
90
91  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
92  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
93  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
94  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
95  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
96  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
97  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
98  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
99  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
100  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
101  *
102  * RDFS.java
103  *
104  * Created on 28 July 2000, 18:13
105  */

106
Popular Tags