Skip to content

OGC CITE Compliance

Tom Kralidis edited this page Aug 3, 2024 · 21 revisions

OGC CSW 2.0.2

OGC CSW 3.0.0

How to run your own CITE Tests

  • you must ensure that pycsw is running with the CITE test data. pycsw comes shipped with an SQLite database of the CSW test data in tests/functionaltests/suites/cite/data/cite.db. In default.yml, set repository.database to tests/functionaltests/suites/cite/data/cite.db.
  • ensure the following settings
  • server.maxrecords is NOT enabled
  • metadata:inspire.enabled is NOT enabled or set to false
  • metadata:main:contact_email is set to an email address value (CITE CSW 3.0 test requirement). The email is not used per se by CITE, but CITE checks for the email pattern in the CSW 3.0 OpenSearch tests

Using CITE services

At this point the OGC CITE tests will execute and results for the session will be returned.

Running CITE locally

See the following Gist which allows for downloading the CITE tests locally and executing them on the command line.

Demo Server

The demo server at https://demo.pycsw.org/cite/csw is configured with the CITE CSW test data. You can use the demo server against CITE for checking against latest master in Git. The demo server is pycsw's official OGC Reference Implementation.

Access

ssh to demo.pycsw.org using your OSGeo username/password. The setup is in /osgeo/demo.pycsw.org/ as a Python virtualenv as per https://github.com/geopython/demo.pycsw.org where:

  • bin/, include/, lib/ : virtualenv dirs (remember to source bin/activate when working here)
  • pycsw/ : various pycsw endpoint configurations / data
  • www/ : static website
  • httpd.d/ : Apache config
  • src/ : Git clone of master which powers all the endpoints

pycsw changes / updates need to be followed by sudo /usr/sbin/apache2ctl graceful (as pycsw is deployed via mod_wsgi)

Updating pycsw

cd src/pycsw/
git pull origin master
python3 setup.py build
python3 setup.py install
sudo /usr/sbin/apache2ctl graceful
Clone this wiki locally