src.com.hp.hpl.jena.vocabulary.RDF Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jena Show documentation
Show all versions of jena Show documentation
Jena is a Java framework for building Semantic Web applications. It provides a programmatic environment for RDF, RDFS and OWL, SPARQL and includes a rule-based inference engine.
/*
(c) Copyright 2000, 2001, 2002, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
[See end of file]
$Id: RDF.java,v 1.14 2008/01/02 12:07:29 andy_seaborne Exp $
*/
package com.hp.hpl.jena.vocabulary;
import com.hp.hpl.jena.graph.*;
import com.hp.hpl.jena.rdf.model.*;
/**
The standard RDF vocabulary.
@author bwm; updated by kers/daniel/christopher
@version $Id: RDF.java,v 1.14 2008/01/02 12:07:29 andy_seaborne Exp $
*/
public class RDF{
protected static final String uri ="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
/** returns the URI for this schema
@return the URI for this schema
*/
public static String getURI()
{ return uri; }
protected static final Resource resource( String local )
{ return ResourceFactory.createResource( uri + local ); }
protected static final Property property( String local )
{ return ResourceFactory.createProperty( uri, local ); }
public static Property li( int i )
{ return property( "_" + i ); }
public static final Resource Alt = resource( "Alt" );
public static final Resource Bag = resource( "Bag" );
public static final Resource Property = resource( "Property" );
public static final Resource Seq = resource( "Seq" );
public static final Resource Statement = resource( "Statement" );
public static final Resource List = resource( "List" );
public static final Resource nil = resource( "nil" );
public static final Property first = property( "first" );
public static final Property rest = property( "rest" );
public static final Property subject = property( "subject" );
public static final Property predicate = property( "predicate" );
public static final Property object = property( "object" );
public static final Property type = property( "type" );
public static final Property value = property( "value" );
/**
The same items of vocabulary, but at the Node level, parked inside a
nested class so that there's a simple way to refer to them.
*/
public static final class Nodes
{
public static final Node Alt = RDF.Alt.asNode();
public static final Node Bag = RDF.Bag.asNode();
public static final Node Property = RDF.Property.asNode();
public static final Node Seq = RDF.Seq.asNode();
public static final Node Statement = RDF.Statement.asNode();
public static final Node List = RDF.List.asNode();
public static final Node nil = RDF.nil.asNode();
public static final Node first = RDF.first.asNode();
public static final Node rest = RDF.rest.asNode();
public static final Node subject = RDF.subject.asNode();
public static final Node predicate = RDF.predicate.asNode();
public static final Node object = RDF.object.asNode();
public static final Node type = RDF.type.asNode();
public static final Node value = RDF.value.asNode();
}
}
/*
* (c) Copyright 2000, 2001, 2002, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* RDF.java
*
* Created on 28 July 2000, 18:12
*/