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

Incomplete output when using "output-no-compress" option #93

Open
nicolano opened this issue Aug 20, 2024 · 2 comments
Open

Incomplete output when using "output-no-compress" option #93

nicolano opened this issue Aug 20, 2024 · 2 comments

Comments

@nicolano
Copy link

When using the "out-no-compress" option to convert a single node to ttl, the output is missing triples and contains only the prefixes. Without this option everything works as expected.

Input:

<osm version="0.6" generator="CGImap 0.9.3 (286383 spike-07.openstreetmap.org)" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
 <node id="1" visible="true" version="37" changeset="153676518" timestamp="2024-07-07T19:48:37Z" user="tyr_asd" uid="115612" lat="42.7957187" lon="13.5690032">
  <tag k="communication:microwave" v="yes"/>
  <tag k="communication:radio" v="fm"/>
  <tag k="description" v="Radio Subasio"/>
  <tag k="frequency" v="105.5 MHz"/>
  <tag k="man_made" v="mast"/>
  <tag k="name" v="Monte Piselli - San Giacomo"/>
  <tag k="note" v="This is the very first node on OpenStreetMap."/>
  <tag k="tower:construction" v="lattice"/>
  <tag k="tower:type" v="communication"/>
 </node>
</osm>

Expected output (without "out-no-compress" option):

@prefix osmm: <https://www.openstreetmap.org/meta/> .
@prefix osmway: <https://www.openstreetmap.org/way/> .
@prefix osmt: <https://www.openstreetmap.org/wiki/Key:> .
@prefix osmrel: <https://www.openstreetmap.org/relation/> .
@prefix osmnode: <https://www.openstreetmap.org/node/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix osm: <https://www.openstreetmap.org/> .
@prefix ogc: <http://www.opengis.net/rdf#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix wd: <http://www.wikidata.org/entity/> .
@prefix geo: <http://www.opengis.net/ont/geosparql#> .
osmnode:1 rdf:type osm:node .
osmnode:1 geo:hasGeometry "POINT(13.5690032 42.7957187)"^^geo:wktLiteral .
osmnode:1 osmt:tower:type "communication" .
osmnode:1 osmt:tower:construction "lattice" .
osmnode:1 osmt:note "This is the very first node on OpenStreetMap." .
osmnode:1 osmt:name "Monte Piselli - San Giacomo" .
osmnode:1 osmt:frequency "105.5 MHz" .
osmnode:1 osmt:description "Radio Subasio" .
osmnode:1 osmt:communication:radio "fm" .
osmnode:1 osmt:man_made "mast" .
osmnode:1 osmt:communication:microwave "yes" .
osmnode:1 osmm:facts "9"^^xsd:integer .

Actual Output (with "out-no-compress" option):

@prefix osmm: <https://www.openstreetmap.org/meta/> .
@prefix osmway: <https://www.openstreetmap.org/way/> .
@prefix osmt: <https://www.openstreetmap.org/wiki/Key:> .
@prefix osmrel: <https://www.openstreetmap.org/relation/> .
@prefix osmnode: <https://www.openstreetmap.org/node/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix osm: <https://www.openstreetmap.org/> .
@prefix ogc: <http://www.opengis.net/rdf#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix wd: <http://www.wikidata.org/entity/> .
@prefix geo: <http://www.opengis.net/ont/geosparql#> .
@patrickbr
Copy link
Member

Thank you for noticing this. We are currently in the process of rewriting the output and the computation of geometric relations, which should also fix this issue.

Can you try if everything works as expected with the use-libspatialjoin branch?

@nicolano
Copy link
Author

Unfortunately, I was unable to build the 'use-libspatialjoin' branch due to some strange linking errors regarding the library. I will have another go at it at a later date.

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