This page (revision-30) was last changed on 20-Mar-2018 09:23 by Joba Baumeister

This page was created on 25-Oct-2013 10:15 by Jochen Reutelshöfer

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
30 20-Mar-2018 09:23 1 KB Joba Baumeister to previous
29 20-Mar-2018 09:22 1 KB Joba Baumeister to previous | to last
28 07-Feb-2017 09:56 1 KB Jochen Reutelshöfer to previous | to last
27 07-Feb-2017 09:53 1 KB Jochen Reutelshöfer to previous | to last
26 23-Jun-2014 16:16 1 KB Albrecht Striffler to previous | to last
25 23-Jun-2014 16:15 1 KB Albrecht Striffler to previous | to last
24 21-May-2014 15:37 1 KB Joba Baumeister to previous | to last
23 21-May-2014 15:35 1 KB Joba Baumeister to previous | to last
22 21-May-2014 15:34 1 KB Joba Baumeister to previous | to last
21 21-May-2014 15:34 1 KB Joba Baumeister to previous | to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 changed one line
!!! Inline SPARQL Queries
[{TableOfContents }]
At line 3 added 3 lines
!!! Definition
At line 11 changed 2 lines
|| Annotation || Description
| Doc%20InlineSparql |
|| Annotation || Description
| @name | Gives the SPARQL the specified name. The name can be used as reference in other markups (like [InlineSparql|Doc InlineSparql])
| @zebramode | Renders the result table in zebra-style (gray/white).
| @border | A visual border is painted around the result table cells.
| @rawOutput | No abbreviations are used in the result table, but the full content (of literals for example) is printed.
| @showQuery | Besides the results of the query, also the query is shown in the view mode of the wiki.
| @sorting | The result table is sorted.
| @timeout  | The SPARQL gets more time to calculate the results; parameter in milliseconds.
At line 14 removed one line
! Example
At line 16 removed one line
The sparql markup allows full support of the SPARQL 1.1. query language specification, which can be found here: [http://www.w3.org/TR/sparql11-query/]
At line 25 added one line
!!! Example
At line 27 added 2 lines
The sparql markup allows full support of the SPARQL 1.1. query language specification, which can be found here: [http://www.w3.org/TR/sparql11-query/]
At line 23 changed one line
SELECT ?x WHERE {?x rdf:type lns:Person .}
SELECT ?x
WHERE {
?x rdf:type lns:Person .
}
@name: exampleQuery
@zebramode: true
@border: true
At line 27 changed one line
Instead of the query, the wiki page will show a table presenting the result of the query.
In the view mode the results of the query are shown.
At line 29 removed one line
! See also
At line 46 added 24 lines
!!! Hierarchy Table Example
[Demo - Simpsons]
{{{
SELECT (SAMPLE(?sub) as ?sub) (SAMPLE(?par) as ?par) (SAMPLE(?name) as ?name) ?concept
WHERE {
{
# bind si:abraham as root node
BIND (si:abraham as ?sub) .
}
UNION
{
# collect all parent child relations (will be conntected automagically to si:abraham)
?sub si:parent ?par ;
}
# display name and concept as table columns
?sub rdfs:label ?name .
BIND (?sub as ?concept) .
} GROUP BY ?concept
}}}
!!! See also