Package com.apicatalog.rdf
Interface RdfValue
-
- All Known Subinterfaces:
RdfLiteral,RdfResource
public interface RdfValueAn immutable RDF statement's value. Represents an absolute IRI or blank node identifier or RDF literal.- Since:
- 0.8.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RdfLiteralasLiteral()Return the RdfValue as a RdfLiteralbooleanequals(Object o)StringgetValue()Returns rawStringrepresentation of the value.inthashCode()default booleanisBlankNode()Indicates if the value type is blank node identifier.default booleanisIRI()Indicates if the value type is an absolute IRI.default booleanisLiteral()Indicates if the value type is RDF literal.StringtoString()
-
-
-
Method Detail
-
isLiteral
default boolean isLiteral()
Indicates if the value type is RDF literal.- Returns:
trueif the value type is literal,falseotherwise.
-
isIRI
default boolean isIRI()
Indicates if the value type is an absolute IRI.- Returns:
trueif the value type is IRI,falseotherwise.
-
isBlankNode
default boolean isBlankNode()
Indicates if the value type is blank node identifier.- Returns:
trueif the value type is blank node,falseotherwise.
-
asLiteral
RdfLiteral asLiteral()
Return the RdfValue as a RdfLiteral- Returns:
- the RdfValue as a RdfLiteral
- Throws:
ClassCastException- if the RdfValue is not a RdfLiteral
-
getValue
String getValue()
Returns rawStringrepresentation of the value.- Returns:
- text representing the value.
-
-