-
Notifications
You must be signed in to change notification settings - Fork 11
/
LSQ_Vocab.ttl
206 lines (172 loc) · 10.9 KB
/
LSQ_Vocab.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<?xml version="1.0" encoding="UTF-8"?>
<!-- The Linked SPARQL Queries Vocabulary (LSQ(V)) -->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:sd="http://www.w3.org/ns/sparql-service-description#"
xml:lang="en">
<owl:Ontology rdf:about="http://lsq.aksw.org/vocab" dc:title="The Linked SPARQL Queries Vocabulary (LSQ(V))" dc:description="The Linked SPARQL Queries Vocabulary (LSQ(V)), defined using RDF(S) and OWL, provides a machine readable vocabulary to help describe queries in SPARQL logs and their statistics. The vocabulary builds upon the SPIN vocabulary and the Service Description vocabulary.">
<dc:creator rdf:resource="http://aidanhogan.com/foaf.rdf#me" />
<dc:date rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2015-09-07Z</dc:date>
</owl:Ontology>
<!-- Object properties -->
<owl:ObjectProperty rdf:about="http://lsq.aksw.org/vocab#agent">
<rdfs:label>run by agent</rdfs:label>
<rdfs:comment>Links a query execution instance to the agent that initiated the execution</rdfs:comment>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty" />
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://lsq.aksw.org/vocab#endpoint">
<rdfs:label>run at endpoint</rdfs:label>
<rdfs:comment>Links a query execution instance to the endpoint against which it was run</rdfs:comment>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty" />
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://lsq.aksw.org/vocab#execution">
<rdfs:label>has execution</rdfs:label>
<rdfs:comment>Links a query to an execution of it against a particular endpoint by a particular agent at a particular time</rdfs:comment>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty" />
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://lsq.aksw.org/vocab#joinVertex">
<rdfs:label>has join vertex</rdfs:label>
<rdfs:comment>Links a query to a join vertex it contains</rdfs:comment>
</owl:ObjectProperty>
<!--the following may be deprecated soon in favour of simply rdf:type -->
<owl:ObjectProperty rdf:about="http://lsq.aksw.org/vocab#joinVertexType">
<rdfs:label>is of type</rdfs:label>
<rdfs:comment>Links a join vertex to the type of vertex it is</rdfs:comment>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty" />
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="http://lsq.aksw.org/vocab#usesFeature">
<rdfs:label>uses feature</rdfs:label>
<rdfs:comment>A feature used by the query</rdfs:comment>
</owl:ObjectProperty>
<!-- Datatype properties -->
<!-- We add ranges just for error checking -->
<owl:DatatypeProperty rdf:about="http://lsq.aksw.org/vocab#bgps">
<rdfs:label>number of bgps</rdfs:label>
<rdfs:comment>The number of Basic Graph Patterns in a query</rdfs:comment>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#nonNegativeInteger" />
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty" />
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://lsq.aksw.org/vocab#executionError">
<rdfs:label>execution error</rdfs:label>
<rdfs:comment>The text of an error encountered during a query execution</rdfs:comment>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://lsq.aksw.org/vocab#joinVertices">
<rdfs:label>number of join vertices</rdfs:label>
<rdfs:comment>The number of join vertices in a query</rdfs:comment>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#nonNegativeInteger" />
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty" />
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://lsq.aksw.org/vocab#meanJoinVerticesDegree">
<rdfs:label>mean join vertex degree</rdfs:label>
<rdfs:comment>The mean degree across all the join vertices</rdfs:comment>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#decimal" />
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty" />
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://lsq.aksw.org/vocab#meanTriplePatternSelectivity">
<rdfs:label>mean selectivity of triple patterns</rdfs:label>
<rdfs:comment>The mean selectivity of all triple patterns</rdfs:comment>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#decimal" />
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://lsq.aksw.org/vocab#parseError">
<rdfs:label>parse error</rdfs:label>
<rdfs:comment>The text of an error encountered when parsing query</rdfs:comment>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://lsq.aksw.org/vocab#resultSize">
<rdfs:label>result size</rdfs:label>
<rdfs:comment>Number of results returned when executed locally</rdfs:comment>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#nonNegativeInteger" />
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://lsq.aksw.org/vocab#runTimeMs">
<rdfs:label>run time in milliseconds</rdfs:label>
<rdfs:comment>The run time of the query in milliseconds when executed locally</rdfs:comment>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#decimal" />
</owl:DatatypeProperty>
<!-- slight inconsistency with capitalisation here compared with runTimeMs :( -->
<!-- may be deprecated in future -->
<owl:DatatypeProperty rdf:about="http://lsq.aksw.org/vocab#runtimeError">
<rdfs:label>runtime error</rdfs:label>
<rdfs:comment>The text of an error encountered when running the query locally</rdfs:comment>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://lsq.aksw.org/vocab#spinError">
<rdfs:label>SPIN error</rdfs:label>
<rdfs:comment>The text of an error encountered when generating the SPIN description</rdfs:comment>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="http://lsq.aksw.org/vocab#triplePatterns">
<rdfs:label>number of triple patterns</rdfs:label>
<rdfs:comment>The number of triple patterns in a query</rdfs:comment>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#nonNegativeInteger" />
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty" />
</owl:DatatypeProperty>
<!-- RDF Properties, can be used with literals or IRIs -->
<!-- Not compatible with Direct Semantics of OWL -->
<!-- ... but I don't really care. -->
<rdf:Property rdf:about="http://lsq.aksw.org/vocab#mentionsObject">
<rdfs:label>mentions object</rdfs:label>
<rdfs:comment>Links a query to a term it mentions in the object of a triple pattern</rdfs:comment>
</rdf:Property>
<rdf:Property rdf:about="http://lsq.aksw.org/vocab#mentionsPredicate">
<rdfs:label>mentions predicate</rdfs:label>
<rdfs:comment>Links a query to a term it mentions in the predicate of a triple pattern</rdfs:comment>
</rdf:Property>
<rdf:Property rdf:about="http://lsq.aksw.org/vocab#mentionsSubject">
<rdfs:label>mentions subject</rdfs:label>
<rdfs:comment>Links a query to a term it mentions in the subject of a triple pattern</rdfs:comment>
</rdf:Property>
<!-- Classes -->
<owl:Class rdf:about="http://lsq.aksw.org/vocab#Execution">
<rdfs:label>Query Execution</rdfs:label>
<rdfs:comment>Each instance is an execution of a particular query against a particular endpoint at a particular time by a particular agent</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="http://lsq.aksw.org/vocab#JoinVertex">
<rdfs:label>Join Vertex</rdfs:label>
<rdfs:comment>Each instance is a join vertex (position) in the query</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="http://lsq.aksw.org/vocab#Star">
<rdfs:label>Star Join Vertex</rdfs:label>
<rdfs:comment>Each instance is a star-shaped join vertex (position) in the query (zero incoming edges, multiple outgoing edges)</rdfs:comment>
<rdfs:subClassOf rdf:resource="http://lsq.aksw.org/vocab#JoinVertex" />
</owl:Class>
<owl:Class rdf:about="http://lsq.aksw.org/vocab#Path">
<rdfs:label>Path Join Vertex</rdfs:label>
<rdfs:comment>Each instance is a path-shaped join vertex (position) in the query (one incoming edge, one outgoing edge)</rdfs:comment>
<rdfs:subClassOf rdf:resource="http://lsq.aksw.org/vocab#JoinVertex" />
</owl:Class>
<owl:Class rdf:about="http://lsq.aksw.org/vocab#Hybrid">
<rdfs:label>Hybrid Join Vertex</rdfs:label>
<rdfs:comment>Each instance is a hybrid join vertex (position) in the query (at least one incoming edge, at least one outgoing edge, at least three edges)</rdfs:comment>
<rdfs:subClassOf rdf:resource="http://lsq.aksw.org/vocab#JoinVertex" />
</owl:Class>
<owl:Class rdf:about="http://lsq.aksw.org/vocab#Sink">
<rdfs:label>Sink Join Vertex</rdfs:label>
<rdfs:comment>Each instance is a sink join vertex (position) in the query (multiple incoming edges, zero outgoing edges)</rdfs:comment>
<rdfs:subClassOf rdf:resource="http://lsq.aksw.org/vocab#JoinVertex" />
</owl:Class>
<!-- Instances -->
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#Avg" rdfs:label="Avg" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#Bind" rdfs:label="Bind" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#Count" rdfs:label="Count" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#Distinct" rdfs:label="Distinct" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#Filter" rdfs:label="Filter" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#FromNamed" rdfs:label="FromNamed" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#GroupBy" rdfs:label="GroupBy" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#Having" rdfs:label="Having" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#Limit" rdfs:label="Limit" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#Max" rdfs:label="Max" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#Min" rdfs:label="Min" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#Minus" rdfs:label="Minus" />
<!-- typo in the current data ... should be NamedGraph, not namedGraph ... -->
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#NamedGraph" rdfs:label="NamedGraph"><owl:sameAs rdf:resource="http://lsq.aksw.org/vocab#namedGraph" /></sd:Feature>
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#Offset" rdfs:label="Offset" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#Optional" rdfs:label="Optional" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#OrderBy" rdfs:label="OrderBy" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#Regex" rdfs:label="Regex" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#Service" rdfs:label="Service" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#SubQuery" rdfs:label="SubQuery" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#Sum" rdfs:label="Sum" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#Union" rdfs:label="Union" />
<sd:Feature rdf:about="http://lsq.aksw.org/vocab#Values" rdfs:label="Values" />
</rdf:RDF>