Package org.apache.jena.arq.querybuilder
Class ExprFactory
java.lang.Object
org.apache.jena.arq.querybuilder.ExprFactory
Create expressions.
NodeValue contains a number of static functions to make a number of node
functions.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an expression factory with the prefix definitions found inPrefixMapping.ExtendedExprFactory(PrefixMapping pMap) Constructs an expression factor with the specified prefix definitions. -
Method Summary
Modifier and TypeMethodDescriptionfinal E_NumAbsimplements abs() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-abs Converts expr to an Expr object via expr()final E_Addimplements addition as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()final E_LogicalAndimplements logical and as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()final ExprConvert the object into an expression using the query's PrefixMappingstatic final ExprasExpr(Object o, PrefixMapping pMap) Create an expression from an object.final ExprListNot really an Expr but a container of exprs.final ExprVarConverts the object to a ExprVar.final Exprbnode()implements bnode() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-bnodefinal Exprimplements bnode() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-bnode Converts expr to an Expr object via expr()final E_Boundimplements bound() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-bound Converts expr to an Expr object via expr()final E_FunctionDynamicCreates a dynamic function call.final E_FunctionDynamicCreates a dynamic function call.final E_CallCreates a function call as per the SPARQL 11 query definition.final E_NumCeilingimplements ceil() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-ceil Converts expr to an Expr object via expr()final E_Coalesceimplements coalesce() as per the SPARQL 11 query definition.final E_Coalesceimplements coalesce() as per the SPARQL 11 query definition.final E_StrConcatimplements concat() as per the SPARQL 11 query definition.final E_StrConcatimplements concat() as per the SPARQL 11 query definition.final E_Conditionalimplements if() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-if Converts expr to an Expr object via expr()final E_StrContainsimplements contains() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-contains Converts expr to an Expr object via expr()final E_Datatypeimplements datatype() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-datatype Converts expr to an Expr object via expr()final E_DateTimeDayimplements day() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-day Converts expr to an Expr object via expr()final E_Divideimplements division as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()final E_StrEncodeForURIimplements encode() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-encode Converts expr to an Expr object via expr()final E_Equalsimplements equality as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()final E_Existsexists(WhereClause<?> whereClause) implements exists() as per the SPARQL 11 query definition.final E_NumFloorimplements floor() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-floor Converts expr to an Expr object via expr()final E_FunctionCreates a function call as per the SPARQL 11 query definition.final E_GreaterThanOrEqualimplements greater than or equal as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()final E_GreaterThanimplements greater than as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()final E_DateTimeHoursimplements hours() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-hours Converts expr to an Expr object via expr()final E_OneOfimplements "in" as per the SPARQL 11 query definition.final E_OneOfimplements "in" as per the SPARQL 11 query definition.final E_IRIimplements iri() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-iri Converts expr to an Expr object via expr()final E_IsBlankimplements isBlank() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-isBlank Converts expr to an Expr object via expr()final E_IsIRIimplements isIRI() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-isIRI Converts expr to an Expr object via expr()final E_IsLiteralimplements isLiteral() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-isLiteral Converts expr to an Expr object via expr()final E_IsNumericimplements isNumeric() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-isNumeric Converts expr to an Expr object via expr()final E_Langimplements lang() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-lang Converts expr to an Expr object via expr()final E_LangMatcheslangMatches(Object expr1, Object expr2) implements langMatches() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-langMatches Converts expr to an Expr object via expr()final E_StrLowerCaseimplements lcase() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-lcase Converts expr to an Expr object via expr()final E_LessThanOrEqualimplements less than or equal as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()final ExprListlist()Not really an Expr but a container of exprs.final E_LessThanimplements less than as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()final E_MD5implements md5() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-md5 Converts expr to an Expr object via expr()final E_UnaryMinusimplements unary minus as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()final E_DateTimeMinutesimplements minutes() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-minutes Converts expr to an Expr object via expr()final E_DateTimeMonthimplements month() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-month Converts expr to an Expr object via expr()final E_Multiplyimplements multiplication s per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()final E_NotEqualsimplements not equals as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()final ExprNonenone()Should probably be called "null" but that is a reserved work.final E_LogicalNotimplements not() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-not Converts expr to an Expr object via expr()final E_NotExistsnotexists(WhereClause<?> whereClause) implements not exists() as per the SPARQL 11 query definition.final E_NotOneOfimplements "not in" as per the SPARQL 11 query definition.final E_NotOneOfimplements "not in" as per the SPARQL 11 query definition.final E_Nownow()implements now() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-nowfinal E_LogicalOrimplements logical or as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()final E_UnaryPlusimplements unary plus as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()final StringDeprecated.final E_Randomrand()implements rand() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-randfinal E_Regeximplements regex() as per the SPARQL 11 query definition.final E_Regeximplements regex() as per the SPARQL 11 query definition.final E_StrReplaceimplements replace() as per the SPARQL 11 query definition.final E_StrReplaceimplements replace() as per the SPARQL 11 query definition.final E_NumRoundimplements round() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-round Converts expr to an Expr object via expr()final E_SameTermimplements sameTerm() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-sameTerm Converts expr to an Expr object via expr()final E_DateTimeSecondsimplements seconds() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-seconds Converts expr to an Expr object via expr()final E_SHA1implements sha1() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-sha1 Converts expr to an Expr object via expr()final E_SHA224implements sha224() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-sha224 Converts expr to an Expr object via expr()final E_SHA256implements sha256() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-sha256 Converts expr to an Expr object via expr()final E_SHA384implements sha384() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-sha384 Converts expr to an Expr object via expr()final E_SHA512implements sha512() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-sha512 Converts expr to an Expr object via expr()final E_Strimplements str() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-str Converts expr to an Expr object via expr()final E_StrAfterimplements strafter() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-strafter Converts expr to an Expr object via expr()final E_StrBeforeimplements strbefore() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-strbefore Converts expr to an Expr object via expr()final E_StrDatatypeimplements strdt() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-strdt Converts expr to an Expr object via expr()final E_StrEndsWithimplements strends() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-strends Converts expr to an Expr object via expr()final E_StrLangimplements strlang() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-strlang Converts expr to an Expr object via expr()final E_StrLengthimplements strlen() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-strlen Converts expr to an Expr object via expr()final E_StrStartsWithimplements strstarts() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-strstarts Converts expr to an Expr object via expr()final E_StrUUIDstruuid()implements struuid() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-struuidfinal E_StrSubstringimplements substr() as per the SPARQL 11 query definition.final E_StrSubstringimplements substr() as per the SPARQL 11 query definition.final E_Subtractimplements subtraction as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()final E_DateTimeTimezoneimplements timezone() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-timezone Converts expr to an Expr object via expr()final E_DateTimeTZimplements tz() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-tz Converts expr to an Expr object via expr()final E_StrUpperCaseimplements ucase() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-ucase Converts expr to an Expr object via expr()final E_UUIDuuid()implements uuid() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-uuidfinal E_Versionversion()Returns the current ARQ name and version number as a string.final E_DateTimeYearimplements year() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-year Converts expr to an Expr object via expr()
-
Constructor Details
-
ExprFactory
public ExprFactory()Constructs an expression factory with the prefix definitions found inPrefixMapping.Extended- See Also:
-
Method Details
-
rand
implements rand() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-rand- Returns:
- E_Random instance
- See Also:
-
struuid
implements struuid() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-struuid- Returns:
- E_StrUUID instance
- See Also:
-
uuid
implements uuid() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-uuid- Returns:
- E_UUID instance
- See Also:
-
version
Returns the current ARQ name and version number as a string.- Returns:
- E_Version instance
- See Also:
-
now
implements now() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-now- Returns:
- E_Now instance
- See Also:
-
bound
implements bound() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-bound Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_Bound instance
- See Also:
-
datatype
implements datatype() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-datatype Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_Datatype instance
- See Also:
-
day
implements day() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-day Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_Datatype instance
- See Also:
-
hours
implements hours() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-hours Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_DateTimeHours instance
- See Also:
-
minutes
implements minutes() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-minutes Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_DateTimeMinutes instance
- See Also:
-
month
implements month() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-month Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_DateTimeMonth instance
- See Also:
-
seconds
implements seconds() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-seconds Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_DateTimeSeconds instance
- See Also:
-
timezone
implements timezone() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-timezone Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_DateTypeTimezone instance
- See Also:
-
tz
implements tz() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-tz Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_DateTimeTZ instance
- See Also:
-
year
implements year() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-year Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_DateTimeYear instance
- See Also:
-
iri
implements iri() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-iri Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_IRI instance
- See Also:
-
isBlank
implements isBlank() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-isBlank Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_isBlank instance
- See Also:
-
isIRI
implements isIRI() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-isIRI Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_IsIRI instance
- See Also:
-
isLiteral
implements isLiteral() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-isLiteral Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_IsLiteral instance
- See Also:
-
isNumeric
implements isNumeric() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-isNumeric Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_IsNumeric instance
- See Also:
-
lang
implements lang() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-lang Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_Lang instance
- See Also:
-
not
implements not() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-not Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_LogicalNot instance
- See Also:
-
abs
implements abs() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-abs Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_NumAbs instance
- See Also:
-
ceil
implements ceil() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-ceil Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_NumCeiling instance
- See Also:
-
floor
implements floor() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-floor Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_NumFloor instance
- See Also:
-
round
implements round() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-round Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_Round instance
- See Also:
-
str
implements str() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-str Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_Str instance
- See Also:
-
encode
implements encode() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-encode Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_StrEncodedForURI instance
- See Also:
-
strlen
implements strlen() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-strlen Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_StrLength instance
- See Also:
-
lcase
implements lcase() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-lcase Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_StrLowerCase instance
- See Also:
-
ucase
implements ucase() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-ucase Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_StrUpperCase instance
- See Also:
-
minus
implements unary minus as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_UnaryMinus instance
- See Also:
-
plus
implements unary plus as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_UnaryPlus instance
- See Also:
-
md5
implements md5() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-md5 Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_MD5 instance
- See Also:
-
sha1
implements sha1() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-sha1 Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_SHA1 instance
- See Also:
-
sha224
implements sha224() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-sha224 Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_SHA224 instance
- See Also:
-
sha256
implements sha256() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-sha256 Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_SHA256 instance
- See Also:
-
sha384
implements sha384() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-sha384 Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_SHA384 instance
- See Also:
-
sha512
implements sha512() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-sha512 Converts expr to an Expr object via expr()- Parameters:
expr- the expression to check.- Returns:
- E_SHA512 instance
- See Also:
-
add
implements addition as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_Add instance
- See Also:
-
divide
implements division as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_Devide instance
- See Also:
-
eq
implements equality as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_Equals instance
- See Also:
-
gt
implements greater than as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_GreaterThan instance
- See Also:
-
ge
implements greater than or equal as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_GreaterThanOrEqual instance
- See Also:
-
langMatches
implements langMatches() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-langMatches Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_LangMatches instance
- See Also:
-
lt
implements less than as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_LessThan instance
- See Also:
-
le
implements less than or equal as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_LessThanOrEqual instance
- See Also:
-
and
implements logical and as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_LogicalAnd instance
- See Also:
-
or
implements logical or as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_LogicalOr instance
- See Also:
-
multiply
implements multiplication s per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_Multiply instance
- See Also:
-
ne
implements not equals as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_NotEquals instance
- See Also:
-
sameTerm
implements sameTerm() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-sameTerm Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_SameTerm instance
- See Also:
-
strafter
implements strafter() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-strafter Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_StrAfter instance
- See Also:
-
strbefore
implements strbefore() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-strbefore Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_StrBefore instance
- See Also:
-
contains
implements contains() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-contains Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_StrContains instance
- See Also:
-
strdt
implements strdt() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-strdt Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_StrDatatype instance
- See Also:
-
strends
implements strends() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-strends Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_StrEndsWith instance
- See Also:
-
strlang
implements strlang() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-strlang Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_StrLang instance
- See Also:
-
strstarts
implements strstarts() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-strstarts Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_StrStartsWith instance
- See Also:
-
subtract
implements subtraction as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#OperatorMapping Converts expr to an Expr object via expr()- Parameters:
expr1- the first expression.expr2- the second expression.- Returns:
- E_Subtract instance
- See Also:
-
cond
implements if() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-if Converts expr to an Expr object via expr()- Parameters:
condition- the condition to check.thenExpr- the expression to execute if condition is true.elseExpr- the expression to execute if condition is false.- Returns:
- an E_Conditional instance.
- See Also:
-
bnode
implements bnode() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-bnode Converts expr to an Expr object via expr()- Parameters:
expr1- the blank node id.- Returns:
- an Expr instance
- See Also:
-
bnode
implements bnode() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-bnode- Returns:
- an Expr instance.
- See Also:
-
call
Creates a dynamic function call. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#rFunctionCall Converts function to an Expr object via expr()- Parameters:
function- The function to executeargs- the arguments to the function.- Returns:
- an E_FunctionDynamic instance.
- See Also:
-
call
Creates a dynamic function call. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#rFunctionCall Converts function to an Expr object via expr()- Parameters:
function- The function to executeargs- the arguments to the function.- Returns:
- an E_FunctionDynamic instance.
- See Also:
-
call
Creates a function call as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#rFunctionCall- Parameters:
args- the arguments to the function.- Returns:
- an E_Call instance.
- See Also:
-
coalesce
implements coalesce() as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-coalesce- Parameters:
args- the arguments to the function.- Returns:
- an E_Coalesce instance.
- See Also:
-
coalesce
implements coalesce() as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-coalesce- Parameters:
args- the arguments to the function.- Returns:
- an E_Coalesce instance.
- See Also:
-
function
Creates a function call as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#rFunctionCall- Parameters:
name- the name of the function.args- the arguments to the function.- Returns:
- an E_Function instance.
- See Also:
-
notin
implements "not in" as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-not-in Converts expr to an Expr object via expr()- Parameters:
expr- the expression that is not in the listlist- the list of expressions.- Returns:
- an E_NotOneOf instance.
- See Also:
-
notin
implements "not in" as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-not-in Converts expr to an Expr object via expr()- Parameters:
expr- the expression that is not in the listlist- the list of expressions.- Returns:
- an E_NotOneOf instance.
- See Also:
-
in
implements "in" as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-in Converts expr to an Expr object via expr()- Parameters:
expr- the expression that is not in the listlist- the list of expressions.- Returns:
- an E_OneOf instance.
- See Also:
-
in
implements "in" as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-in Converts expr to an Expr object via expr()- Parameters:
expr- the expression that is not in the listlist- the list of expressions.- Returns:
- an E_OneOf instance.
- See Also:
-
regex
implements regex() as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-regex Converts objects to an Expr objects via expr()- Parameters:
expr- string to match.pattern- the pattern to matchflags- the regex flags- Returns:
- an E_Regex instance.
- See Also:
-
regex
implements regex() as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-regex Converts expr to an Expr object via expr()- Parameters:
expr- string to match.pattern- the pattern to matchflags- the regex flags- Returns:
- an E_Regex instance.
- See Also:
-
concat
implements concat() as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-concat- Parameters:
list- the list of arguments to concatenate- Returns:
- an E_StrConcat instance
- See Also:
-
concat
implements concat() as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-concat- Parameters:
list- the list of arguments to concatenate- Returns:
- an E_StrConcat instance
- See Also:
-
replace
implements replace() as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-replace Converts Objects to an Expr objects via expr()- Parameters:
arg- the string literal to replacepattern- the pattern to replace in the string literal.replacement- the string literal to replace the pattern with.flags- the flags that control replacement options.- Returns:
- an E_StrReplace instance
- See Also:
-
replace
implements replace() as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-replace Converts Objects to an Expr objects via expr()- Parameters:
arg- the string literal to replacepattern- the pattern to replace in the string literal.replacement- the string literal to replace the pattern with.- Returns:
- an E_StrReplace instance
- See Also:
-
substr
implements substr() as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-substr Converts Objects to an Expr objects via expr()- Parameters:
src- the expression to extract the substring from.loc- the location within the expression string to startlen- the length of the string to extract.- Returns:
- an E_Substring instance.
- See Also:
-
substr
implements substr() as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-substr Converts Objects to an Expr objects via expr()- Parameters:
src- the expression to extract the substring from.loc- the location within the expression string to start- Returns:
- an E_Substring instance.
- See Also:
-
exists
implements exists() as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-filter-exists- Parameters:
whereClause- A WhereClause to check existence of.- Returns:
- an E_Exists instance,
- See Also:
-
notexists
implements not exists() as per the SPARQL 11 query definition. https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-filter-exists- Parameters:
whereClause- the argument to the function.- Returns:
- an E_NotExists instance.
- See Also:
-
none
Should probably be called "null" but that is a reserved work. An expression that can be used in place of null.- Returns:
- an ExprNone instance
- See Also:
-
asVar
Converts the object to a ExprVar.- If the object is an ExprVar return it
- Will return null if the object is "*" or Node_RuleVariable.WILD
- otherwise create an ExprVar from {AbstractQuerybuilder.makeVar}
- Parameters:
o- the object to convert.- Returns:
- an ExprVar
- See Also:
-
asList
Not really an Expr but a container of exprs.- Parameters:
args- the list of expressons.- Returns:
- the expression list.
-
list
Not really an Expr but a container of exprs. creates an empty list.- Returns:
- the empty expression list.
-
asExpr
Convert the object into an expression using the query's PrefixMapping- Parameters:
o- the object to convert.- Returns:
- the Expr.
-
quote
Deprecated.Convenience method to call AbstractQueryBuilder.quote- Parameters:
s- the string to quote- Returns:
- the quotes string.
- See Also:
-
Converters.quoted(String)