Skip to content

Commit

Permalink
Build QLever index and count the number of geometries
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannah Bast committed Sep 23, 2023
1 parent 078eb6c commit 5bac2ff
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
submodules: "recursive"

- name: Docker build
run: |
Expand All @@ -38,3 +38,10 @@ jobs:
docker run --rm -v $(pwd):/data osm2rdf /data/osm-malta.pbf -o /data/osm-malta.ttl
ls -l osm-malta.pbf osm-malta.ttl.bz2
docker run --rm -v $(pwd):/data stain/jena riot --validate /data/osm-malta.ttl.bz2
- name: Build QLever index and count the number of geometries
run: |
cd osm-malta
docker run -u $(id -u):$(id -g) -v $(pwd):/data -w /data --entrypoint bash adfreiburg/qlever -c "bzcat osm-malta.ttl.bz2 | IndexBuilderMain -F ttl -f - -i osm-malta"
docker run -d -p 7000:7000 -v $(pwd):/data -w /data --entrypoint bash adfreiburg/qlever -c "ServerMain -i /data/osm-malta -p 7000"
curl -s http://localhost:7000 --data-urlencode "query=PREFIX geo: <http://www.opengis.net/ont/geosparql#> SELECT (COUNT(?geometry) AS ?count) WHERE { ?osm_id geo:hasGeometry ?geometry }" | jq --exit-status .results.bindings[0].count.value

0 comments on commit 5bac2ff

Please sign in to comment.