0

I have a question regarding the retrieval of the house numbers from Open Street Map through the Linked Geo Data sparql endpoint:

If I run a query to select all the buildings which have a house number located in the city of, for example, of Esino Lario I get only 11 results whereas in OSM seems that a lot of building of that village have explicitly indicated a housenumber (compare the query result with the actual view from OSM).

Even if i expand my search to the whole world broadening the research to include all possibilities I get only 1,176,404 results which seems not reasonable at all (here the query result).

The queries used are the following:

Select *
Where {
?s
    <http://linkedgeodata.org/ontology/addr%3Acity> "Esino Lario";
    <http://linkedgeodata.org/ontology/addr%3Ahousenumber> ?housenumber.
}

and

Select count(?housenumber ) as ?n
Where { ?s  <http://linkedgeodata.org/ontology/addr%3Ahousenumber> ?housenumber }

Seems that the LGD database is not complete or not updated at Jan 2016 as declared. Or, which is more plausible, I am doing some bad mistakes in the query or I do not understand properly the ontology used.

Can somebody please help me unravel this mystery?

ffa
  • 747
  • 1
  • 6
  • 14
  • Did you try to ask the Linked Geo Data people whether they include all related OSM data? Is querying OSM data directly an option for you? E.g. by using [Overpass API](https://wiki.openstreetmap.org/wiki/Overpass_API). – scai Feb 04 '16 at 10:53
  • Thank you @scai for your contribution. I've tried to write in their google group, but is not very frequented and I have not yet received any response. I've learned from experience that stackoverflow is often the best choice because is by far the most popular. Using directly OSM form me is feasible but not convenient. A 5-star data source for OSM would simplify a lot my application – ffa Feb 04 '16 at 16:54

0 Answers0