|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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
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.
| Constructor Summary | |
PropertyImplRDB(Property p,
Model m)
Additional constructor beyond standard PropertyImpl set, used to create a copy of a property attached to a new model. |
|
PropertyImplRDB(java.lang.String uri)
Creates new PropertyImpl |
|
PropertyImplRDB(java.lang.String uri,
Model m)
|
|
PropertyImplRDB(java.lang.String nameSpace,
java.lang.String localName)
|
|
PropertyImplRDB(java.lang.String nameSpace,
java.lang.String localName,
int ordinal,
Model m)
|
|
PropertyImplRDB(java.lang.String nameSpace,
java.lang.String localName,
Model m)
|
|
| 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.rdb.ResourceImplRDB |
getRDBId, getRDBNSId, setRDBId, setRDBNSId |
| 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 |
| Constructor Detail |
public PropertyImplRDB(Property p,
Model m)
throws RDFException
public PropertyImplRDB(java.lang.String uri)
throws RDFException
public PropertyImplRDB(java.lang.String nameSpace,
java.lang.String localName)
throws RDFException
public PropertyImplRDB(java.lang.String uri,
Model m)
throws RDFException
public PropertyImplRDB(java.lang.String nameSpace,
java.lang.String localName,
Model m)
throws RDFException
public PropertyImplRDB(java.lang.String nameSpace,
java.lang.String localName,
int ordinal,
Model m)
throws RDFException
| Method Detail |
public java.lang.String getNameSpace()
Property
getNameSpace in interface PropertygetNameSpace in class ResourceImplpublic java.lang.String getLocalName()
Property
getLocalName in interface PropertygetLocalName in class ResourceImplpublic int getOrdinal()
PropertyRDF 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.
getOrdinal in interface Property
public Resource port(Model m)
throws RDFException
ResourceI
port in interface ResourceIport in class ResourceImplRDFException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||