Skip to content
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
docker-compose.yaml
run

README.md

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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.