Class ExprFactory

java.lang.Object
org.apache.jena.arq.querybuilder.ExprFactory

public class ExprFactory extends Object
Create expressions. NodeValue contains a number of static functions to make a number of node functions.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs an expression factory with the prefix definitions found in PrefixMapping.Extended
    Constructs an expression factor with the specified prefix definitions.
  • Method Summary

    Modifier and Type
    Method
    Description
    final E_NumAbs
    abs(Object expr)
    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()
    final E_Add
    add(Object expr1, Object expr2)
    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()
    and(Object expr1, Object expr2)
    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()
    final Expr
    Convert the object into an expression using the query's PrefixMapping
    static final Expr
    Create an expression from an object.
    final ExprList
    asList(Object... args)
    Not really an Expr but a container of exprs.
    final ExprVar
    Converts the object to a ExprVar.
    final E_BNode
    implements bnode() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-bnode
    final E_BNode
    bnode(Object expr1)
    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()
    final E_Bound
    bound(Object expr)
    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()
    call(Object function, Object... args)
    Creates a dynamic function call.
    call(Object function, ExprList args)
    Creates a dynamic function call.
    final E_Call
    call(ExprList args)
    Creates a function call as per the SPARQL 11 query definition.
    ceil(Object expr)
    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()
    coalesce(Object... args)
    implements coalesce() as per the SPARQL 11 query definition.
    implements coalesce() as per the SPARQL 11 query definition.
    concat(Object... list)
    implements concat() as per the SPARQL 11 query definition.
    implements concat() as per the SPARQL 11 query definition.
    cond(Expr condition, Expr thenExpr, Expr elseExpr)
    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()
    contains(Object expr1, Object expr2)
    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()
    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()
    day(Object expr)
    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()
    final E_Divide
    divide(Object expr1, Object expr2)
    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()
    encode(Object expr)
    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()
    final E_Equals
    eq(Object expr1, Object expr2)
    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()
    final E_Exists
    exists(WhereClause<?> whereClause)
    implements exists() as per the SPARQL 11 query definition.
    floor(Object expr)
    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()
    function(String name, ExprList args)
    Creates a function call as per the SPARQL 11 query definition.
    ge(Object expr1, Object expr2)
    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()
    gt(Object expr1, Object expr2)
    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()
    hours(Object expr)
    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()
    final E_OneOf
    in(Object expr, Object... list)
    implements "in" as per the SPARQL 11 query definition.
    final E_OneOf
    in(Object expr, ExprList list)
    implements "in" as per the SPARQL 11 query definition.
    final E_IRI
    iri(Object expr)
    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()
    final E_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()
    final E_IsIRI
    isIRI(Object expr)
    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()
    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()
    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()
    final E_Lang
    lang(Object expr)
    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()
    langMatches(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()
    lcase(Object expr)
    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()
    le(Object expr1, Object expr2)
    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()
    final ExprList
    Not really an Expr but a container of exprs.
    lt(Object expr1, Object expr2)
    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()
    final E_MD5
    md5(Object expr)
    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()
    minus(Object expr)
    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()
    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()
    month(Object expr)
    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()
    multiply(Object expr1, Object expr2)
    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()
    ne(Object expr1, Object expr2)
    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()
    final ExprNone
    Should probably be called "null" but that is a reserved work.
    not(Object expr)
    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()
    notexists(WhereClause<?> whereClause)
    implements not exists() as per the SPARQL 11 query definition.
    notin(Object expr, Object... list)
    implements "not in" as per the SPARQL 11 query definition.
    notin(Object expr, ExprList list)
    implements "not in" as per the SPARQL 11 query definition.
    final E_Now
    now()
    implements now() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-now
    or(Object expr1, Object expr2)
    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()
    plus(Object expr)
    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()
    final String
    Deprecated.
    final E_Random
    implements rand() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-rand
    final E_Regex
    regex(Object expr, Object pattern, Object flags)
    implements regex() as per the SPARQL 11 query definition.
    final E_Regex
    regex(Object expr, String pattern, String flags)
    implements regex() as per the SPARQL 11 query definition.
    replace(Object arg, Object pattern, Object replacement)
    implements replace() as per the SPARQL 11 query definition.
    replace(Object arg, Object pattern, Object replacement, Object flags)
    implements replace() as per the SPARQL 11 query definition.
    round(Object expr)
    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()
    sameTerm(Object expr1, Object expr2)
    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()
    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()
    final E_SHA1
    sha1(Object expr)
    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()
    final E_SHA224
    sha224(Object expr)
    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()
    final E_SHA256
    sha256(Object expr)
    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()
    final E_SHA384
    sha384(Object expr)
    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()
    final E_SHA512
    sha512(Object expr)
    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()
    final E_Str
    str(Object expr)
    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()
    strafter(Object expr1, Object expr2)
    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()
    strbefore(Object expr1, Object expr2)
    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()
    strdt(Object expr1, Object expr2)
    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()
    strends(Object expr1, Object expr2)
    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()
    final E_StrLang
    strlang(Object expr1, Object expr2)
    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()
    strlen(Object expr)
    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()
    strstarts(Object expr1, Object expr2)
    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()
    final E_StrUUID
    implements struuid() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-struuid
    substr(Object src, Object loc)
    implements substr() as per the SPARQL 11 query definition.
    substr(Object src, Object loc, Object len)
    implements substr() as per the SPARQL 11 query definition.
    subtract(Object expr1, Object expr2)
    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()
    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()
    tz(Object expr)
    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()
    ucase(Object expr)
    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()
    final E_UUID
    implements uuid() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-uuid
    final E_Version
    Returns the current ARQ name and version number as a string.
    year(Object expr)
    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()

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExprFactory

      public ExprFactory(PrefixMapping pMap)
      Constructs an expression factor with the specified prefix definitions.
      Parameters:
      pMap - the PrefixMapping to use in the expressions.
    • ExprFactory

      public ExprFactory()
      Constructs an expression factory with the prefix definitions found in PrefixMapping.Extended
      See Also:
  • Method Details

    • rand

      public final E_Random 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

      public final E_StrUUID 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

      public final E_UUID 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

      public final E_Version version()
      Returns the current ARQ name and version number as a string.
      Returns:
      E_Version instance
      See Also:
    • now

      public final E_Now 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

      public final E_Bound bound(Object expr)
      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

      public final E_Datatype datatype(Object expr)
      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

      public final E_DateTimeDay day(Object expr)
      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

      public final E_DateTimeHours hours(Object expr)
      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

      public final E_DateTimeMinutes minutes(Object expr)
      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

      public final E_DateTimeMonth month(Object expr)
      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

      public final E_DateTimeSeconds seconds(Object expr)
      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

      public final E_DateTimeTimezone timezone(Object expr)
      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

      public final E_DateTimeTZ tz(Object expr)
      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

      public final E_DateTimeYear year(Object expr)
      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

      public final E_IRI iri(Object expr)
      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

      public final E_IsBlank isBlank(Object expr)
      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

      public final E_IsIRI isIRI(Object expr)
      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

      public final E_IsLiteral isLiteral(Object expr)
      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

      public final E_IsNumeric isNumeric(Object expr)
      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

      public final E_Lang lang(Object expr)
      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

      public final E_LogicalNot not(Object expr)
      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

      public final E_NumAbs abs(Object expr)
      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

      public final E_NumCeiling ceil(Object expr)
      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

      public final E_NumFloor floor(Object expr)
      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

      public final E_NumRound round(Object expr)
      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

      public final E_Str str(Object expr)
      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

      public final E_StrEncodeForURI encode(Object expr)
      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

      public final E_StrLength strlen(Object expr)
      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

      public final E_StrLowerCase lcase(Object expr)
      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

      public final E_StrUpperCase ucase(Object expr)
      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

      public final E_UnaryMinus minus(Object expr)
      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

      public final E_UnaryPlus plus(Object expr)
      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

      public final E_MD5 md5(Object expr)
      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

      public final E_SHA1 sha1(Object expr)
      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

      public final E_SHA224 sha224(Object expr)
      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

      public final E_SHA256 sha256(Object expr)
      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

      public final E_SHA384 sha384(Object expr)
      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

      public final E_SHA512 sha512(Object expr)
      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

      public final E_Add add(Object expr1, Object expr2)
      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

      public final E_Divide divide(Object expr1, Object expr2)
      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

      public final E_Equals eq(Object expr1, Object expr2)
      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

      public final E_GreaterThan gt(Object expr1, Object expr2)
      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

      public final E_GreaterThanOrEqual ge(Object expr1, Object expr2)
      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

      public final E_LangMatches langMatches(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()
      Parameters:
      expr1 - the first expression.
      expr2 - the second expression.
      Returns:
      E_LangMatches instance
      See Also:
    • lt

      public final E_LessThan lt(Object expr1, Object expr2)
      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

      public final E_LessThanOrEqual le(Object expr1, Object expr2)
      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

      public final E_LogicalAnd and(Object expr1, Object expr2)
      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

      public final E_LogicalOr or(Object expr1, Object expr2)
      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

      public final E_Multiply multiply(Object expr1, Object expr2)
      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

      public final E_NotEquals ne(Object expr1, Object expr2)
      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

      public final E_SameTerm sameTerm(Object expr1, Object expr2)
      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

      public final E_StrAfter strafter(Object expr1, Object expr2)
      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

      public final E_StrBefore strbefore(Object expr1, Object expr2)
      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

      public final E_StrContains contains(Object expr1, Object expr2)
      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

      public final E_StrDatatype strdt(Object expr1, Object expr2)
      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

      public final E_StrEndsWith strends(Object expr1, Object expr2)
      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

      public final E_StrLang strlang(Object expr1, Object expr2)
      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

      public final E_StrStartsWith strstarts(Object expr1, Object expr2)
      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

      public final E_Subtract subtract(Object expr1, Object expr2)
      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

      public final E_Conditional cond(Expr condition, Expr thenExpr, Expr elseExpr)
      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

      public final E_BNode bnode(Object expr1)
      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 E_BNode instance
      See Also:
    • bnode

      public final E_BNode bnode()
      implements bnode() as per SPARQL 1.1 spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-bnode
      Returns:
      an E_BNode instance.
      See Also:
    • call

      public final E_FunctionDynamic call(Object function, ExprList args)
      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 execute
      args - the arguments to the function.
      Returns:
      an E_FunctionDynamic instance.
      See Also:
    • call

      public final E_FunctionDynamic call(Object function, Object... args)
      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 execute
      args - the arguments to the function.
      Returns:
      an E_FunctionDynamic instance.
      See Also:
    • call

      public final E_Call call(ExprList args)
      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

      public final E_Coalesce coalesce(ExprList args)
      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

      public final E_Coalesce coalesce(Object... args)
      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

      public final E_Function function(String name, ExprList args)
      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

      public final E_NotOneOf notin(Object expr, ExprList list)
      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 list
      list - the list of expressions.
      Returns:
      an E_NotOneOf instance.
      See Also:
    • notin

      public final E_NotOneOf notin(Object expr, Object... list)
      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 list
      list - the list of expressions.
      Returns:
      an E_NotOneOf instance.
      See Also:
    • in

      public final E_OneOf in(Object expr, ExprList list)
      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 list
      list - the list of expressions.
      Returns:
      an E_OneOf instance.
      See Also:
    • in

      public final E_OneOf in(Object expr, Object... list)
      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 list
      list - the list of expressions.
      Returns:
      an E_OneOf instance.
      See Also:
    • regex

      public final E_Regex regex(Object expr, Object pattern, Object flags)
      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 match
      flags - the regex flags
      Returns:
      an E_Regex instance.
      See Also:
    • regex

      public final E_Regex regex(Object expr, String pattern, String flags)
      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 match
      flags - the regex flags
      Returns:
      an E_Regex instance.
      See Also:
    • concat

      public final E_StrConcat concat(ExprList list)
      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

      public final E_StrConcat concat(Object... list)
      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

      public final E_StrReplace replace(Object arg, Object pattern, Object replacement, Object flags)
      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 replace
      pattern - 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

      public final E_StrReplace replace(Object arg, Object pattern, Object replacement)
      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 replace
      pattern - 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

      public final E_StrSubstring substr(Object src, Object loc, Object len)
      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
      len - the length of the string to extract.
      Returns:
      an E_Substring instance.
      See Also:
    • substr

      public final E_StrSubstring substr(Object src, Object loc)
      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

      public final E_Exists exists(WhereClause<?> whereClause)
      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

      public final E_NotExists notexists(WhereClause<?> whereClause)
      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

      public final ExprNone 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

      public final ExprVar asVar(Object o)
      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

      public final ExprList asList(Object... args)
      Not really an Expr but a container of exprs.
      Parameters:
      args - the list of expressons.
      Returns:
      the expression list.
    • list

      public final ExprList list()
      Not really an Expr but a container of exprs. creates an empty list.
      Returns:
      the empty expression list.
    • asExpr

      public final Expr asExpr(Object o)
      Convert the object into an expression using the query's PrefixMapping
      Parameters:
      o - the object to convert.
      Returns:
      the Expr.
    • quote

      @Deprecated public final String quote(String s)
      Deprecated.
      Convenience method to call AbstractQueryBuilder.quote
      Parameters:
      s - the string to quote
      Returns:
      the quotes string.
      See Also:
    • asExpr

      public static final Expr asExpr(Object o, PrefixMapping pMap)
      Create an expression from an object. this method does not parse strings to expressions. to parse strings to expressions see {AbstractQueryBuilder.makeExpr}
      • If the object is null returns none()
      • If the object is an expression return it
      • If the object fronts a node and is not a var make a NodeVar
      • otherwise calls var()
      Parameters:
      o - the object to create the expression from
      Returns:
      Expr
      See Also: