com.hp.hpl.mesa.rdf.jena.model
Interface Property

All Superinterfaces:
RDFNode, Resource
All Known Subinterfaces:
DAMLDatatypeProperty, DAMLObjectProperty, DAMLProperty
All Known Implementing Classes:
PropertyImpl, PropertyImplRDB

public interface Property
extends Resource

An RDF Property.

Version:
Release='$Name: $' Revision='$Revision: 1.2 $' Date='$Date: 2001/04/19 13:28:16 $'
Author:
bwm

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.
 
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
 

Method Detail

getNameSpace

public java.lang.String getNameSpace()
Returns the namespace associated with this property.
Specified by:
getNameSpace in interface Resource
Returns:
The namespace for this property.

getLocalName

public java.lang.String getLocalName()
Returns the name of this property within its namespace.
Specified by:
getLocalName in interface Resource
Returns:
The name of this property within its namespace.

getOrdinal

public int getOrdinal()
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.

Returns:
The ordinal value of a containment property, or 0 otherwise.


Copyright © 2001 Hewlett-Packard. All Rights Reserved.