com.hp.hpl.mesa.rdf.jena.rdb
Class PropertyImplRDB
java.lang.Object
|
+--com.hp.hpl.mesa.rdf.jena.common.ResourceImpl
|
+--com.hp.hpl.mesa.rdf.jena.rdb.ResourceImplRDB
|
+--com.hp.hpl.mesa.rdf.jena.rdb.PropertyImplRDB
- All Implemented Interfaces:
- Property, RDFNode, Resource, ResourceI
- public class PropertyImplRDB
- extends ResourceImplRDB
- implements Property
A variation on the default Property implementation that adds a unique
database ID field. This could be hash generated from the string given
a sufficiently unique hash but currently is assigned outside this class,
typically as a generated ID in a database table.
- Version:
- $Revision: 1.2 $ on $Date: 2001/11/26 18:20:10 $
- Author:
- Dave Reynolds
Method Summary |
java.lang.String |
getLocalName()
Returns the name of this property within its namespace. |
java.lang.String |
getNameSpace()
Returns the namespace associated with this property. |
int |
getOrdinal()
Returns the ordinal value of a containment property. |
Resource |
port(Model m)
For internal use only |
Methods inherited from class com.hp.hpl.mesa.rdf.jena.common.ResourceImpl |
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getEmbeddedResource, getId, getModel, getProperty, getURI, hashCode, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, removeProperties, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.Resource |
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getModel, getProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, removeProperties, toString |
PropertyImplRDB
public PropertyImplRDB(Property p,
Model m)
throws RDFException
- Additional constructor beyond standard PropertyImpl set, used to
create a copy of a property attached to a new model.
PropertyImplRDB
public PropertyImplRDB(java.lang.String uri)
throws RDFException
- Creates new PropertyImpl
PropertyImplRDB
public PropertyImplRDB(java.lang.String nameSpace,
java.lang.String localName)
throws RDFException
PropertyImplRDB
public PropertyImplRDB(java.lang.String uri,
Model m)
throws RDFException
PropertyImplRDB
public PropertyImplRDB(java.lang.String nameSpace,
java.lang.String localName,
Model m)
throws RDFException
PropertyImplRDB
public PropertyImplRDB(java.lang.String nameSpace,
java.lang.String localName,
int ordinal,
Model m)
throws RDFException
getNameSpace
public java.lang.String getNameSpace()
- Description copied from interface:
Property
- Returns the namespace associated with this property.
- Specified by:
getNameSpace
in interface Property
- Overrides:
getNameSpace
in class ResourceImpl
- Following copied from interface:
com.hp.hpl.mesa.rdf.jena.model.Property
- Returns:
- The namespace for this property.
getLocalName
public java.lang.String getLocalName()
- Description copied from interface:
Property
- Returns the name of this property within its namespace.
- Specified by:
getLocalName
in interface Property
- Overrides:
getLocalName
in class ResourceImpl
- Following copied from interface:
com.hp.hpl.mesa.rdf.jena.model.Property
- Returns:
- The name of this property within its namespace.
getOrdinal
public int getOrdinal()
- Description copied from interface:
Property
- Returns the ordinal value of a containment property.
RDF containers use properties of the form _1, _2, _3 etc to represent
the containment relationship between the container and the objects it
contains. When invoked on such a containment property, this method
returns the integer part of the property name. When invoked on other
properties, it returns 0.
- Specified by:
getOrdinal
in interface Property
- Following copied from interface:
com.hp.hpl.mesa.rdf.jena.model.Property
- Returns:
- The ordinal value of a containment property,
or 0 otherwise.
port
public Resource port(Model m)
throws RDFException
- Description copied from interface:
ResourceI
- For internal use only
- Overrides:
port
in class ResourceImpl
Copyright © 2001 Hewlett-Packard. All Rights Reserved.