Package com.stardog.stark
Interface Value
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
ArrayLiteral,StatementPattern
@Immutable public interface Value extends java.io.SerializableBase type for a node in an RDF graph
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
- See Also:
- RDF Data Model
-
-
Method Summary
Static Methods Modifier and Type Method Description static java.lang.Stringlex(Value theValue)Return the lexical value of aValue, which is dependent on the type of the `Value`.static intlexLength(Value theValue)Determine length of lexical value, can be used to estimate memory usage
-
-
-
Method Detail
-
lex
@Nonnull static java.lang.String lex(@Nonnull Value theValue)Return the lexical value of aValue, which is dependent on the type of the `Value`.Literal-- theLiteral.label()BNode-- theBNode.id()IRI-- theIRI#toString()(ie the plain IRI)
- Parameters:
theValue- the value- Returns:
- the label
-
lexLength
static int lexLength(@Nonnull Value theValue)Determine length of lexical value, can be used to estimate memory usage- Parameters:
theValue- value to measure- Returns:
- exact length of the lexical value
-
-