to-gn

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 4 Imported by: 0

README

to-gn

Converts SFGA archive to entries for the GNverifier database.

Install

Copy from the latest release a compressed file for your operating system, extract to-gn file and place it somewhere in your PATH.

Usage

Use SFGA file or URL to convert it to GNverifier data:

# create configuration file (and see the version of to-gn)
to-gn -V
# edit config file to change gnames database requisites
# then run
# zipped version of an sfga archive
to-gn an-sfga-archive.zip
# -s option sets data-source id for GNverifier. It should correspond to
# data souorces ids at https://verifier.globalnames.org/data_sources
# or SQL dump of the archive
to-gn an-sfga-archive.sql
# or SQLite database directly
to-gn an-sfga-archive.sqlite

In case if data-source ID is not provided in the archive, it can be received in several ways.

  1. From the file name (data-source_id should be at the start of the file name (e.g. 001-sfga-col-2025-01-24.zip)

  2. given in as a parameter:

to-gn -s 1
to-gn --source 1
# to create new entry the parameter must be 0
to-gn -s 0

One SFGA file contains data from a single data-source.

Documentation

Overview

Copyright © 2024 Dmitry Mozzherin <dmozzherin@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL