This page (revision-10) was last changed on 24-Nov-2014 11:29 by Jochen Reutelshöfer

This page was created on 24-Nov-2014 11:22 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
10 24-Nov-2014 11:29 1 KB Jochen Reutelshöfer to previous
9 24-Nov-2014 11:29 1 KB Jochen Reutelshöfer to previous | to last
8 24-Nov-2014 11:27 1 KB Jochen Reutelshöfer to previous | to last
7 24-Nov-2014 11:26 1 KB Jochen Reutelshöfer to previous | to last
6 24-Nov-2014 11:26 1 KB Jochen Reutelshöfer to previous | to last
5 24-Nov-2014 11:25 1 KB Jochen Reutelshöfer to previous | to last
4 24-Nov-2014 11:25 1 KB Jochen Reutelshöfer to previous | to last
3 24-Nov-2014 11:22 1 KB Jochen Reutelshöfer to previous | to last
2 24-Nov-2014 11:22 1 KB Jochen Reutelshöfer to previous | to last
1 24-Nov-2014 11:22 1 KB Jochen Reutelshöfer to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 6 changed 2 lines
The ExpectedSparqlResult markup allows to define an expected result set for some sparql query. Then the CI-Test ''SparqlResultTable'' (see [Doc CIDashboard]) can be used to test a query against an expected result set.
The ExpectedSparqlResult markup allows to define an expected result set for some sparql query. Then the CI-test SparqlResultTable (see [Doc CIDashboard]) can be used to test a query against an expected result set.
At line 9 changed one line
%% ExpectedSparqlResult...
%%sparql...
At line 15 changed 2 lines
| @name | Assignes a name to this ExpectedSparqlResult markup expression. The name can/should be used as reference for the test object in the definition of the corresponding SparqlResultTable test in the CI-Dashboard .
| @sparql | The name of the sparql query that should be testet against this result set.
| @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.
At line 21 changed one line
The expected result set is defined as a table. The columns are matched to the sequence of the variables of the associated sparql query. Here, the sparql query named ''functionalProperties'' is associated.
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 7 lines
{{{
%%ExpectedSparqlResult
|ssc:hasConnectorSource
|ssc:targetPin
|ssc:sourcePin
|ssc:isSubComponentOf
|ssc:hasConnectorTarget
The following simple example shows a query selecting all instances of the class Person:
At line 31 changed 2 lines
@name: functionalPropertiesExpected
@sparql: functionalProperties
{{{
%%sparql
SELECT ?x
WHERE {
?x rdf:type lns:Person .
}
@name: exampleQuery
@zebramode: true
@border: true
At line 40 added 7 lines
In the view mode the results of the query are shown.
!!! See also
* [InlineSparql|Doc InlineSparql]