|
193 | 193 | }"
|
194 | 194 | #-be-cautious 'base-string #+be-cautious 'string)))
|
195 | 195 |
|
| 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 | + |
196 | 200 | ;;;; Scenario
|
197 | 201 | ;;;; Boot up a container using:
|
198 | 202 | ;;;; 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 | 496 | PREFIX mu: <http://mu.semte.ch/vocabularies/core/>
|
493 | 497 | INSERT DATA { <http://book-store.example.com/books/my-book> mu:uuid \"123\"^^xsd:string. }")
|
494 | 498 |
|
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 | + }"))) |
505 | 510 |
|
506 | 511 | (with-impersonation-for :jack
|
507 | 512 | ;; can insert some random content
|
|
0 commit comments