Git Product home page Git Product logo

go-whosonfirst-concordances's Introduction

go-whosonfirst-concordances

A Go package for working with Who's On First concordances

Documentation

Go Reference

Tools

$> make cli
go build -mod vendor -o bin/wof-concordances-keys cmd/wof-concordances-keys/main.go

wof-concordances-keys

wof-concordances-keys returns the list of unique keys for all the concordances found in one or more sources.

$> ./bin/wof-concordances-keys -h
wof-concordances-keys returns the list of unique keys for all the concordances found in one or more sources.Usage:
	 ./bin/wof-concordances-keys source(N) source(N)
  -iterator-uri string
    	A valid whosonfirst/go-whosonfirst-iterate/v2 URI. (default "repo://")

For example:

$> ./bin/wof-concordances-keys \
	/usr/local/data/sfomuseum-data-whosonfirst/ \
	/usr/local/data/sfomuseum-data-enterprise/
4sq:id
chsdm:person
dbp:id
digitalenvoy:country_code
digitalenvoy:metro_code
digitalenvoy:region_code
faa:code
fb:id
fct:id
fifa:id
fips:code
flysfo:code
gaul:id
gn:id
gp:id
hasc:id
iata
iata:callsign
iata:code
icao
icao:callsign
icao:code
ioc:id
iso:id
itu:id
loc:id
m49:code
marc:id
mzb:id
ne:adm0_a3
ne:id
nyt:id
oa:id
pl-gugik
qs:id
qs_pg:id
ro-ancpi:id
sg:id
tgn:id
uncrt:id
unlc:id
uscensus:geoid
wd:id
wikidata
wikipedia
wk:id
wk:page
wk:pageid
wmo:id

This tools support the go-whosonfirst-iterate-organization package so you can iterate over all the Who's On First repositories in a given organization. For example, here is how you might list the concordances keys for all the whosonfirst-data-admin-* repositories in the whosonfirst-data organization:

$> ./bin/wof-concordances-keys \
   -iterator-uri org://tmp \
   'whosonfirst-data://?prefix=whosonfirst-data-admin-'

Note: This example will take a long time to complete.

go-whosonfirst-concordances's People

Contributors

botsonfirst avatar dependabot[bot] avatar dphiffer avatar thisisaaronland avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

go-whosonfirst-concordances's Issues

Error: too many open files

Something odd happens when I try to generate concordances from https://github.com/whosonfirst-data/whosonfirst-data-postalcode-es

$ make concordances
grep: .gitattributes: No such file or directory
test -s /usr/local/data/whosonfirst-data-postalcode-es/bin/wof-build-concordances || make bin
mkdir -p /usr/local/data/whosonfirst-data-postalcode-es/meta
/usr/local/data/whosonfirst-data-postalcode-es/bin/wof-build-concordances -processes 1 -repo /usr/local/data/whosonfirst-data-postalcode-es
error: open /usr/local/data/whosonfirst-data-postalcode-es/data/554/832/469: too many open files
error: open /usr/local/data/whosonfirst-data-postalcode-es/data: too many open files

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.