:orphan: .. _faq: FAQ === Can I use pycsw within my WSGI application? ------------------------------------------- Yes. pycsw can be deployed as both via traditional CGI or WSGI. You can also integrate pycsw via `Django`_ views or `Pylons`_ controllers. How do I export my repository? ------------------------------- Use the ``pycsw-admin.py`` utility to dump the records as XML documents to a directory: .. code-block:: bash $ pycsw-admin.py -c export_records -f default.cfg -p /path/to/output_dir .. _`Django`: https://www.djangoproject.com/ .. _`Pylons`: http://www.pylonsproject.org/ How do I add a custom metadata format? -------------------------------------- pycsw provides a plugin framework in which you can implement a custom profile (see :ref:`profiles`) How can I catalogue 'sets' of metadata? --------------------------------------- Create a 'parent' metadata record from which all relevant metadata records (imagery, features) derive from via the same ``dc:source`` element of Dublin Core or ``apiso:parentIdentifier`` element of ISO 19139:2007. Then, do a ``GetRecords`` request, filtering on the identifier of the parent metadata record. Sample request: .. code-block:: xml brief apiso:parentIdentifier $identifier ows:BoundingBox 47 -5 55 20 The above query will search for all metadata records of the same ``apiso:parentIdentifier`` (identified by ``$identifier``) within a given area of interest. The equivalent query can be done against ``dc:source`` with the same design pattern.