Coverage report: /development/source/library/org/datagraph/spocq-shard/src/core/spin-package.lisp

KindCoveredAll%
expression08 0.0
branch00nil
Key
Not instrumented
Conditionalized out
Executed
Not executed
 
Both branches taken
One branch taken
Neither branch taken
1
 ;;; -*- Mode: lisp; Syntax: ansi-common-lisp; Base: 10; Package: cl-user; -*-
2
 
3
 (in-package :cl-user)
4
 
5
 ;;;  This file is the package definition for the 'org.datagraph.spocq' api
6
 ;;;
7
 ;;;  Copyright 2014 [james anderson](mailto:james.anderson@setf.de) All Rights Reserved
8
 ;;;
9
 ;;; based on the rapper output, rather than the original from spinrdf.org
10
 ;;; sp
11
 ;;; fgrep 'rdf:about=' spl.rdf | fgrep 'http://spinrdf.org/sp#' | sed 's,.*#,",' | sed 's,">.*,",' | sort | uniq
12
 ;;; fgrep 'http://spinrdf.org/sp#' spl.rdf | sed 's,.*#,",' | sed 's,"/>.*,",' | sort | uniq
13
 ;;;
14
 ;;; spl
15
 ;;; fgrep 'rdf:ID=' spl.rdf | sed 's,.*ID=",",' | sed 's,">.*,",' | sort | uniq
16
 ;;;
17
 ;;; arg
18
 ;;; fgrep 'rdf:about="http://spinrdf.org/arg#' ~/imports/spl.rdf | sed 's,.*#,",' | sed 's,">.*,",' | sort | uniq
19
 ;;;
20
 ;;; (load "LIBRARY:org;datagraph;spocq;src;extensions;spin;package.lisp")
21
 
22
 (defpackage "http://spinrdf.org/arg#"
23
   (:use)
24
   (:export "max"
25
            "maxCount"
26
            "min"
27
            "minCount"
28
            "otherProperty"
29
            "pattern"
30
            "property"
31
            ))
32
 
33
 (defpackage "http://spinrdf.org/spl#"
34
   (:use )
35
   (:nicknames "spl" :spl)
36
   (:export "AllArguments"
37
            "Argument"
38
            "Attribute"
39
            "BooleanFunctions"
40
            "class"
41
            "ConstraintTemplate"
42
            "ConstraintTemplates"
43
            "ConstructDefaultValues"
44
            "count"
45
            "CountPropertyConstraintTemplates"
46
            "DateFunctions"
47
            "defaultValue"
48
            "ExistencePropertyPairConstraint"
49
            "hasArgument"
50
            "hasValue"
51
            "hasValueOfType"
52
            "InferDefaultValue"
53
            "instance"
54
            "instanceOf"
55
            "isUntypedLiteral"
56
            "MathematicalFunctions"
57
            "max"
58
            "maxCount"
59
            "min"
60
            "minCount"
61
            "MiscFunctions"
62
            "NonExistencePropertyPairConstraint"
63
            "object"
64
            "objectCount"
65
            "ObjectCountPropertyConstraint"
66
            "objectInGraph"
67
            "objectSubProp"
68
            "OntologyFunctions"
69
            "optional"
70
            "predicate"
71
            "PropertyConstraintTemplates"
72
            "PropertyPairConstraintTemplates"
73
            "RangePropertyConstraint"
74
            "RegexPropertyConstraint"
75
            "relevantPropertyAtClass"
76
            "RunTestCases"
77
            "SPINOverview"
78
            "StringFunctions"
79
            "subClassOf"
80
            "subject"
81
            "subjectCount"
82
            "subPropertyOf"
83
            "TestCase"
84
            "testExpression"
85
            "Test-instanceOf-lingualString"
86
            "Test-instanceOf-rdfsClass"
87
            "Test-instanceOf-rdfsClass-false"
88
            "Test-instanceOf-rdfsClassInheritance"
89
            "Test-instanceOf-rdfsLiteral"
90
            "Test-instanceOf-rdfsLiteral-false"
91
            "Test-instanceOf-typedString"
92
            "Test-instanceOf-typedString-false"
93
            "Test-instanceOf-untypedString"
94
            "Test-object-labelOfArgument"
95
            "Test-object-noValue"
96
            "testResult"
97
            "UnionTemplate"
98
            "UntypedObjectPropertyConstraint"
99
            "URIFunctions"
100
            "valueType"
101
            ))
