Package org.apache.jena.rdf.model.impl
Class PropertyImpl
java.lang.Object
org.apache.jena.enhanced.Polymorphic<RDFNode>
org.apache.jena.enhanced.EnhNode
org.apache.jena.rdf.model.impl.ResourceImpl
org.apache.jena.rdf.model.impl.PropertyImpl
- All Implemented Interfaces:
FrontsNode
,Property
,RDFNode
,Resource
An implementation of Property.
-
Field Summary
Fields inherited from class org.apache.jena.rdf.model.impl.ResourceImpl
rdfNodeFactory
-
Constructor Summary
ConstructorDescriptionPropertyImpl
(String uri) Creates new PropertyImplPropertyImpl
(String nameSpace, String localName) PropertyImpl
(String nameSpace, String localName, int ordinal, ModelCom m) PropertyImpl
(String nameSpace, String localName, ModelCom m) PropertyImpl
(String uri, ModelCom m) PropertyImpl
(Node n, EnhGraph m) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the ordinal value of a containment property.Override RDFNode.inModel() to produce a statically-typed Resource in the given Model.boolean
Methods inherited from class org.apache.jena.rdf.model.impl.ResourceImpl
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, asLiteral, asResource, begin, commit, getId, getLocalName, getModel, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, listProperties, listProperties, listProperties, removeAll, removeProperties, toString, visitWith
Methods inherited from class org.apache.jena.enhanced.EnhNode
as, asNode, canAs, equals, getGraph, hashCode, isAnon, isLiteral, isResource, isStmtResource, isURIResource, isValid, viewAs
Methods inherited from class org.apache.jena.enhanced.Polymorphic
addView, supports
Methods inherited from interface org.apache.jena.graph.FrontsNode
asNode
Methods inherited from interface org.apache.jena.rdf.model.Property
getLocalName, getNameSpace
Methods inherited from interface org.apache.jena.rdf.model.RDFNode
as, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isStmtResource, isURIResource, visitWith
Methods inherited from interface org.apache.jena.rdf.model.Resource
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, listProperties, listProperties, listProperties, removeAll, removeProperties, toString
-
Field Details
-
factory
-
-
Constructor Details
-
PropertyImpl
Creates new PropertyImpl -
PropertyImpl
-
PropertyImpl
-
PropertyImpl
-
PropertyImpl
-
PropertyImpl
-
-
Method Details
-
inModel
Description copied from interface:Resource
Override RDFNode.inModel() to produce a statically-typed Resource in the given Model. -
isProperty
public boolean isProperty()- Specified by:
isProperty
in interfaceProperty
-
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 interfaceProperty
- Returns:
- The ordinal value of a containment property, or 0 otherwise.
-