1 6 7 package com.hp.hpl.jena.vocabulary; 8 9 import com.hp.hpl.jena.graph.*; 10 import com.hp.hpl.jena.rdf.model.*; 11 12 17 18 public class RDF{ 19 20 protected static final String uri ="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; 21 22 25 public static String getURI() 26 { return uri; } 27 28 protected static final Resource resource( String local ) 29 { return ResourceFactory.createResource( uri + local ); } 30 31 protected static final Property property( String local ) 32 { return ResourceFactory.createProperty( uri, local ); } 33 34 public static Property li( int i ) 35 { return property( "_" + i ); } 36 37 public static final Resource Alt = resource( "Alt" ); 38 public static final Resource Bag = resource( "Bag" ); 39 public static final Resource Property = resource( "Property" ); 40 public static final Resource Seq = resource( "Seq" ); 41 public static final Resource Statement = resource( "Statement" ); 42 public static final Resource List = resource( "List" ); 43 public static final Resource nil = resource( "nil" ); 44 45 public static final Property first = property( "first" ); 46 public static final Property rest = property( "rest" ); 47 public static final Property subject = property( "subject" ); 48 public static final Property predicate = property( "predicate" ); 49 public static final Property object = property( "object" ); 50 public static final Property type = property( "type" ); 51 public static final Property value = property( "value" ); 52 53 57 public static final class Nodes 58 { 59 public static final Node Alt = RDF.Alt.getNode(); 60 public static final Node Bag = RDF.Bag.getNode(); 61 public static final Node Property = RDF.Property.getNode(); 62 public static final Node Seq = RDF.Seq.getNode(); 63 public static final Node Statement = RDF.Statement.getNode(); 64 public static final Node List = RDF.List.getNode(); 65 public static final Node nil = RDF.nil.getNode(); 66 public static final Node first = RDF.first.getNode(); 67 public static final Node rest = RDF.rest.getNode(); 68 public static final Node subject = RDF.subject.getNode(); 69 public static final Node predicate = RDF.predicate.getNode(); 70 public static final Node object = RDF.object.getNode(); 71 public static final Node type = RDF.type.getNode(); 72 public static final Node value = RDF.value.getNode(); 73 } 74 75 } 76 77 107 | Popular Tags |