102
 
103
 (defpackage "http://spinrdf.org/spin#"
104
   (:use )
105
   (:nicknames "spin")
106
   (:export "AskTemplate"
107
            "AskTemplates"
108
            "Column"
109
            "ConstraintViolation"
110
            "ConstraintViolationLevel"
111
            "ConstructTemplate"
112
            "ConstructTemplates"
113
            "Error"
114
            "Fatal"
115
            "Function"
116
            "Functions"
117
            "Info"
118
            "LibraryOntology"
119
            "MagicProperties"
120
            "MagicProperty"
121
            "Module"
122
            "Modules"
123
            "Rule"
124
            "RuleProperty"
125
            "SelectTemplate"
126
            "SelectTemplates"
127
            "SystemClass"
128
            "TableDataProvider"
129
            "Template"
130
            "Templates"
131
            "UpdateTemplate"
132
            "UpdateTemplates"
133
            "Warning"
134
            "_arg1"
135
            "_arg2"
136
            "_arg3"
137
            "_arg4"
138
            "_arg5"
139
            "_this"
140
            "abstract"
141
            "ask"
142
            "body"
143
            "cachable"
144
            "column"
145
            "columnIndex"
146
            "columnType"
147
            "columnWidth"
148
            "command"
149
            "constraint"
150
            "construct"
151
            "constructor"
152
            "eval"
153
            "fix"
154
            "imports"
155
            "labelTemplate"
156
            "nextRuleProperty"
157
            "private"
158
            "query"
159
            "returnType"
160
            "rule"
161
            "rulePropertyMaxIterationCount"
162
            "select"
163
            "symbol"
164
            "systemProperty"
165
            "thisUnbound"
166
            "update"
167
            "violationLevel"
168
            "violationPath"
169
            "violationRoot"
170
            "violationSource"
171
            "violationValue"
172
            ))
173
 
174
 (defpackage :org.datagraph.spocq.inference
175
   (:use )
176
   (:nicknames :spocq.in)
177
   (:documentation "The home package for definitions trnslated from the various spin schema")
178
   (:export
179
    :construct
180
    :constrain
181
    :define
182
    :pattern-definition
183
    :statement-definition
184
    :infer
185
    :read-definition
186
    ))
187
 
188
 
