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
%%sparql...
%% ExpectedSparqlResult...
At line 15 changed 6 lines
| @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.
| @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.
At line 25 changed 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/]
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.
At line 27 removed 2 lines
The following simple example shows a query selecting all instances of the class Person:
At line 30 changed 8 lines
%%sparql
SELECT ?x
WHERE {
?x rdf:type lns:Person .
}
@name: exampleQuery
@zebramode: true
@border: true
%%ExpectedSparqlResult
|ssc:hasConnectorSource
|ssc:targetPin
|ssc:sourcePin
|ssc:isSubComponentOf
|ssc:hasConnectorTarget
@name: functionalPropertiesExpected
@sparql: functionalProperties
At line 40 removed 7 lines
In the view mode the results of the query are shown.
!!! See also
* [InlineSparql|Doc InlineSparql]