-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
About issue SPARQL-Anything/sparql.anything#334
- Loading branch information
Showing
10 changed files
with
135 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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,35 @@ | ||
# 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:media-type=application/json> { | ||
service <x-sparql-anything:> { | ||
bind(coalesce(?__file,".*") as ?pattern) | ||
fx:properties fx:location "./issue334-2.tar" . | ||
fx:properties fx:archive.matches ".*\\..*". | ||
[] fx:anySlot ?file | ||
} | ||
# Iter | ||
bind(str(bsdd:) as ?bsdd) | ||
fx:properties fx:namespace ?bsdd. | ||
fx:properties fx:location ?file. | ||
fx:properties fx:from-archive "./issue334-2.tar". | ||
fx:properties fx:use-rdfs-member true. | ||
?s ?p ?o | ||
|
||
|
||
} | ||
} |
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,34 @@ | ||
# 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 { | ||
# Step 2 | ||
service <x-sparql-anything:media-type=application/json> { | ||
# Step 1 | ||
service <x-sparql-anything:> { | ||
bind(coalesce(?__file,".*") as ?pattern) | ||
fx:properties fx:location "./issue334.tar" . | ||
fx:properties fx:archive.matches ".*\\.[^\\.]*$". | ||
[] fx:anySlot ?file | ||
} | ||
bind(str(bsdd:) as ?bsdd) | ||
fx:properties fx:namespace ?bsdd. | ||
fx:properties fx:location ?file. | ||
fx:properties fx:from-archive "./issue334.tar". | ||
fx:properties fx:use-rdfs-member true. | ||
?s ?p ?o | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
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 "./issue334.tar" . | ||
fx:properties fx:archive.matches ".*". # This expression is matching also directories | ||
[] 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 "./issue334.tar". | ||
fx:properties fx:use-rdfs-member true. | ||
?s ?p ?o | ||
} | ||
} | ||
} |
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 "./issue334.tar" . | ||
fx:properties fx:archive.matches ".*". | ||
[] 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 "./issue334.tar". | ||
fx:properties fx:use-rdfs-member true. | ||
?s ?p ?o | ||
} | ||
} | ||
} |
Binary file not shown.
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 @@ | ||
{"a":"b", "c":"d"} |
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 @@ | ||
{"a":"b", "c":"d"} |