public class PropertyImpl extends ResourceImpl implements Property
| Modifier and Type | Field and Description |
|---|---|
static Implementation |
factory |
rdfNodeFactory| Constructor and Description |
|---|
PropertyImpl(Node n,
EnhGraph m) |
PropertyImpl(String uri)
Creates new PropertyImpl
|
PropertyImpl(String uri,
ModelCom m) |
PropertyImpl(String nameSpace,
String localName) |
PropertyImpl(String nameSpace,
String localName,
int ordinal,
ModelCom m) |
PropertyImpl(String nameSpace,
String localName,
ModelCom m) |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrdinal()
Returns the ordinal value of a containment property.
|
Property |
inModel(Model m)
Override RDFNode.inModel() to produce a statically-typed Resource
in the given Model.
|
boolean |
isProperty() |
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, visitWithas, asNode, canAs, equals, getGraph, hashCode, isAnon, isLiteral, isResource, isStmtResource, isURIResource, isValid, viewAsaddView, supportsgetLocalName, getNameSpaceabort, 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, toStringas, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isStmtResource, isURIResource, visitWithasNodepublic static final Implementation factory
public PropertyImpl(String uri)
public Property inModel(Model m)
Resourcepublic boolean isProperty()
isProperty in interface Propertypublic 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 PropertyLicenced under the Apache License, Version 2.0