Git Product home page Git Product logo

coat2pycsw's Introduction

The goal of coat2pycsw is to achieve interoperability with the SIOS Data Access Portal by following the Interoperability Guidelines for the SIOS Data Management System (SDMS).

In order to do that, coat2pycsw reads the data from data.coat.no using the CKAN API, generates ISO-19115/ISO-19139 medatata using pygeometa, and populates a pycsw instance, which exposes the metadata using CSW and OAI-PMH.

How to build and run

Without Docker

Dependencies:

python3 -m pip install --user pipx
pipx install pdm
pdm install --no-self

Configuration:

PYCSW_URL=http://localhost:8000 envsubst < pycsw.conf.template > pycsw.conf

Generate database:

rm -f cite.db
pdm run python3 coat2pycsw.py

Run:

PYCSW_CONFIG=pycsw.conf pdm run python -m pycsw.wsgi

With Docker

docker compose up --build

Configure by changing PYCSW_URL in docker-compose.yml, as well as the published port, if needed.

Test

Perform a GetRecords request.

coat2pycsw's People

Contributors

frafra avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

mjanez

coat2pycsw's Issues

Full compatibility with SDMS requirements

  • Exchange mechanisms for metadata
    • CSW and/or OAI-PMH
  • Information structures for discovery metadata -> ISO19115
    • Unique ID
    • ISO8601 dates
    • gmd:fileIdentifier/gco:CharacterString
    • gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:title/gco:CharacterString
    • gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract
    • gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:temporalElement/gmd:EX_TemporalExtent/gmd:extent/gml:TimePeriod
    • gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:geographicElement/gmd:EX_GeographicBoundingBox
    • gmd:contact/gmd:CI_ResponsibleParty
    • gmd:identificationInfo/gmd:MD_DataIdentification/gmd:pointOfContact/gmd:CI_ResponsibleParty (email only)
    • gmd:identificationInfo/gmd:MD_DataIdentification/gmd:language
    • gmd:identificationInfo/gmd:MD_DataIdentification/gmd:topicCategory/gmd:MD_TopicCategoryCode
    • Distribution format (custom: CSV files in a ZIP file)
    • gmd:distributionInfo/gmd:MD_Distribution/gmd:transferOptions/gmd:MD_DigitalTransferOptions/gmd:onLine/gmd:CI_OnlineResource
    • Metadata point of contact (same as CI_Contact)
    • gmd:dateStamp
    • gmd:distributionInfo/gmd:MD_Distribution/gmd:distributor/gmd:MD_Distributor

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.