Modifier and Type | Method and Description |
---|---|
protected void |
TransactionWriter.serialize(Literal literal,
XMLWriter xmlWriter) |
Modifier and Type | Method and Description |
---|---|
Literal |
ValueFactory.createLiteral(boolean value)
Creates a new xsd:boolean-typed literal representing the
specified value.
|
Literal |
ValueFactory.createLiteral(byte value)
Creates a new xsd:byte-typed literal representing the specified
value.
|
Literal |
ValueFactory.createLiteral(Date date)
Creates a new literal representing the specified date that is typed using
the appropriate XML Schema date/time datatype.
|
Literal |
ValueFactory.createLiteral(double value)
Creates a new xsd:double-typed literal representing the specified
value.
|
Literal |
ValueFactory.createLiteral(float value)
Creates a new xsd:float-typed literal representing the specified
value.
|
Literal |
ValueFactory.createLiteral(int value)
Creates a new xsd:int-typed literal representing the specified
value.
|
Literal |
ValueFactory.createLiteral(long value)
Creates a new xsd:long-typed literal representing the specified
value.
|
Literal |
ValueFactory.createLiteral(short value)
Creates a new xsd:short-typed literal representing the specified
value.
|
Literal |
ValueFactory.createLiteral(String label)
Creates a new literal with the supplied label.
|
Literal |
ValueFactory.createLiteral(String label,
String language)
Creates a new literal with the supplied label and language attribute.
|
Literal |
ValueFactory.createLiteral(String label,
URI datatype)
Creates a new literal with the supplied label and datatype.
|
Literal |
ValueFactory.createLiteral(XMLGregorianCalendar calendar)
Creates a new literal representing the specified calendar that is typed
using the appropriate XML Schema date/time datatype.
|
Literal |
Model.objectLiteral()
Utility method that casts the return value of
Model.objectValue() to a
Literal, or throws a ModelUtilException if that value is not a Literal. |
Modifier and Type | Method and Description |
---|---|
Literal |
ApacheSetTestCase.createLiteral(Object seed)
Creates a literal using the value of the seed.
|
Modifier and Type | Class and Description |
---|---|
class |
BooleanLiteralImpl
An extension of
LiteralImpl that stores a boolean value to avoid
parsing. |
class |
CalendarLiteralImpl
An extension of
LiteralImpl that stores a calendar value to avoid
parsing. |
class |
DecimalLiteralImpl
An extension of
LiteralImpl that stores an integer value using a
BigDecimal object. |
class |
IntegerLiteralImpl
An extension of
LiteralImpl that stores an integer value using a
BigInteger object. |
class |
LiteralImpl
An implementation of the
Literal interface. |
class |
NumericLiteralImpl
An extension of
LiteralImpl that stores a numeric value to avoid
parsing. |
Modifier and Type | Method and Description |
---|---|
protected Literal |
ValueFactoryBase.createFPLiteral(Number value,
URI datatype)
Calls
ValueFactoryBase.createNumericLiteral(Number, URI) with the supplied value
and datatype as parameters. |
protected Literal |
ValueFactoryBase.createIntegerLiteral(Number value,
URI datatype)
Calls
ValueFactoryBase.createNumericLiteral(Number, URI) with the supplied value
and datatype as parameters. |
Literal |
ValueFactoryImpl.createLiteral(boolean b) |
Literal |
ValueFactoryBase.createLiteral(boolean b)
Calls
ValueFactory.createLiteral(String, URI) with the
String-value of the supplied value and XMLSchema.BOOLEAN as
parameters. |
Literal |
ValueFactoryBase.createLiteral(byte value)
Calls
ValueFactoryBase.createIntegerLiteral(Number, URI) with the supplied value
and XMLSchema.BYTE as parameters. |
Literal |
ValueFactoryBase.createLiteral(Date date)
Converts the supplied
Date to a XMLGregorianCalendar , then
calls ValueFactory.createLiteral(XMLGregorianCalendar) . |
Literal |
ValueFactoryBase.createLiteral(double value)
Calls
ValueFactoryBase.createFPLiteral(Number, URI) with the supplied value and
XMLSchema.DOUBLE as parameters. |
Literal |
ValueFactoryBase.createLiteral(float value)
Calls
ValueFactoryBase.createFPLiteral(Number, URI) with the supplied value and
XMLSchema.FLOAT as parameters. |
Literal |
ValueFactoryBase.createLiteral(int value)
Calls
ValueFactoryBase.createIntegerLiteral(Number, URI) with the supplied value
and XMLSchema.INT as parameters. |
Literal |
ValueFactoryBase.createLiteral(long value)
Calls
ValueFactoryBase.createIntegerLiteral(Number, URI) with the supplied value
and XMLSchema.LONG as parameters. |
Literal |
ValueFactoryBase.createLiteral(short value)
Calls
ValueFactoryBase.createIntegerLiteral(Number, URI) with the supplied value
and XMLSchema.SHORT as parameters. |
Literal |
ValueFactoryImpl.createLiteral(String value) |
Literal |
ValueFactoryImpl.createLiteral(String value,
String language) |
Literal |
ValueFactoryImpl.createLiteral(String value,
URI datatype) |
Literal |
ValueFactoryBase.createLiteral(XMLGregorianCalendar calendar)
Calls
ValueFactory.createLiteral(String, URI) with the
String-value of the supplied calendar and the appropriate datatype as
parameters. |
protected Literal |
ValueFactoryBase.createNumericLiteral(Number number,
URI datatype)
Calls
ValueFactory.createLiteral(String, URI) with the
String-value of the supplied number and the supplied datatype as
parameters. |
Literal |
AbstractModel.objectLiteral() |
Modifier and Type | Method and Description |
---|---|
static Literal |
Models.anyObjectLiteral(Model m)
Retrieves any object Literal value from the given model.
|
static Literal |
Literals.createLiteral(ValueFactory valueFactory,
Object object)
Creates a typed
Literal out of the supplied object, mapping the
runtime type of the object to the appropriate XML Schema type. |
static Literal |
Literals.createLiteralOrFail(ValueFactory valueFactory,
Object object)
Creates a typed
Literal out of the supplied object, mapping the
runtime type of the object to the appropriate XML Schema type. |
static Literal |
GraphUtil.getOptionalObjectLiteral(Graph graph,
Resource subj,
URI pred)
Deprecated.
since 2.8.0. Use
Model.filter(Resource, URI, Value, Resource...) and
Model.objectLiteral() instead. |
static Literal |
GraphUtil.getUniqueObjectLiteral(Graph graph,
Resource subj,
URI pred)
Deprecated.
since 2.8.0. Use
Model.filter(Resource, URI, Value, Resource...) and
Model.objectLiteral() instead. |
Modifier and Type | Method and Description |
---|---|
static boolean |
Literals.getBooleanValue(Literal l,
boolean fallback)
Gets the boolean value of the supplied literal.
|
static byte |
Literals.getByteValue(Literal l,
byte fallback)
Gets the byte value of the supplied literal.
|
static XMLGregorianCalendar |
Literals.getCalendarValue(Literal l,
XMLGregorianCalendar fallback)
Gets the calendar value of the supplied literal.
|
static BigDecimal |
Literals.getDecimalValue(Literal l,
BigDecimal fallback)
Gets the decimal value of the supplied literal.
|
static double |
Literals.getDoubleValue(Literal l,
double fallback)
Gets the double value of the supplied literal.
|
static float |
Literals.getFloatValue(Literal l,
float fallback)
Gets the float value of the supplied literal.
|
static BigInteger |
Literals.getIntegerValue(Literal l,
BigInteger fallback)
Gets the integer value of the supplied literal.
|
static int |
Literals.getIntValue(Literal l,
int fallback)
Gets the int value of the supplied literal.
|
static String |
Literals.getLabel(Literal l,
String fallback)
Gets the label of the supplied literal.
|
static Locale |
Literals.getLocale(Literal l,
Locale fallback)
Determine the Locale from a literal's language tag, as specified by RFC
3166.
|
static long |
Literals.getLongValue(Literal l,
long fallback)
Gets the long value of the supplied literal.
|
static short |
Literals.getShortValue(Literal l,
short fallback)
Gets the short value of the supplied literal.
|
static boolean |
Literals.isLanguageLiteral(Literal literal)
Helper method to determine whether a literal is a language literal, and
not a typed literal.
|
Modifier and Type | Method and Description |
---|---|
protected static StringBuilder |
RepositoryFederatedService.appendLiteral(StringBuilder sb,
Literal lit)
Append the literal to the stringbuilder: "myLiteral"^^
|
Modifier and Type | Method and Description |
---|---|
Literal |
IntegerCast.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
DecimalCast.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
FloatCast.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
BooleanCast.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
DoubleCast.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
DateTimeCast.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
StringCast.evaluate(ValueFactory valueFactory,
Value... args) |
Modifier and Type | Method and Description |
---|---|
Literal |
Seconds.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
Day.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
Timezone.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
Minutes.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
Year.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
Tz.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
Month.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
Hours.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
Now.evaluate(ValueFactory valueFactory,
Value... args) |
Modifier and Type | Method and Description |
---|---|
Literal |
MD5.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
SHA256.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
SHA512.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
SHA1.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
SHA384.evaluate(ValueFactory valueFactory,
Value... args) |
abstract Literal |
HashFunction.evaluate(ValueFactory valueFactory,
Value... args) |
Modifier and Type | Method and Description |
---|---|
Literal |
Ceil.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
Floor.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
Rand.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
Abs.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
Round.evaluate(ValueFactory valueFactory,
Value... args) |
Modifier and Type | Method and Description |
---|---|
Literal |
StrLang.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
STRUUID.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
StrDt.evaluate(ValueFactory valueFactory,
Value... args) |
Modifier and Type | Method and Description |
---|---|
Literal |
StrLen.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
EncodeForUri.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
StrBefore.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
Concat.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
LowerCase.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
Contains.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
StrStarts.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
Replace.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
Substring.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
StrAfter.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
UpperCase.evaluate(ValueFactory valueFactory,
Value... args) |
Literal |
StrEnds.evaluate(ValueFactory valueFactory,
Value... args) |
Modifier and Type | Method and Description |
---|---|
static Literal |
MathUtil.compute(Literal leftLit,
Literal rightLit,
MathExpr.MathOp op)
Computes the result of applying the supplied math operator on the supplied
left and right operand.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
QueryEvaluationUtil.compareLiterals(Literal leftLit,
Literal rightLit,
Compare.CompareOp operator) |
static boolean |
QueryEvaluationUtil.compatibleArguments(Literal arg1,
Literal arg2)
Checks whether the supplied two literal arguments are 'argument
compatible' according to the SPARQL definition.
|
static Literal |
MathUtil.compute(Literal leftLit,
Literal rightLit,
MathExpr.MathOp op)
Computes the result of applying the supplied math operator on the supplied
left and right operand.
|
static boolean |
QueryEvaluationUtil.isSimpleLiteral(Literal l)
Checks whether the supplied literal is a "simple literal".
|
static boolean |
QueryEvaluationUtil.isStringLiteral(Literal l)
Checks whether the supplied literal is a "string literal".
|
Modifier and Type | Field and Description |
---|---|
static Literal |
DAWGTestResultSetSchema.FALSE |
static Literal |
DAWGTestResultSetSchema.TRUE |
Modifier and Type | Method and Description |
---|---|
protected Literal |
SPARQLResultsTSVParser.parseLiteral(String literal)
Parses a literal, creates an object for it and returns this object.
|
Modifier and Type | Field and Description |
---|---|
protected Literal |
RepositoryConnectionTest.mboxAlice |
protected Literal |
RepositoryTest.mboxAlice |
protected Literal |
RepositoryConnectionTest.mboxBob |
protected Literal |
RepositoryTest.mboxBob |
protected Literal |
RepositoryConnectionTest.nameAlice |
protected Literal |
RepositoryTest.nameAlice |
protected Literal |
RepositoryConnectionTest.nameBob |
protected Literal |
RepositoryTest.nameBob |
protected Literal |
RepositoryConnectionTest.Александър |
protected Literal |
RepositoryTest.Александър |
Modifier and Type | Method and Description |
---|---|
protected Literal |
SailIsolationLevelTest.readLiteral(RepositoryConnection con,
URI subj,
URI pred) |
Modifier and Type | Method and Description |
---|---|
Literal |
DatatypeHandler.normalizeDatatype(String literalValue,
URI datatypeUri,
ValueFactory valueFactory)
Normalize both the datatype URI and the literal value if appropriate, and
use the given value factory to generate a literal matching a literal value
and datatype URI.
|
Literal |
LanguageHandler.normalizeLanguage(String literalValue,
String languageTag,
ValueFactory valueFactory)
Normalize both the language tag and the language if appropriate, and use
the given value factory to generate a literal matching the literal value
and language tag.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Literal |
AbstractDatatypeHandlerTest.getNormalisedLiteralForRecognisedDatatypeAndValue() |
Literal |
VirtuosoGeometryDatatypeHandler.normalizeDatatype(String literalValue,
URI datatypeUri,
ValueFactory valueFactory) |
Literal |
RDFDatatypeHandler.normalizeDatatype(String literalValue,
URI datatypeUri,
ValueFactory valueFactory) |
Literal |
XMLSchemaDatatypeHandler.normalizeDatatype(String literalValue,
URI datatypeUri,
ValueFactory valueFactory) |
Literal |
GeoSPARQLDatatypeHandler.normalizeDatatype(String literalValue,
URI datatypeUri,
ValueFactory valueFactory) |
Literal |
DBPediaDatatypeHandler.normalizeDatatype(String literalValue,
URI datatypeUri,
ValueFactory valueFactory) |
Modifier and Type | Method and Description |
---|---|
protected Literal |
RDFParserBase.createLiteral(String label,
String lang,
URI datatype)
Creates a
Literal object with the supplied parameters. |
protected Literal |
RDFParserBase.createLiteral(String label,
String lang,
URI datatype,
int lineNo,
int columnNo)
Creates a
Literal object with the supplied parameters, using the
lineNo and columnNo to enhance error messages or exceptions that may be
generated during the creation of the literal. |
static Literal |
RDFParserHelper.createLiteral(String label,
String lang,
URI datatype,
ParserConfig parserConfig,
ParseErrorListener errListener,
ValueFactory valueFactory)
Create a literal using the given parameters, including iterative
verification and normalization by any
DatatypeHandler or
LanguageHandler implementations that are found in the
ParserConfig . |
static Literal |
RDFParserHelper.createLiteral(String label,
String lang,
URI datatype,
ParserConfig parserConfig,
ParseErrorListener errListener,
ValueFactory valueFactory,
int lineNo,
int columnNo)
Create a literal using the given parameters, including iterative
verification and normalization by any
DatatypeHandler or
LanguageHandler implementations that are found in the
ParserConfig . |
Modifier and Type | Method and Description |
---|---|
Literal |
RFC3066LanguageHandler.normalizeLanguage(String literalValue,
String languageTag,
ValueFactory valueFactory) |
Modifier and Type | Method and Description |
---|---|
protected Literal |
NTriplesParser.createLiteral(String label,
String lang,
String datatype) |
static Literal |
NTriplesUtil.parseLiteral(String nTriplesLiteral,
ValueFactory valueFactory)
Parses an N-Triples literal, creates an object for it using the supplied
ValueFactory and returns this object.
|
Modifier and Type | Method and Description |
---|---|
static void |
NTriplesUtil.append(Literal lit,
Appendable appendable) |
static void |
NTriplesUtil.append(Literal lit,
Appendable appendable,
boolean xsdStringToPlainLiteral)
Appends the N-Triples representation of the given
Literal to the
given Appendable , optionally ignoring the xsd:string datatype as
it is implied for RDF-1.1. |
static String |
NTriplesUtil.toNTriplesString(Literal lit)
Creates an N-Triples string for the supplied literal.
|
static String |
NTriplesUtil.toNTriplesString(Literal lit,
boolean xsdStringToPlainLiteral)
Creates an N-Triples string for the supplied literal, optionally ignoring
the xsd:string datatype as it is implied for RDF-1.1.
|
Modifier and Type | Method and Description |
---|---|
protected Literal |
RDFJSONParser.createLiteral(String label,
String language,
URI datatype,
com.fasterxml.jackson.core.JsonLocation currentLocation)
Creates a literal, using the current value, language, and datatype, and
additionally using the given
JsonLocation to provide information
about the line and column numbers in the event of a warning, error or
exception being generated by the creation of the literal. |
Modifier and Type | Method and Description |
---|---|
protected Literal |
RDFXMLParser.createLiteral(String label,
String lang,
URI datatype) |
Modifier and Type | Method and Description |
---|---|
protected Literal |
TurtleParser.parseNumber() |
protected Literal |
TurtleParser.parseQuotedLiteral()
Parses a quoted string, optionally followed by a language tag or datatype.
|
Modifier and Type | Method and Description |
---|---|
protected void |
TurtleWriter.writeLiteral(Literal lit) |
Modifier and Type | Method and Description |
---|---|
protected Literal |
SailIsolationLevelTest.readLiteral(SailConnection con,
URI subj,
URI pred) |
Modifier and Type | Field and Description |
---|---|
static Literal |
AbstractLuceneSailGeoSPARQLTest.ARC_TRIOMPHE |
static Literal |
AbstractLuceneSailGeoSPARQLTest.EIFFEL_TOWER |
static Literal |
AbstractLuceneSailGeoSPARQLTest.NOTRE_DAME |
static Literal |
AbstractLuceneSailGeoSPARQLTest.POLY1 |
static Literal |
AbstractLuceneSailGeoSPARQLTest.POLY2 |
static Literal |
AbstractLuceneSailGeoSPARQLTest.TEST_POINT |
static Literal |
AbstractLuceneSailGeoSPARQLTest.TEST_POLY |
Modifier and Type | Method and Description |
---|---|
static Literal |
SearchFields.distanceToLiteral(double d) |
Literal |
DistanceQuerySpec.getFrom() |
Literal |
GeoRelationQuerySpec.getQueryGeometry() |
static Literal |
SearchFields.scoreToLiteral(float score)
Returns a score value encoded as a Literal.
|
static Literal |
SearchFields.wktToLiteral(String wkt) |
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractSearchIndex.accept(Literal literal)
Returns whether the provided literal is accepted by the LuceneIndex to be
indexed.
|
boolean |
SearchIndex.accept(Literal literal)
Returns whether the provided literal is accepted by the LuceneIndex to be
indexed.
|
void |
DistanceQuerySpec.setFrom(Literal from) |
void |
GeoRelationQuerySpec.setQueryGeometry(Literal shape) |
Modifier and Type | Class and Description |
---|---|
class |
BooleanMemLiteral
An extension of MemLiteral that stores a boolean value to avoid parsing.
|
class |
CalendarMemLiteral
An extension of MemLiteral that stores a Calendar value to avoid parsing.
|
class |
DecimalMemLiteral
An extension of MemLiteral that stores a decimal value to avoid parsing.
|
class |
IntegerMemLiteral
An extension of MemLiteral that stores an integer value to avoid parsing.
|
class |
MemLiteral
A MemoryStore-specific extension of Literal giving it node properties.
|
class |
NumericMemLiteral
An extension of MemLiteral that stores a numeric value to avoid parsing.
|
Modifier and Type | Method and Description |
---|---|
protected Literal |
MemValueFactory.createFPLiteral(Number n,
URI datatype) |
protected Literal |
MemValueFactory.createIntegerLiteral(Number n,
URI datatype) |
Literal |
MemValueFactory.createLiteral(boolean value) |
Literal |
MemValueFactory.createLiteral(String value) |
Literal |
MemValueFactory.createLiteral(String value,
String language) |
Literal |
MemValueFactory.createLiteral(String value,
URI datatype) |
Literal |
MemValueFactory.createLiteral(XMLGregorianCalendar calendar) |
Modifier and Type | Method and Description |
---|---|
MemLiteral |
MemValueFactory.getMemLiteral(Literal literal)
See getMemValue() for description.
|
MemLiteral |
MemValueFactory.getOrCreateMemLiteral(Literal literal)
See
MemValueFactory.getOrCreateMemValue(Value) for description. |
Modifier and Type | Method and Description |
---|---|
NativeLiteral |
ValueStore.getNativeLiteral(Literal l)
Creates an NativeLiteral that is equal to the supplied literal.
|
Modifier and Type | Class and Description |
---|---|
class |
NativeLiteral |
Modifier and Type | Method and Description |
---|---|
RdbmsLiteral |
RdbmsValueFactory.asRdbmsLiteral(Literal literal) |
Modifier and Type | Method and Description |
---|---|
protected Literal |
LiteralManager.key(RdbmsLiteral value) |
Modifier and Type | Class and Description |
---|---|
class |
RdbmsLiteral
Wraps a
LiteralImpl providing an internal id and version. |
Constructor and Description |
---|
RdbmsLiteral(Literal lit) |
RdbmsLiteral(Number id,
Integer version,
Literal lit) |
Modifier and Type | Method and Description |
---|---|
int |
IdSequence.code(Literal value) |
protected ValueType |
IdSequence.valueOf(Literal lit) |
Copyright © 2001–2016 Aduna. All rights reserved.