Summary
Implement the standard library of SPARQL 1.1 scalar built-in functions, type checking, and XML Schema casting operators in core.next.query.
Objectives and Technical Scope
1. Standard Built-in Functions
- String Functions:
STRLEN, SUBSTR, UCASE, LCASE, STRSTARTS, STRENDS, CONTAINS, STRBEFORE, STRAFTER, ENCODE_FOR_URI, CONCAT, LANGMATCHES, REGEX, REPLACE.
- Numeric Functions:
ABS, ROUND, CEIL, FLOOR, RAND.
- Date and Time Functions:
NOW, YEAR, MONTH, DAY, HOURS, MINUTES, SECONDS, TIMEZONE, TZ.
- Cryptographic Hash Functions:
MD5, SHA1, SHA256, SHA384, SHA512.
- Term Constructors and Accessors:
IRI/URI, BNODE, STRDT, STRLANG, UUID, STRUUID, ISNUMERIC, IF, COALESCE.
2. Casting Operators
- Implement casting functions matching XML Schema specifications:
xsd:string, xsd:integer, xsd:decimal, xsd:double, xsd:float, xsd:boolean, xsd:dateTime.
3. Type Error Handling and Effective Boolean Value (EBV)
- Standardize runtime
TypeError emission and absorption per W3C specification inside FILTER, IF, and COALESCE.
- Validate against official W3C SPARQL 1.1 test suites (
functions, cast) in corese-w3c.
Dependencies
Summary
Implement the standard library of SPARQL 1.1 scalar built-in functions, type checking, and XML Schema casting operators in
core.next.query.Objectives and Technical Scope
1. Standard Built-in Functions
STRLEN,SUBSTR,UCASE,LCASE,STRSTARTS,STRENDS,CONTAINS,STRBEFORE,STRAFTER,ENCODE_FOR_URI,CONCAT,LANGMATCHES,REGEX,REPLACE.ABS,ROUND,CEIL,FLOOR,RAND.NOW,YEAR,MONTH,DAY,HOURS,MINUTES,SECONDS,TIMEZONE,TZ.MD5,SHA1,SHA256,SHA384,SHA512.IRI/URI,BNODE,STRDT,STRLANG,UUID,STRUUID,ISNUMERIC,IF,COALESCE.2. Casting Operators
xsd:string,xsd:integer,xsd:decimal,xsd:double,xsd:float,xsd:boolean,xsd:dateTime.3. Type Error Handling and Effective Boolean Value (EBV)
TypeErroremission and absorption per W3C specification insideFILTER,IF, andCOALESCE.functions,cast) incorese-w3c.Dependencies