Comments (7)
The triple in the results that indicates the entity's type of place is gn:featureCode
.
Examples,
Comfort Inn Ithaca (US)
<gn:featureClass rdf:resource="http://www.geonames.org/ontology#S"/>
where S - spot, building, farm
<gn:featureCode rdf:resource="http://www.geonames.org/ontology#S.HTL"/>
where, S.HTL indicates (S) spot, building, farm - (HTL) hotel
Ithaca (US)
<gn:featureClass rdf:resource="http://www.geonames.org/ontology#P"/>
where P - city, village
<gn:featureCode rdf:resource="http://www.geonames.org/ontology#P.PPLA2"/>
where P.PPLA2 indicates (P) city, village - (PPLA2) seat of a second-order administrative division
The full list is at http://www.geonames.org/export/codes.html
They can be acquired from the ontology as rdfxml using...
curl -L -D - -H 'Accept: application/n-triples' 'http://www.geonames.org/ontology/ontology_v3.1.rdf'
QA does not have any code for interpreting ontology rdfxml.
from qa_server.
From @eichmann:
Re the geonames data - they don't break things out by ontology classes (everything's an instance of feature); instead they have a hierarchy of feature codes (see http://www.geonames.org/export/codes.html) with nine major categories. Would indexing by major category suffice? There are dozens of individual categories (e.g., a standing body of water in a cave).
from qa_server.
From @hudajkhan
if the major category is country, state, region, that sounds fine. We can revisit if the catalogers need anything more granular but that should suffice for now. Thanks!
from qa_server.
To summarize, the proposal is for Dave to index on major category. And QA will surface these as subauthorities.
featureClass | label | entity | subauth |
---|---|---|---|
A | country, state, region | A | area |
P | city, village | P | place |
H | stream, lake | H | water |
L | parks, area | L | park |
R | road, railroad | R | road |
S | spot, building, farm | S | spot |
T | mountain, hill, rock | T | terrain |
U | undersea | U | undersea |
V | forest, heath | V | vegetation |
A & P | AP | area_and_place | |
all | all |
from qa_server.
Context from C. Eslao...
when we've run python scripts to do quick & dirty geonames recon on harvard data, we've used properties like gn:fcodeName to prefer entities that are coded as "independent political entity" or "historical political entity" (for countries) and "first-order administrative division" (for states, provinces, etc)
otherwise the top result seems arbitrary and not necessarily the kind of entity that legacy data tends to record
from qa_server.
From @eichmann...
My Lucene indexer currently uses a most specific label (US Eng, Eng, any lang COALESCE) for a search hit label, and indexes on that plus alternate names, official names, parent country, parent feature and parentADM1-4 label. Given the current conversation, it looks like I should drop anything about parents from the indexed text.
from qa_server.
All feature classes are now separately queryable, plus a combined A & P. See the authority slack channel for further discussion of the new index argument and how it can alter the nature of results.
from qa_server.
Related Issues (20)
- Add Direct Lookups for LC RBMS Controlled Vocabulary HOT 2
- Add Direct Lookup for Homosaurus HOT 6
- Add Existing Geonames Direct Configuration to Sinopia
- Add Direct Lookup for MESH HOT 1
- Add Direct Lookup for Getty Vocabs HOT 2
- Add Local Lookup for RDA Terms HOT 11
- Upgrade ruby, rails, qa and other gems
- Update documentation for what is in production
- Update DB Version to 10.11
- Add DBPedia Direct Lookup HOT 5
- Add ISNI Direct lookup. HOT 1
- Disable Cache Lookups HOT 2
- Remove cached lookups from Sinopia
- Create connection tests for new direct lookups.
- Fix Discogs lookup if determined that this lookup is still needed
- ADD LC RWO Lookups HOT 7
- Confirm whether/how pagination can be supported for Direct Lookups HOT 1
- Add direct lookup for LC Geographic Areas HOT 1
- Parameters for paginating results
- Create lookups for LOC Hubs, Works, Instances HOT 4
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 qa_server.