-
Notifications
You must be signed in to change notification settings - Fork 1
/
Logging.ttl
200 lines (198 loc) · 5.64 KB
/
Logging.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
# baseURI: https://data.federatief.datastelsel.nl/lock-unlock/logging/model/def/
# imports: https://data.federatief.datastelsel.nl/lock-unlock/authentication/model/def/
# imports: https://data.federatief.datastelsel.nl/lock-unlock/authorisation/model/def/
@prefix : <https://data.federatief.datastelsel.nl/lock-unlock/logging/model/def/> .
@prefix authentication: <https://data.federatief.datastelsel.nl/lock-unlock/authentication/model/def/> .
@prefix authorisation: <https://data.federatief.datastelsel.nl/lock-unlock/authorisation/model/def/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
:
rdf:type owl:Ontology ;
owl:imports authentication: ;
owl:imports authorisation: ;
owl:versionInfo "Created with TopBraid Composer" ;
.
:LogEvent
rdf:type owl:Class ;
rdfs:subClassOf owl:Thing ;
rdfs:subClassOf [
rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty :by_user ;
] ;
rdfs:subClassOf [
rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty :startDate ;
] ;
.
:SparqlAsk
rdf:type owl:Class ;
rdfs:subClassOf :LogEvent ;
.
:SparqlClearGraph
rdf:type owl:Class ;
rdfs:comment "clear graph" ;
rdfs:subClassOf :LogEvent ;
.
:SparqlConstruct
rdf:type owl:Class ;
rdfs:comment "logging sparql construct queries" ;
rdfs:subClassOf :LogEvent ;
rdfs:subClassOf [
rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty :sparqlquery ;
] ;
.
:SparqlDescribeEvent
rdf:type owl:Class ;
rdfs:comment "logging sparql describe events" ;
rdfs:subClassOf :LogEvent ;
rdfs:subClassOf [
rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty :sparqlquery ;
] ;
.
:SparqlSelectEvent
rdf:type owl:Class ;
rdfs:comment "logging sparql select events" ;
rdfs:subClassOf :LogEvent ;
rdfs:subClassOf [
rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty :sparqlquery ;
] ;
.
:SparqlSelectEvent_1
rdf:type :SparqlSelectEvent ;
:startDate "2023-12-29T18:42:50.456"^^xsd:dateTime ;
.
:SparqlUpdate
rdf:type owl:Class ;
rdfs:comment "logging sparql update events" ;
rdfs:subClassOf :LogEvent ;
rdfs:subClassOf [
rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty :sparqlquery ;
] ;
.
:amount_of_results
rdf:type owl:DatatypeProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:comment "amount of results when the query is succesfully executed" ;
rdfs:domain :LogEvent ;
rdfs:range xsd:integer ;
.
:by_user
rdf:type owl:FunctionalProperty ;
rdf:type owl:ObjectProperty ;
rdfs:comment "the user that has produced the query" ;
rdfs:domain :LogEvent ;
rdfs:range authentication:User ;
.
:endpoint
rdf:type owl:FunctionalProperty ;
rdf:type owl:ObjectProperty ;
rdfs:comment "endpoint that has executed the query" ;
rdfs:domain :LogEvent ;
rdfs:range [
rdf:type owl:Class ;
owl:unionOf (
:SparqlConstruct
:SparqlDescribeEvent
:SparqlSelectEvent
:SparqlUpdate
) ;
] ;
.
:executedQuery
rdf:type owl:DatatypeProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:comment "the actual sparql query that has been used in case the query has been rewritten by lock/unlock functionality" ;
rdfs:domain [
rdf:type owl:Class ;
owl:unionOf (
:SparqlConstruct
:SparqlDescribeEvent
:SparqlSelectEvent
:SparqlUpdate
) ;
] ;
rdfs:range xsd:string ;
.
:filtered_by
rdf:type owl:ObjectProperty ;
rdfs:comment "access rules that have had influence on the results of this query" ;
rdfs:domain :LogEvent ;
rdfs:range authorisation:AccessRule ;
.
:hasResults
rdf:type owl:DatatypeProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:comment "logs if the executed query actually has produced results" ;
rdfs:domain :LogEvent ;
rdfs:range xsd:boolean ;
.
:isFiltered
rdf:type owl:DatatypeProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:comment "true when the actually query is filtered by accessrules" ;
rdfs:domain [
rdf:type owl:Class ;
owl:unionOf (
:SparqlConstruct
:SparqlDescribeEvent
:SparqlSelectEvent
:SparqlUpdate
) ;
] ;
rdfs:range xsd:boolean ;
.
:processID
rdf:type owl:DatatypeProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:comment "process id of the process that has executed the query" ;
rdfs:domain :LogEvent ;
rdfs:range xsd:string ;
.
:processingtime
rdf:type owl:DatatypeProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:comment "the time it took to process the query in miliseconds" ;
rdfs:domain :LogEvent ;
rdfs:range xsd:long ;
.
:serverID
rdf:type owl:DatatypeProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:comment "server id that has processed the query" ;
rdfs:domain :LogEvent ;
rdfs:range xsd:string ;
.
:sparqlquery
rdf:type owl:DatatypeProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:comment "the actual sparql query" ;
rdfs:domain [
rdf:type owl:Class ;
owl:unionOf (
:SparqlConstruct
:SparqlDescribeEvent
:SparqlSelectEvent
:SparqlUpdate
) ;
] ;
rdfs:range xsd:string ;
.
:startDate
rdf:type owl:DatatypeProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:comment "timestamp when query is received" ;
rdfs:domain :LogEvent ;
rdfs:range xsd:dateTime ;
.