Giter VIP home page Giter VIP logo

Comments (7)

elrayle avatar elrayle commented on July 17, 2024

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.

elrayle avatar elrayle commented on July 17, 2024

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.

elrayle avatar elrayle commented on July 17, 2024

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.

elrayle avatar elrayle commented on July 17, 2024

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.

elrayle avatar elrayle commented on July 17, 2024

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.

elrayle avatar elrayle commented on July 17, 2024

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.

eichmann avatar eichmann commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.