189
 (defpackage "http://spinrdf.org/sp#"
190
   (:use)
191
   (:nicknames "sp" :sp)
192
   (:import-from "http://spinrdf.org/spin#"
193
                "systemProperty"
194
                "query"
195
                )
196
   (:export "Aggregation"
197
            "AltPath"
198
            "Asc"
199
            "Ask"
200
            "Avg"
201
            "Bind"
202
            "Clear"
203
            "Command"
204
            "Construct"
205
            "Count"
206
            "Create"
207
            "Delete"
208
            "DeleteData"
209
            "DeleteWhere"
210
            "Desc"
211
            "Describe"
212
            "Drop"
213
            "Element"
214
            "ElementGroup"
215
            "ElementList"
216
            "Exists"
217
            "Filter"
218
            "GroupConcat"
219
            "Insert"
220
            "InsertData"
221
            "Let"
222
            "Load"
223
            "Max"
224
            "Min"
225
            "Minus"
226
            "ModPath"
227
            "ModuleCall"
228
            "Modify"
229
            "NamedGraph"
230
            "NotExists"
231
            "Optional"
232
            "OrderByCondition"
233
            "Path"
234
            "Query"
235
            "ReverseLinkPath"
236
            "ReversePath"
237
            "Sample"
238
            "Select"
239
            "SeqPath"
240
            "Service"
241
            "SubQuery"
242
            "Sum"
243
            "SystemClass"
244
            "Triple"
245
            "TriplePath"
246
            "TriplePattern"
247
            "TripleTemplate"
248
            "Tuple"
249
            "Union"
250
            "Update"
251
            "UUID"
252
            "Values"
253
            "Variable"
254
            "abs"
255
            "add"
256
            "all"
257
            "and"
258
            "arg"
259
            "arg1"
260
            "arg2"
261
            "arg3"
262
            "arg4"
263
            "arg5"
264
            "arg6"
265
            "arg7"
266
            "arg8"
267
            "arg9"
268
            "as"
269
            "bindings"
270
            "bnode"
271
            "bound"
272
            "ceil"
273
            "coalesce"
274
            "concat"
275
            "contains"
276
            "datatype"
277
            "day"
278
            "default"
279
            "deletePattern"
280
            "distinct"
281
            "divide"
282
            "document"
283
            "elements"
284
            "encode_for_uri"
285
            "eq"
286
            "exists"
287
            "expression"
288
            "floor"
289
            "from"
290
            "fromNamed"
291
            "ge"
292
            "graphIRI"
293
            "graphNameNode"
294
            "groupBy"
295
            "gt"
296
            "having"
297
            "hours"
298
            "if"
299
            "in"
300
            "insertPattern"
301
            "into"
302
            "iri"
303
            "isBlank"
304
            "isIRI"
305
            "isLiteral"
306
            "isNumeric"
307
            "isURI"
308
            "lang"
309
            "langMatches"
310
            "lcase"
311
            "le"
312
            "limit"
313
            "lt"
314
            "max"
315
            "maxCount"
316
            "md5"
317
            "min"
318
            "minCount"
319
            "minutes"
320
            "modMax"
321
            "modMin"
322
            "month"
323
            "mul"
324
            "named"
325
            "ne"
326
            "node"
327
            "not"
328
            "notExists"
329
            "notIn"
330
            "now"
331
            "object"
332
            "offset"
333
            "optional"
334
            "or"
335
            "orderBy"
336
            "path"
337
            "path1"
338
            "path2"
339
            "predicate"
340
            "query"
341
            "rand"
342
            "reduced"
343
            "regex"
344
            "replace"
345
            "resultNodes"
346
            "resultVariables"
347
            "round"
348
            "sameTerm"
349
            "seconds"
350
            "separator"
351
            "serviceURI"
352
            "sha1"
353
            "sha256"
354
            "sha384"
355
            "sha512"
356
            "silent"
357
            "str"
358
            "strafter"
359
            "strbefore"
360
            "strdt"
361
            "strends"
362
            "strlang"
363
            "strlen"
364
            "strstarts"
365
            "struuid"
366
            "sub"
367
            "subPath"
368
            "substr"
369
            "subject"
370
            "systemProperty"
371
            "templates"
372
            "text"
373
            "timezone"
374
            "tz"
375
            "ucase"
376
            "unaryMinus"
377
            "unaryPlus"
378
            "uri"
379
            "using"
380
            "usingNamed"
381
            "values"
382
            "varName"
383
            "varNames"
384
            "variable"
385
            "where"
386
            "with"
387
            "year"
388
            ))
389
 
390
 (modpackage :org.datagraph.spocq.evaluation
391
   (:export :initialize-resource
392
            :constrain-resource))
393
 
394
 (eval-when (:compile-toplevel :load-toplevel :execute)
395
   (loop for package in  (list "http://spinrdf.org/spl#"
396
                               "http://spinrdf.org/spin#"
397
                               "http://spinrdf.org/sp#"
398
                               "http://spinrdf.org/arg#")
399
     do (cl-user::add-iri-package package)
400
     ;; now part of core definitions do (spocq.i::initialize-package-uri-symbols package)
401
     )
402
   )