-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
081a9c1
commit 85da2b1
Showing
3 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
sparql-anything-it/src/test/resources/issues/issue334.sparql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# rdfize an archive (zip) of files. | ||
# parameter values: | ||
# -v zip: zip filename or URL | ||
# -v file: file regexp pattern (default ~.*~) | ||
# sparql-anything -q ../rdfize-zip.sparql -v zip=graphql-2023-01-24.zip > raw-rdf.ttl | ||
# See https://sparql-anything.readthedocs.io/en/latest/Configuration/#from-archive | ||
|
||
prefix bsdd: <http://bsdd.buildingsmart.org/def#> | ||
prefix xyz: <http://sparql.xyz/facade-x/data/> | ||
prefix fx: <http://sparql.xyz/facade-x/ns/> | ||
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#> | ||
|
||
construct { | ||
?s ?p ?o | ||
} where { | ||
service <x-sparql-anything:> { | ||
bind(coalesce(?__file,".*") as ?pattern) | ||
fx:properties fx:location "%%%LOCATION%%%" . | ||
fx:properties fx:archive.matches ?pattern. | ||
[] fx:anySlot ?file | ||
service <x-sparql-anything:media-type=application/json> { | ||
bind(str(bsdd:) as ?bsdd) | ||
fx:properties fx:namespace ?bsdd. | ||
fx:properties fx:location ?file. | ||
fx:properties fx:from-archive "%%%LOCATION%%%". | ||
fx:properties fx:use-rdfs-member true. | ||
?s ?p ?o | ||
} | ||
} | ||
} |
Binary file not shown.