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 13 public class RDFS { 14 15 protected static final String uri="http://www.w3.org/2000/01/rdf-schema#"; 16 17 protected static final Resource resource( String local ) 18 { return ResourceFactory.createResource( uri + local ); } 19 20 protected static final Property property( String 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 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 71 public static String getURI() { 72 return uri; 73 } 74 } 75 76 106 | Popular Tags |