-
-
Notifications
You must be signed in to change notification settings - Fork 156
OGC CITE Compliance
Tom Kralidis edited this page Aug 3, 2024
·
21 revisions
- Website: https://cite.ogc.org/
- TEAM Engine: https://cite.ogc.org/teamengine/
- Test suite info: https://cite.ogc.org/te2/about/csw/2.0.2/site/
- Test data: https://cite.ogc.org/te2/about/csw/2.0.2/site/data/csw-2.0.2-data.zip
- Test suite info: https://cite.ogc.org/te2/about/cat30/3.0.0/site/
- The test suite is designed to run with any test data. The CITE data that comes with pycsw works just fine
- 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
. Indefault.yml
, setrepository.database
totests/functionaltests/suites/cite/data/cite.db
. - ensure the following settings
-
server.maxrecords
is NOT enabled -
metadata:inspire.enabled
is NOT enabled or set tofalse
-
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
- go to https://cite.ogc.org/teamengine/
- Click "Start Testing"
- You will be asked to login. If you do not have a CITE username/password, you must register to continue
- Click "Create a new session"
- Set the following:
- Organization: OGC
- Standard: CSW
- Version: 2.0.2 or 3.0.0
- Click "Start a New Test Session"
- Enter the full GetCapabilities URL
- CSW 2.0.2: https://host/pycsw/csw.py?service=CSW&version=2.0.2&request=GetCapabilities
- CSW 3.0.0: https://host/pycsw/csw.py
At this point the OGC CITE tests will execute and results for the session will be returned.
See the following Gist which allows for downloading the CITE tests locally and executing them on the command line.
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.
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 tosource 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
)
cd src/pycsw/
git pull origin master
python3 setup.py build
python3 setup.py install
sudo /usr/sbin/apache2ctl graceful