Package org.apache.jena.rdf.model
Interface Property
-
- All Superinterfaces:
FrontsNode
,RDFNode
,Resource
- All Known Subinterfaces:
AnnotationProperty
,DatatypeProperty
,FunctionalProperty
,InverseFunctionalProperty
,ObjectProperty
,OntProperty
,SymmetricProperty
,TransitiveProperty
- All Known Implementing Classes:
AnnotationPropertyImpl
,DatatypePropertyImpl
,FunctionalPropertyImpl
,InverseFunctionalPropertyImpl
,ObjectPropertyImpl
,OntPropertyImpl
,PropertyImpl
,SymmetricPropertyImpl
,TransitivePropertyImpl
public interface Property extends Resource
An RDF Property.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getLocalName()
Returns the localname of this resource within its namespace if it is a URI else null.java.lang.String
getNameSpace()
Returns the namespace associated with this resource if it is a URI, else return null.int
getOrdinal()
Returns the ordinal value of a containment property.Property
inModel(Model m)
Override RDFNode.inModel() to produce a staticly-typed Property in the given Model.boolean
isProperty()
-
Methods inherited from interface org.apache.jena.graph.FrontsNode
asNode
-
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
-
-
-
-
Method Detail
-
isProperty
boolean isProperty()
-
getNameSpace
java.lang.String getNameSpace()
Returns the namespace associated with this resource if it is a URI, else return null.The namespace is suitable for use with localname in in RDF/XML. XML does not allow QNames to start with a digit and this method reflects that restriction in the values for namespace and localname.
See functions in
SplitIRI
for other split algorithms.- Specified by:
getNameSpace
in interfaceResource
- Returns:
- The namespace for this resource or null.
-
inModel
Property inModel(Model m)
Override RDFNode.inModel() to produce a staticly-typed Property in the given Model.
-
getLocalName
java.lang.String getLocalName()
Returns the localname of this resource within its namespace if it is a URI else null.Note: XML requires QNames to start with a letter, not a digit, and this method reflects that restriction.
See functions in
SplitIRI
.- Specified by:
getLocalName
in interfaceResource
- Returns:
- The localname of this property within its namespace.
-
getOrdinal
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.
-
-