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
[{TableOfContents }]
!!! Inline SPARQL Queries
At line 3 removed 3 lines
!!! Definition
At line 12 removed one line
After the SPARQL statement the following annotations can be inserted:
At line 14 changed 8 lines
|| 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.
! Example
At line 23 removed 4 lines
!!! Example
At line 14 added one line
At line 33 changed 7 lines
SELECT ?x
WHERE {
?x rdf:type lns:Person .
}
@name: exampleQuery
@zebramode: true
@border: true
SELECT ?x WHERE {?x rdf:type lns:Person .}
At line 43 changed one line
In the view mode the results of the query are shown.
%%KnowledgeBase
%
At line 27 added one line
%%Class Person
At line 46 changed one line
!!! Hierarchy Table Example
%%Individual Ms. MoneyPenny @type: Person
At line 48 changed one line
[Demo - Simpsons]
%%sparql
SELECT ?x WHERE {?x rdf:type lns:Person.}
@master: Doc SPARQL
%
At line 50 changed 21 lines
{{{
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
* [InlineSparql|Doc InlineSparql]
%%sparql
SELECT ?x ?y ?z WHERE {?x ?y ?z}
%