Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tomkralidis/pyspire-metaval

Simple Pythonic Wrapper to INSPIRE Metadata Validation Service
https://github.com/tomkralidis/pyspire-metaval

Last synced: about 2 months ago
JSON representation

Simple Pythonic Wrapper to INSPIRE Metadata Validation Service

Awesome Lists containing this project

README

        

# INSPIRE Metadata Validation Service Python wrapper

## Overview

Simple Pythonic Wrapper to [INSPIRE Metadata Validation Service](http://inspire-geoportal.ec.europa.eu/validator2/)

## Metadata Records

http://geodata.gov.gr/csw?service=CSW&version=2.0.2&request=GetRecordById&id=0f5b2fe2-eec2-4f46-89a6-1a7b390735b8&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full

## Invocation

```bash
# test against a locally saved copy of http://geodata.gov.gr/csw?service=CSW&version=2.0.2&request=GetRecordById&id=0f5b2fe2-eec2-4f46-89a6-1a7b390735b8&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full
python inspire-metadata-validate.py inspire-good.xml

# test against a locally saved copy (with errors added) of http://geodata.gov.gr/csw?service=CSW&version=2.0.2&request=GetRecordById&id=0f5b2fe2-eec2-4f46-89a6-1a7b390735b8&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full
python inspire-metadata-validate.py inspire-bad.xml

# show differences between good and bad
diff inspire-good.xml inspire-bad.xml
280a281
>
```