5 ms·
> Are you aware of any open source / crowd sourced directory of physical businesses Yep that's OpenStreetMap! You could use Pelias for geocoding, OSM for th
by jakecopp 7y ago
> Are you aware of any open source / crowd sourced directory of physical businesses
Yep that's OpenStreetMap! You could use Pelias for geocoding, OSM for the data. Why not offer for users to add the business to OSM if it doesn't exist?
I think Foursquare also has a directory, I'm not sure what their costs are though (and closed of course).
- LunaSea 7y agoHaving investigated the use of OpenStreetMap data in the past year, I have to say that it's still disappointing and not complete enough to be used as a serious solution. If I look at university nodes that have a website in France I find 241 unique values which represents less than 10% of the total amount.
- tuukkah 7y agoTypically, there is no perfect data source and their applicability depends on your use cases. OpenStreetMap is first about streets, then (geometries of) buildings, POIs etc. An attribute like website information has not been high on the use cases that the community has but I think this is getting better with more use and especially the integration with Wikidata. In Wikidata, I can currently get 563 results for institutes of higher education in France with website information: https://query.wikidata.org/#SELECT%20DISTINCT%20%3Fschool%20%3FschoolLabel%20%3Fwebsite%20WHERE%20%7B%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%20%20%3Fschool%20wdt%3AP31%2Fwdt%3AP279%2a%20wd%3AQ38723.%0A%20%20%3Fschool%20wdt%3AP17%20wd%3AQ142.%0A%20%20%3Fschool%20wdt%3AP856%20%3Fwebsite.%0A%7D%20%0ALIMIT%201000 https://query.wikidata.org/#SELECT%20DISTINCT%20%3Fschool%20... EDIT: Applied the fix by yorwba to get more results.
- yorwba 7y agoYou need to add an asterisk after wdt:P279, otherwise the query only finds instances of direct subclasses of Q38723. On the other hand, I didn't think to filter only for those that have an associated website. (See sibling comment.) Modifying your query, I get 563 results: https://query.wikidata.org/#SELECT%20DISTINCT%20%3Fschool%20%3FschoolLabel%20%3Fwebsite%20WHERE%20%7B%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%20%20%3Fschool%20wdt%3AP31%2Fwdt%3AP279%2a%20wd%3AQ38723.%0A%20%20%3Fschool%20wdt%3AP17%20wd%3AQ142.%0A%20%20%3Fschool%20wdt%3AP856%20%3Fwebsite.%0A%7D%20%0ALIMIT%201000 https://query.wikidata.org/#SELECT%20DISTINCT%20%3Fschool%20... Conclusion: it depends on how you count.
- tuukkah 7y agoThanks for noticing and fixing my bug!
- yorwba 7y agoAre you sure there are more than 2410 universities in France? Running the SPARQL query below at https://query.wikidata.org/#SELECT%20%28count%28DISTINCT%20%3Fschool%29%20AS%20%3Fcount%29%0AWHERE%0A%7B%0A%20%20%20%20%23%20find%20instances%20of%20subclasses%20of%20university%20Q3918%20%28use%20Q38723%20for%20higher%20education%20institution%29%0A%09%3Fschool%20wdt%3AP31%2Fwdt%3AP279%2a%20wd%3AQ3918%20.%0A%0A%20%20%20%20%23%20in%20France%0A%09%3Fschool%20wdt%3AP17%20wd%3AQ142%20.%0A%7D https://query.wikidata.org/#SELECT%20%28count%28DISTINCT%20%... , I get 218 French universities with a Wikidata item (which usually means there's a corresponding Wikipedia article) but for "higher education institution" I get 675: https://query.wikidata.org/#SELECT%20%28count%28DISTINCT%20%3Fschool%29%20AS%20%3Fcount%29%0AWHERE%0A%7B%0A%20%20%20%20%23%20find%20instances%20of%20subclasses%20of%20higher%20education%20institution%20%28use%20Q3918%20for%20university%29%0A%09%3Fschool%20wdt%3AP31%2Fwdt%3AP279%2a%20wd%3AQ38723%20.%0A%0A%20%20%20%20%23%20in%20France%0A%09%3Fschool%20wdt%3AP17%20wd%3AQ142%20.%0A%7D https://query.wikidata.org/#SELECT%20%28count%28DISTINCT%20%... Query: SELECT (count(DISTINCT ?school) AS ?count) WHERE { # find instances of subclasses of university Q3918 (use Q38723 for higher education institution) ?school wdt:P31/wdt:P279* wd:Q3918 . # in France ?school wdt:P17 wd:Q142 . }
- sp332 7y agoIt varies a lot by location. Some places are kept up to date by contributors and some aren't.
- ocdtrekkie 7y agoThe chicken and egg problem is that OSM will be as good as the data it gets, and the data it gets will increase as people use it as a serious solution and contribute where they find it inadequate.
- LunaSea 7y agoSure, but companies have the money to contribute a subscription but not time, because the later is incredibly more expensive for them. This makes OSM data a non-starter in most serious business use cases.