Comments (11)
It would be great to have this feature!
from gazetteer.
To have that data in gazetteer out, I have to have local dump of wikidata, If I'll query wikidata duiring data processing it will take forever to generate data. So I'll probabbly implement that, if it's possible to get wikidata subset.
from gazetteer.
to have local dump of wikidata
a SPARQL query to fetch labels
44791 Results in 452 ms thanks to WDQS
from gazetteer.
@d1g, cool, few more things:
- How to get language code for label?
- How to get type-codes? wikidata as I think could be binded not only to localities but also to streets and boundaries.
As an option, I can get a full list of wikidata identifiers during first pass and make a batch query to download all the wikidata in few calls to API, and join that data later, but it's easier and faster to have that data downloaded before gazetteer run.
from gazetteer.
- simply add a
(LANG(?l) as ?lang)
after?l
- I'm not exactly sure what codes do you mean. Could you please give an example for SPB or other item?
from gazetteer.
Here is the code for cities:
?item wdt:P31 wd:Q515; # cities
How could i get something like:
?item wdt:P31 wd:Q515; # cities
or ?item wdt:P31 wd:Q123; # states
or ?item wdt:P31 wd:Q1234; # streets
from gazetteer.
- for street http://tools.wmflabs.org/sqid/#/view?id=Q79007 ex https://www.wikidata.org/wiki/Q152244
- data about states isn't uniform in OSM-like sense: https://www.wikidata.org/wiki/Q835714 https://www.wikidata.org/wiki/Q35657 and so on
from gazetteer.
Heh, that's what I've been afraid of. Are there any analogs of rdbs joins and subqueries or recursive queries in wikidata?
from gazetteer.
- it is possble to nest selects, there are many existing examples here
- sparql-vs-sql
I prefer to load data using SPARQL, but perform really complex precessing using regular tools e.g. Python
from gazetteer.
@kiselev-dv, it is possible to fetch any division using Q10864048 item: 3623 Results in 6046 ms
from gazetteer.
from gazetteer.
Related Issues (20)
- Failed to compile HOT 6
- Неточности в поиски адресов по схеме addrN:*
- split and slice succeed,but block at join using Gazetteer-1.3 HOT 5
- Netherlands - Out of memory HOT 10
- Добавить уровень подробности для обратного геокода
- Геокодирование внутри дома, внутри osm границы HOT 11
- Data extracts for Romania HOT 3
- fix object namings to follow GeoJSON standards HOT 15
- add osm node ids to Gazetteer objects HOT 4
- Gazetteer hangs on JoinSliceRunable HOT 1
- Add ref for highways
- Output to CSV - Syntax HOT 3
- Extract only addresses? HOT 2
- Падает если в osm файле нет атрибута timestamp
- Путает номер дома со номером "микрорайона" (web) HOT 5
- Complain about unrecognized handlers options
- support parsing postcode from fullText address with libpostal HOT 2
- POI станции метро
- corrupted output file when processing the whole planet
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gazetteer.