Coverage report: /development/source/library/org/datagraph/spocq-shard/src/shell/service-description.lisp
| Kind | Covered | All | % |
| expression | 0 | 39 | 0.0 |
| branch | 0 | 0 | nil |
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: org.datagraph.spocq.implementation; -*-
3
(in-package :org.datagraph.spocq.implementation)
6
generate statistics, particularly as csv or html for use in monitor displays
8
sbcl --core sbcl-spocq.core
9
(sb-ext:save-lisp-and-die "service-description" :executable t :toplevel #'spocq.i::main-service-description)
11
sbcl --core sbcl-spocq.core
12
(sb-ext:save-lisp-and-die "spocq-shell" :executable t)
16
(defun main-service-description (&rest args &key
17
(query-parameters (sb-posix:getenv "QUERY_STRING"))
18
((:response-content-type *response-content-type*) mime:text/plain)
20
(handler-bind ((serious-condition
22
(log-stacktrace "Error in query thread: ~a -> ~a." query-parameters condition)
23
(format *standard-output* "<html><body><pre>~a</pre></body></html>~%" condition)
25
(return-from main-service-description))))
27
;; allow request query arguments to override the static script arguments
28
(with-command-line-configuration (:allow-other-keys t (append (parse-query-parameters query-parameters) args))
29
(setq *start-timestamp* (iso-time))
30
(initialize-spocq :title (or (getarg "--title") "spocqsvcdescription"))
31
(log-info "Start service-description ~a." *start-timestamp*)
32
(with-open-repository ((repository *repository-id*))
33
(send-response-message :|service-description|
34
(service-description-solutions (repository-service-description *repository-id*))
36
*response-content-type*)))))
41
rapper -i ntriples --count 'http://admin.dydra.com/cgi-bin/service-description.sh?repository-id=statistics/de4.dydra.com'
42
curl 'http://admin.dydra.com/cgi-bin/service-description.sh?repository-id=statistics/de4.dydra.com'
43
QUERY_STRING='repository-id=statistics/de1.dydra.com' ./service-description.sh
45
(lookup-repository-id :account-name "jhacker" :repository-name "statistics/de1.dydra.com")
46
(lookup-repository-id :account-name "jhacker" :repository-name "basic-term-1")
48
(lookup-repository-names "6/1107")
50
(repository-provenance-repository (repository "jhacker/basic-term-1"))
51
(main-service-description :query-parameters "repository=jhacker/basic-term-1")
53
<http://wulff.dev/jhacker/basic-term-1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/sparql-service-description#Service> .
54
<http://wulff.dev/jhacker/basic-term-1> <http://www.w3.org/ns/sparql-service-description#endpoint> <http://wulff.dev/jhacker/basic-term-1> .
55
<http://wulff.dev/jhacker/basic-term-1> <http://www.w3.org/ns/sparql-service-description#defaultDataset> _:dataset1 .
56
_:dataset1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/sparql-service-description#Dataset> .
57
_:dataset1 <http://www.w3.org/ns/sparql-service-description#defaultGraph> <urn:dydra:default> .
58
<http://wulff.dev/jhacker/basic-term-1> <http://www.w3.org/ns/sparql-service-description#availableGraphs> _:available2 .
59
_:available2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/sparql-service-description#GraphCollection> .
60
_:available2 <http://www.w3.org/ns/sparql-service-description#namedGraph> <urn:dydra:default> .
61
<urn:dydra:default> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/sparql-service-description#Graph> .
62
<urn:dydra:default> <http://www.w3.org/ns/sparql-service-description#name> <urn:dydra:default> .
63
<urn:dydra:default> <http://rdfs.org/ns/void#triples> "0"^^<http://www.w3.org/2001/XMLSchema#integer> .
64
_:available2 <http://www.w3.org/ns/sparql-service-description#namedGraph> <urn:dydra:named> .
65
<urn:dydra:named> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/sparql-service-description#Graph> .
66
<urn:dydra:named> <http://www.w3.org/ns/sparql-service-description#name> <urn:dydra:named> .
67
_:available2 <http://www.w3.org/ns/sparql-service-description#namedGraph> <urn:dydra:all> .
68
<urn:dydra:all> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/sparql-service-description#Graph> .
69
<urn:dydra:all> <http://www.w3.org/ns/sparql-service-description#name> <urn:dydra:all> .
70
<http://wulff.dev/jhacker/basic-term-1> <http://www.w3.org/ns/sparql-service-description#resultFormat> <http://www.w3.org/ns/formats/RDF_XML> .
71
<http://wulff.dev/jhacker/basic-term-1> <http://www.w3.org/ns/sparql-service-description#resultFormat> <http://www.w3.org/ns/formats/SPARQL_Results_JSON> .
72
<http://wulff.dev/jhacker/basic-term-1> <http://www.w3.org/ns/sparql-service-description#resultFormat> <http://www.w3.org/ns/formats/SPARQL_Results_CSV> .
73
<http://wulff.dev/jhacker/basic-term-1> <http://www.w3.org/ns/sparql-service-description#inputFormat> <http://www.w3.org/ns/formats/N-Triples> .
74
<http://wulff.dev/jhacker/basic-term-1> <http://www.w3.org/ns/sparql-service-description#inputFormat> <http://www.w3.org/ns/formats/RDF_XML> .
75
<http://wulff.dev/jhacker/basic-term-1> <http://www.w3.org/ns/sparql-service-description#inputFormat> <http://www.w3.org/ns/formats/Turtle> .
76
<http://wulff.dev/jhacker/basic-term-1> <http://www.w3.org/ns/sparql-service-description#supportedLanguage> <http://www.w3.org/ns/sparql-service-description#SPARQL10Query> .
77
<http://wulff.dev/jhacker/basic-term-1> <http://www.w3.org/ns/sparql-service-description#supportedLanguage> <http://www.w3.org/ns/sparql-service-description#SPARQL11Query> .
78
<http://wulff.dev/jhacker/basic-term-1> <http://www.w3.org/ns/sparql-service-description#supportedLanguage> <http://www.w3.org/ns/sparql-service-description#SPARQL11Update> .
82
(repository-provenance-repository (repository "jhacker/726-base"))
83
(setf-repository-service-description nil (repository "jhacker/726-base"))
84
(main-service-description :query-parameters "repository=jhacker/726-base")
86
<http://wulff.dev/jhacker/726-base> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/sparql-service-description#Service> .
87
<http://wulff.dev/jhacker/726-base> <http://www.w3.org/ns/sparql-service-description#endpoint> <http://wulff.dev/jhacker/726-base> .
88
<http://wulff.dev/jhacker/726-base> <http://www.w3.org/ns/prov#hasProvenanceService> <http://wulff.dev/jhacker/726-provenance> .
89
# only if there has been a revision
90
<http://wulff.dev/jhacker/726-base> <http://www.w3.org/ns/prov#hasProvenance> <http://wulff.dev/jhacker/726-provenance?graph=urn:dydra:revision:> .
91
<http://wulff.dev/jhacker/726-base> <http://www.w3.org/ns/sparql-service-description#defaultDataset> _:dataset9 .
92
_:dataset9 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/sparql-service-description#Dataset> .
93
_:dataset9 <http://www.w3.org/ns/sparql-service-description#defaultGraph> <urn:dydra:default> .
94
<http://wulff.dev/jhacker/726-base> <http://www.w3.org/ns/sparql-service-description#availableGraphs> _:available10 .
95
_:available10 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/sparql-service-description#GraphCollection> .
96
_:available10 <http://www.w3.org/ns/sparql-service-description#namedGraph> <urn:dydra:default> .
97
<urn:dydra:default> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/sparql-service-description#Graph> .
98
<urn:dydra:default> <http://www.w3.org/ns/sparql-service-description#name> <urn:dydra:default> .
99
<urn:dydra:default> <http://rdfs.org/ns/void#triples> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
100
_:available10 <http://www.w3.org/ns/sparql-service-description#namedGraph> <urn:dydra:named> .
101
<urn:dydra:named> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/sparql-service-description#Graph> .
102
<urn:dydra:named> <http://www.w3.org/ns/sparql-service-description#name> <urn:dydra:named> .
103
_:available10 <http://www.w3.org/ns/sparql-service-description#namedGraph> <urn:dydra:all> .
104
<urn:dydra:all> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/sparql-service-description#Graph> .
105
<urn:dydra:all> <http://www.w3.org/ns/sparql-service-description#name> <urn:dydra:all> .
106
<http://wulff.dev/jhacker/726-base> <http://www.w3.org/ns/sparql-service-description#resultFormat> <http://www.w3.org/ns/formats/RDF_XML> .
107
<http://wulff.dev/jhacker/726-base> <http://www.w3.org/ns/sparql-service-description#resultFormat> <http://www.w3.org/ns/formats/SPARQL_Results_JSON> .
108
<http://wulff.dev/jhacker/726-base> <http://www.w3.org/ns/sparql-service-description#resultFormat> <http://www.w3.org/ns/formats/SPARQL_Results_CSV> .
109
<http://wulff.dev/jhacker/726-base> <http://www.w3.org/ns/sparql-service-description#inputFormat> <http://www.w3.org/ns/formats/N-Triples> .
110
<http://wulff.dev/jhacker/726-base> <http://www.w3.org/ns/sparql-service-description#inputFormat> <http://www.w3.org/ns/formats/RDF_XML> .
111
<http://wulff.dev/jhacker/726-base> <http://www.w3.org/ns/sparql-service-description#inputFormat> <http://www.w3.org/ns/formats/Turtle> .
112
<http://wulff.dev/jhacker/726-base> <http://www.w3.org/ns/sparql-service-description#supportedLanguage> <http://www.w3.org/ns/sparql-service-description#SPARQL10Query> .
113
<http://wulff.dev/jhacker/726-base> <http://www.w3.org/ns/sparql-service-description#supportedLanguage> <http://www.w3.org/ns/sparql-service-description#SPARQL11Query> .
114
<http://wulff.dev/jhacker/726-base> <http://www.w3.org/ns/sparql-service-description#supportedLanguage> <http://www.w3.org/ns/sparql-service-description#SPARQL11Update> .