You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2021/06/22 10:20:11 UTC
[jena-site] 01/01: MOD and IDIV
This is an automated email from the ASF dual-hosted git repository.
andy pushed a commit to branch mod-idiv
in repository https://gitbox.apache.org/repos/asf/jena-site.git
commit 5f077cad59899ad3f08e40ca375964a73491214e
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Tue Jun 22 11:19:55 2021 +0100
MOD and IDIV
---
source/documentation/query/__index.md | 4 ++++
source/documentation/query/assignment.md | 6 ++++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/source/documentation/query/__index.md b/source/documentation/query/__index.md
index a45c5fb..b3caea4 100644
--- a/source/documentation/query/__index.md
+++ b/source/documentation/query/__index.md
@@ -70,6 +70,10 @@ Feature of ARQ that go beyond SPARQL syntax. The default query
language is standard SPARQL. These features require the query to be
parsed with an explicit declaration of `Syntax.syntaxARQ`.
+- [RDF-star](https://w3c.github.io/rdf-star/)
+- Operators and functions
+ `[MOD](https://www.w3.org/TR/xpath-functions/#func-numeric-mod)`
+ and `[IDIV](https://www.w3.org/TR/xpath-functions/#func-numeric-integer-divide)` for modulus and integer division.
- [LET variable assignment](assignment.html)
- [Order results using a Collation](collation.html)
- [Construct Quad](construct-quad.html)
diff --git a/source/documentation/query/assignment.md b/source/documentation/query/assignment.md
index eb5e80e..0de0a62 100644
--- a/source/documentation/query/assignment.md
+++ b/source/documentation/query/assignment.md
@@ -2,10 +2,12 @@
title: ARQ - Assignment
---
-ARQ includes support for an explicit assignment of variables.
+ARQ includes support for a logical assignment of variables. If the variable is
+already bound, it acts like a filter, otherwise the value is assignment.
+This makes it position independent.
This involves is syntactic extension and is available is the query
-is parsed with language `Syntax.syntaxARQ`.
+is parsed with language `Syntax.syntaxARQ` (which is the default).
See also [SELECT expressions](select_expr.html) which is also a
form of assignment.