Package com.complexible.common.rdf.model
Class ArrayLiteral
- java.lang.Object
-
- com.complexible.common.rdf.model.ArrayLiteral
-
public class ArrayLiteral extends java.lang.Object implements Literal
Literal consisting of an array of Stardog IDs- Since:
- 5.0
- Version:
- 6.0
- Author:
- Pedro Oliveira
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static IRI
ARRAY
-
Fields inherited from interface com.stardog.stark.Literal
STRICT_TYPES
-
-
Constructor Summary
Constructors Constructor Description ArrayLiteral(long... theValues)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ArrayLiteral
coerce(Literal encodedValue)
Datatype
datatype()
The datatype of the `Literal`.IRI
datatypeIRI()
The IRI of theDatatype
of the `Literal`.boolean
equals(java.lang.Object theObject)
long[]
getValues()
int
hashCode()
java.lang.String
label()
The lexical value of the literal
-
-
-
Field Detail
-
ARRAY
public static final IRI ARRAY
-
-
Method Detail
-
getValues
public long[] getValues()
-
datatype
@Nonnull public Datatype datatype()
The datatype of the `Literal`. Some serializations of RDF use a "simple literal" which is a literal with no explicit datatype. That is just syntactic sugar for `xsd:string` typed literals.
-
datatypeIRI
@Nonnull public IRI datatypeIRI()
The IRI of theDatatype
of the `Literal`. Often, this is syntactic sugar for `datatype().iri()` however, in the case where it is a user defined datatype, egDatatype.UDF
this will return the specific IRI of the datatype.- Specified by:
datatypeIRI
in interfaceLiteral
- Returns:
- the datatype IRI of the lexical value
-
label
@Nonnull public java.lang.String label()
The lexical value of the literal
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object theObject)
- Overrides:
equals
in classjava.lang.Object
-
coerce
public static ArrayLiteral coerce(Literal encodedValue)
-
-