Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test map widget on RiC-O data #566

Closed
tfrancart opened this issue Mar 6, 2024 · 4 comments
Closed

Test map widget on RiC-O data #566

tfrancart opened this issue Mar 6, 2024 · 4 comments
Assignees

Comments

@tfrancart
Copy link
Contributor

Data file provided by @florenceclavaud :
Exemple_formats_coordonnees.txt

(1. write RiC-O file, 2. test map widget)

@tfrancart tfrancart self-assigned this Mar 6, 2024
@florenceclavaud
Copy link

The coordinates are those of the first place described here: https://github.com/ArchivesNationalesFR/Referentiels/blob/main/lieux/rdf/FRAN_communes_01.rdf (L'Abergement-Clémenciat (Ain)). We did not release the full version of the file, as the whole dataset would be really huge, but we have the geometries of all French administrative areas, using the format of option 1. And we are also working on Parisian streets. So we would be happy to know if the third option in the txt file is correct (we believe it is) and works with Sparnatural; - in such a case we will fix our datasets. See also ArchivesNationalesFR/Referentiels#6.

@tfrancart
Copy link
Contributor Author

geoJSONLiteral does exists : https://opengeospatial.github.io/ogc-geosparql/geosparql11/spec.html#_geojson
I don't see any occurrence of it in GraphDB, so this may not be supported.

@tfrancart
Copy link
Contributor Author

A MULTIPOLYGON in WKT does require 3 parenthesis. There was 2 problems with the data :

  • Problem 1 : each pair of lat/long in the data was put in between parenthesis, while they should not :
    • MULTIPOLYGON(((2.296869638468005 48.8735484315143), (2.2968813746201167 48.87354478436745), ... should be instead MULTIPOLYGON(((2.296869638468005 48.8735484315143, 2.2968813746201167 48.87354478436745,...
    • Note there is 3 parenthesis at the beginning, but each pair of lat/long is not in parenthesis
  • Problem 2 : The polygon described should be closed, and the last pair of lat/long should be a copy of the first pair :
    • MULTIPOLYGON((2.296869638468005 48.8735484315143, 2.2968813746201167 48.87354478436745, 2.296882298769853 48.87354601290201, /* snip */, 2.296869638468005 48.8735484315143)))
    • Note how the very last pair of lat/long is the same as the first one

Here is a working example :
test-coordinates-thomas.zip

I can confirm that Sparnatural map widget works on this test file

@florenceclavaud
Copy link

OK, thanks a lot @tfrancart! This will allow us to move forward. And it is great to know that Sparnatural will be able to process those data.
I think I also have found the spec where all this is defined, with examples - which we were missing in fact.
@MZrhal, you can move on with the Parisian streets now, and we will work on the other places later on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants