Skip to content

blake-regalia/usgs-ld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

USGS-LD

This project bundles up the triplifier, triplestore, bulk-importer and frontend interface for the GNIS and NHD.

Requirements

CLI Usage

From the main directory, use ./run to manage services:

$ ./run --help
Usage: ./run [COMMAND] [ARGS]

Commands:
  download          download data from USGS
  convert           convert USGS datasets into RDF
  triplestore       launch the triplestore as a service
  import            import triples and geometry into the triplestore
  frontend          launch the HTTP web interface frontend as a service

For more information about a specific command, use: ./run [COMMAND] --help

Getting Started

To get the entire USGS-LD up and running as-is, the following setup procedure will initialize and load all the data, as well as start the services with default settings:

./run download all \
	&& ./run convert all
	&& ./run triplestore up
	&& ./run import all
	&& ./run frontend up

Updating Datasets

Changes to the source datasets require regenerating the entire RDF dataset.

If you only need to update the GNIS:

# remove old GNIS data first
rm -rf data/*/gnis

# download new datasets, convert them, then load everything
./run download gnis \
	&& ./run convert gnis \
	&& ./run triplestore down \
	&& ./run triplestore up \
	&& ./run import all

If you only need to update the NHD:

# remove old NHD data first
rm -rf data/*/nhd

# download new datasets, convert them, then load everything
./run download nhd \
	&& ./run convert nhd \
	&& ./run triplestore down \
	&& ./run triplestore up \
	&& ./run import all

Releases

No releases published

Packages

No packages published

Languages