You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by ki...@apache.org on 2023/04/11 14:26:36 UTC
[jena-site] 05/06: Fix formatting of the ARQ - Query page, and add syntax highlight for ARQ federated docs
This is an automated email from the ASF dual-hosted git repository.
kinow pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena-site.git
commit fc74c64daca6591faf11487aaf7064826518e139
Author: Bruno P. Kinoshita <ki...@users.noreply.github.com>
AuthorDate: Mon Apr 10 12:49:33 2023 +0200
Fix formatting of the ARQ - Query page, and add syntax highlight for ARQ federated docs
---
source/documentation/query/__index.md | 4 ++--
source/documentation/query/service.md | 44 +++++++++++++++++++----------------
2 files changed, 26 insertions(+), 22 deletions(-)
diff --git a/source/documentation/query/__index.md b/source/documentation/query/__index.md
index 7d9063935..c94058a51 100644
--- a/source/documentation/query/__index.md
+++ b/source/documentation/query/__index.md
@@ -72,8 +72,8 @@ Feature of ARQ that go beyond SPARQL syntax.
- [LATERAL Join](lateral-join.html)
- [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.
+ [`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/service.md b/source/documentation/query/service.md
index 72b69f943..6316db2a8 100644
--- a/source/documentation/query/service.md
+++ b/source/documentation/query/service.md
@@ -16,31 +16,35 @@ to make a SPARQL protocol to another SPARQL endpoint.
## Syntax
- PREFIX : <http://example/>
- PREFIX dc: <http://purl.org/dc/elements/1.1/>
-
- SELECT ?a
- FROM <mybooks.rdf>
- {
- ?b dc:title ?title .
- SERVICE <http://sparql.org/books>
- { ?s dc:title ?title . ?s dc:creator ?a }
- }
+```sparql
+PREFIX : <http://example/>
+PREFIX dc: <http://purl.org/dc/elements/1.1/>
+
+SELECT ?a
+FROM <mybooks.rdf>
+{
+ ?b dc:title ?title .
+ SERVICE <http://sparql.org/books>
+ { ?s dc:title ?title . ?s dc:creator ?a }
+}
+```
## Algebra
There is an operator in the algebra.
- (prefix ((dc: <http://purl.org/dc/elements/1.1/>))
- (project (?a)
- (join
- (BGP [triple ?b dc:title ?title])
- (service <http://sparql.org/books>
- (BGP
- [triple ?s dc:title ?title]
- [triple ?s dc:creator ?a]
- ))
- )))
+```sparql
+(prefix ((dc: <http://purl.org/dc/elements/1.1/>))
+ (project (?a)
+ (join
+ (BGP [triple ?b dc:title ?title])
+ (service <http://sparql.org/books>
+ (BGP
+ [triple ?s dc:title ?title]
+ [triple ?s dc:creator ?a]
+ ))
+ )))
+```
## Performance Considerations