ad-freiburg / qlever-petrimaps

11 stars 3 forks source link

Objets not displayed #15

Open NicoLaval opened 2 months ago

NicoLaval commented 2 months ago

Hi,

First, thanks a lot for building a so nice stack as Qlever.

I have a qlever instance and I try to display geo Multipolygons with petrimaps. Because of my strange predicates in my sample data, I updated cache queries.

When I run:

SELECT ?area ?geometry  WHERE {
  ?area <http://data.ign.fr/def/geometrie#geometry>/<http://www.opengis.net/ont/geosparql#asWKT> ?geometry .
}

Results seem to be close to those produced on your demo instance with this query:

PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX osmkey: <https://www.openstreetmap.org/wiki/Key:>
PREFIX ogc: <http://www.opengis.net/rdf#>
PREFIX osmrel: <https://www.openstreetmap.org/relation/>
SELECT ?osm_id ?hasgeometry WHERE {
  osmrel:1960198 ogc:sfContains ?osm_id .
  ?osm_id geo:hasGeometry/geo:asWKT ?hasgeometry .
  ?osm_id osmkey:building ?building .
}

The only difference is that your polygons are tagged by wktliteral type. I didn't find reference to that in the source code, so I guess it's not me issue.

When I run my query in petrimaps, count query in cache seems to be good:

map-ign-1  | PREFIX ign: <http://data.ign.fr/def/geometrie#> SELECT (COUNT(?geometry) as ?count) WHERE {  ?osm_id ign:geometry ?geometry }
map-ign-1  | [2024-09-12 09:13:10.323] INFO : [GEOMCACHE] Total request size: 141296

When I paste my simple query in URL params, results are presents:

map-ign-1  | [2024-09-12 09:13:10.975] INFO : [GEOMCACHE] Query is PREFIX ign: <http://data.ign.fr/def/geometrie#> SELECT ?geometry WHERE { ?osm_id ign:geometry ?geometry } INTERNAL SORT BY ?geometry
map-ign-1  | [2024-09-12 09:13:10.975] INFO : [GEOMCACHE] Binary ID query URL is https://qlever-server-ign.lab.sspcloud.fr/?send=18446744073709551615&query=PREFIX%20ign%3A%20%3Chttp%3A%2F%2Fdata.ign.fr%2Fdef%2Fgeometrie%23%3E%20SELECT%20%3Fgeometry%20WHERE%20%7B%20%3Fosm_id%20ign%3Ageometry%20%3Fgeometry%20%7D%20INTERNAL%20SORT%20BY%20%3Fgeometry%20LIMIT%2018446744073709551615%20OFFSET%200
map-ign-1  | [2024-09-12 09:13:11.090] INFO : [GEOMCACHE] @ row 0 (0.00%, 0 points, 0 (open) polygons)
map-ign-1  | [2024-09-12 09:13:11.252] INFO : [GEOMCACHE] Received 141296 rows

But I got 0 object:

map-ign-1  | [2024-09-12 09:13:11.259] INFO : [REQUESTOR] Requesting IDs for query SELECT ?a ?shape WHERE {
map-ign-1  |   ?a <http://data.ign.fr/def/geometrie#geometry> ?geometry .
map-ign-1  |   ?geometry <http://www.opengis.net/ont/geosparql#asWKT> ?shape
map-ign-1  | }
map-ign-1  | [2024-09-12 09:13:11.913] INFO : [REQUESTOR] Done, have 141274 ids in total.
map-ign-1  | [2024-09-12 09:13:11.913] INFO : [REQUESTOR] Sorting results by qlever ID...
map-ign-1  | [2024-09-12 09:13:11.922] INFO : [REQUESTOR] ... done
map-ign-1  | [2024-09-12 09:13:11.922] INFO : [REQUESTOR] Retrieving geoms from cache...
map-ign-1  | [2024-09-12 09:13:11.923] INFO : [REQUESTOR] ... done, got 0 objects.

Do you have any idea of the mistake?

NicoLaval commented 2 months ago

Update.

Always 0 object displayed, but when I export as GeoJson I have my data.

patrickbr commented 2 months ago

Could you try again with the latest master? We just fixed an issue with the WKT parser.

(The GeoJSON export passes the data through from QLever, so was not affected by this).

NicoLaval commented 1 month ago

Sorry, I didn't succeed to build docker image now:

ERROR: failed to solve: process "/bin/sh -c mkdir build && cd build && cmake .. && make -j8" did not complete successfully: exit code: 1
ludovicm67 commented 6 days ago

Sorry, I didn't succeed to build docker image now:

ERROR: failed to solve: process "/bin/sh -c mkdir build && cd build && cmake .. && make -j8" did not complete successfully: exit code: 1

@NicoLaval I think that the comment here would be useful for you: https://github.com/ad-freiburg/qlever-petrimaps/issues/18#issuecomment-2497413330