Skip to content

Commit cf00ccd

Browse files
committed
Make geosparql tests optional
These don't run in a build of Virtuoso without geosparql support and will therefore be confusing during quick tests.
1 parent 5dffbe9 commit cf00ccd

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

test/scenario.lisp

+15-10
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@
193193
}"
194194
#-be-cautious 'base-string #+be-cautious 'string)))
195195

196+
(defparameter *run-geosparql-tests* nil
197+
"These require geosparql support. Should work with nbittich/virtuoso at
198+
this point and likely a redpencil image too.")
199+
196200
;;;; Scenario
197201
;;;; Boot up a container using:
198202
;;;; docker run --name virtuoso -p 8891:8890 -e SPARQL_UPDATE=true -e "DEFAULT_GRAPH=http://mu.semte.ch/application" redpencil/virtuoso:1.2.0-rc.1; dr rm virtuoso
@@ -492,16 +496,17 @@
492496
PREFIX mu: <http://mu.semte.ch/vocabularies/core/>
493497
INSERT DATA { <http://book-store.example.com/books/my-book> mu:uuid \"123\"^^xsd:string. }")
494498

495-
(server:execute-query-for-context
496-
"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
497-
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
498-
PREFIX mu: <http://mu.semte.ch/vocabularies/core/>
499-
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
500-
INSERT DATA {
501-
<http://book-store.example.com/geometries/a>
502-
a geo:Geometry;
503-
geo:asWKT \"<https://www.opengis.net/def/crs/EPSG/0/31370> POINT (155822.2 132723.18)\"^^<http://www.opengis.net/ont/geosparql#wktLiteral>.
504-
}"))
499+
(when *run-geosparql-tests*
500+
(server:execute-query-for-context
501+
"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
502+
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
503+
PREFIX mu: <http://mu.semte.ch/vocabularies/core/>
504+
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
505+
INSERT DATA {
506+
<http://book-store.example.com/geometries/a>
507+
a geo:Geometry;
508+
geo:asWKT \"<https://www.opengis.net/def/crs/EPSG/0/31370> POINT (155822.2 132723.18)\"^^<http://www.opengis.net/ont/geosparql#wktLiteral>.
509+
}")))
505510

506511
(with-impersonation-for :jack
507512
;; can insert some random content

0 commit comments

Comments
 (0)