Skip to content

Commit

Permalink
remove --suffix option from README, now defualt
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbr committed Mar 25, 2024
1 parent 7891b26 commit d53312e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ predicate they belong (for example, the predicates `osm2rdfgeom:envelope` or
### Step 3: Compute the spatial relations

```
cat spatialjoin.input.tsv | spatialjoin --suffix $' .\n'
cat spatialjoin.input.tsv | spatialjoin
```

Note that we could feed the geometries directly into `spatialjoin` as follows:

```
curl -s localhost:${PORT} -H "Accept: text/tab-separated-values" -H "Content-type: application/sparql-query" --data "PREFIX geo: <http://www.opengis.net/ont/geosparql#> SELECT ?osm_id ?geometry WHERE { ?osm_id geo:hasGeometry/geo:asWKT ?geometry }" | sed -E 's#<https://www.openstreetmap.org/(rel|way|node)(ation)?/([0-9]+)>\t"(.+)"\^\^<http:.*wktLiteral>#osm\1:\3\t\4#g' | sed 1d | spatialjoin --suffix $' .\n'
curl -s localhost:${PORT} -H "Accept: text/tab-separated-values" -H "Content-type: application/sparql-query" --data "PREFIX geo: <http://www.opengis.net/ont/geosparql#> SELECT ?osm_id ?geometry WHERE { ?osm_id geo:hasGeometry/geo:asWKT ?geometry }" | sed -E 's#<https://www.openstreetmap.org/(rel|way|node)(ation)?/([0-9]+)>\t"(.+)"\^\^<http:.*wktLiteral>#osm\1:\3\t\4#g' | sed 1d | spatialjoin
```

### Step 4: Rebuild the QLever index with the added triples
Expand Down

0 comments on commit d53312e

Please sign in to comment.