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 IRIARRAY-
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 ArrayLiteralcoerce(Literal encodedValue)Datatypedatatype()The datatype of the `Literal`.IRIdatatypeIRI()The IRI of theDatatypeof the `Literal`.booleanequals(java.lang.Object theObject)long[]getValues()inthashCode()java.lang.Stringlabel()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 theDatatypeof the `Literal`. Often, this is syntactic sugar for `datatype().iri()` however, in the case where it is a user defined datatype, egDatatype.UDFthis will return the specific IRI of the datatype.- Specified by:
datatypeIRIin 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object theObject)
- Overrides:
equalsin classjava.lang.Object
-
coerce
public static ArrayLiteral coerce(Literal encodedValue)
-
-