Holger Knublauch

New namespace for pre-canned queries

1 +# baseURI: http://www.reportinghub.no/ep/spin/queries
2 +# imports: http://spinrdf.org/spin
3 +# imports: http://www.reportinghub.no/ep/schema/1.0/ddr
4 +
5 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
6 +@prefix queries: <http://www.reportinghub.no/ep/spin/queries#> .
7 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
8 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9 +@prefix sp: <http://spinrdf.org/sp#> .
10 +@prefix spin: <http://spinrdf.org/spin#> .
11 +@prefix spl: <http://spinrdf.org/spl#> .
12 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
13 +
14 +<http://spinrdf.org/arg#arg1>
15 + rdf:type rdf:Property ;
16 + rdfs:label "arg1"^^xsd:string ;
17 + rdfs:subPropertyOf sp:arg .
18 +
19 +<http://spinrdf.org/arg#arg2>
20 + rdf:type rdf:Property ;
21 + rdfs:label "arg2"^^xsd:string ;
22 + rdfs:subPropertyOf sp:arg .
23 +
24 +<http://spinrdf.org/arg#arg3>
25 + rdf:type rdf:Property ;
26 + rdfs:label "arg3"^^xsd:string ;
27 + rdfs:subPropertyOf sp:arg .
28 +
29 +<http://www.reportinghub.no/ep/spin/queries>
30 + rdf:type owl:Ontology ;
31 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/ddr> ;
32 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
33 +
34 +queries:TestQuery1
35 + rdf:type spin:SelectTemplate ;
36 + rdfs:label "Test query 1"^^xsd:string ;
37 + rdfs:subClassOf spin:SelectTemplates ;
38 + spin:body
39 + [ rdf:type sp:Select ;
40 + sp:resultVariables (spin:_arg1 spin:_arg2 spin:_arg3) ;
41 + sp:where ()
42 + ] ;
43 + spin:constraint
44 + [ rdf:type spl:Argument ;
45 + rdfs:comment "An optional integer value."^^xsd:string ;
46 + spl:optional "true"^^xsd:boolean ;
47 + spl:predicate <http://spinrdf.org/arg#arg3> ;
48 + spl:valueType xsd:integer
49 + ] ;
50 + spin:constraint
51 + [ rdf:type spl:Argument ;
52 + rdfs:comment "A float value"^^xsd:string ;
53 + spl:predicate <http://spinrdf.org/arg#arg2> ;
54 + spl:valueType xsd:float
55 + ] ;
56 + spin:constraint
57 + [ rdf:type spl:Argument ;
58 + rdfs:comment "A string argument"^^xsd:string ;
59 + spl:predicate <http://spinrdf.org/arg#arg1> ;
60 + spl:valueType xsd:string
61 + ] .
62 +
63 +queries:TestQuery2
64 + rdf:type spin:SelectTemplate ;
65 + rdfs:label "Test query 2"^^xsd:string ;
66 + rdfs:subClassOf spin:SelectTemplates ;
67 + spin:body
68 + [ rdf:type sp:Select ;
69 + sp:resultVariables (spin:_arg1 spin:_arg2) ;
70 + sp:where ()
71 + ] ;
72 + spin:constraint
73 + [ rdf:type spl:Argument ;
74 + rdfs:comment "A string argument"^^xsd:string ;
75 + spl:predicate <http://spinrdf.org/arg#arg1> ;
76 + spl:valueType xsd:string
77 + ] ;
78 + spin:constraint
79 + [ rdf:type spl:Argument ;
80 + rdfs:comment "A float value"^^xsd:string ;
81 + spl:predicate <http://spinrdf.org/arg#arg2> ;
82 + spl:valueType xsd:float
83 + ] .