Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tech-andgar/data-dictionary
Licensing Systems Data Dictionary
https://github.com/tech-andgar/data-dictionary
Last synced: about 2 months ago
JSON representation
Licensing Systems Data Dictionary
- Host: GitHub
- URL: https://github.com/tech-andgar/data-dictionary
- Owner: tech-andgar
- Created: 2018-10-11T19:59:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2017-10-17T04:50:58.000Z (about 7 years ago)
- Last Synced: 2024-04-24T22:28:48.550Z (9 months ago)
- Language: PLpgSQL
- Size: 14.4 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Data-Dictionary
Licensing Systems Data Dictionary
* [CSV files](https://github.com/ffagithub/Data-Dictionary/tree/master/separated/csv) - contains CSV files that can be opened in Excel spreadsheet, first line is column heading
* [Single MySQL file](https://github.com/ffagithub/Data-Dictionary/blob/master/master_data.sql) - contains structure and data
* [Single Postgres file](https://github.com/ffagithub/Data-Dictionary/blob/master/master_data_postgres.sql) - contains structure and data
* [MySQL files](https://github.com/ffagithub/Data-Dictionary/tree/master/separated/mysql) - contains MySql .sql files separated into individual files
* [Postgres files](https://github.com/ffagithub/Data-Dictionary/tree/master/separated/postgres) - contains Postgres .sql files separated into individual files# Sources
Listed below are the source of the standards as well as links to the actual data sources
* **countries** - Country Codes Github Repo https://github.com/datasets/country-codes/blob/master/data/country-codes.csv. Original sources are from ISO 3166 codes, ITU dialing codes, ISO 4217 currency codes, and many others , added fisheries specific information
* **gear_type** - FAO, International Standard Statistical Classification ftp://ftp.fao.org/docrep/fao/008/t0367t/t0367t01.pdf
* **vessel_type** - FAO, Based on the International Standard Statistical Classification of Fishery Vessels by Vessel Types (ISSCFV), based on the type of gear used by the vessels, approved by the CWP in 1984 ftp://ftp.fao.org/fi/DOCUMENT/cwp/handbook/annex/annexLII.pdf
* **simplified_vessel_type** - Simplified Classification of Fishing Vessels By Vessel Types - ftp://ftp.fao.org/FI/DOCUMENT/cwp/handbook/annex/ANNEX_LIII.pdf
* **ports** - UN, UN/LOCODE https://www.portconnect.co.nz/Docs/PortConnectStandardUNLocationCodes(Global).xls also see here (United Nations Code for Trade and Transport Locations)[ http://www.unece.org/cefact/locode/]
* **species** - FAO, information [http://www.fao.org/fishery/collection/asfis/en](http://www.fao.org/fishery/collection/asfis/en)... download [ftp://ftp.fao.org/FI/STAT/DATA/ASFIS_sp.zip](ftp://ftp.fao.org/FI/STAT/DATA/ASFIS_sp.zip)
* **storage_method** - Unknown but common across all forms, suspect FAO is source TBC
* **authorised_fishing_area** - Pacific Commission (SPC) [http://www.spc.int/oceanfish/en/ofpsection/](http://www.spc.int/oceanfish/en/ofpsection/)
* **units_of_measure** - THE UNIFIED CODE FOR UNITS OF MEASURE [http://unitsofmeasure.org/ucum.html](http://unitsofmeasure.org/ucum.html) only taken a subset of units relevant for licensing.Specifically these are:
```
kilolitres | volume | kl
gallon | volume | gal
meter | length | m
foot | length | ft
kilowatt | power | kW
horsepower | power | hp
pound per sqare inch | pressure | psi
```# Instrcutions
## Exporting Data
SSH into server
run the following at the command prompt to export data:
> mysqldump -u root -p --databases master_data >master_data.sqlOR for Postgres
> pg_dump master_data > master_data.sql