org.topbraid.spin.model
Interface SPINResource
- All Known Implementing Classes:
- SPINResourceImpl
public interface SPINResource
An extension of the Jena Resource interface with additional
convenience methods to easier access property values.
- Author:
- Holger Knublauch
Method Summary |
Literal |
getLiteral(Property predicate)
Gets the "first" property value of this but only if it's a Literal. |
java.lang.Long |
getLong(Property predicate)
|
RDFNode |
getRDFNode(Property predicate)
|
Resource |
getResource(Property predicate)
|
java.lang.String |
getString(Property predicate)
|
getLiteral
Literal getLiteral(Property predicate)
- Gets the "first" property value of this but only if it's a Literal.
Returns null if the value is a Resource.
- Parameters:
predicate
- the predicate
- Returns:
- the "first" property value or null
getLong
java.lang.Long getLong(Property predicate)
getRDFNode
RDFNode getRDFNode(Property predicate)
getResource
Resource getResource(Property predicate)
getString
java.lang.String getString(Property predicate)