geopython / OWSLib

OWSLib is a Python package for client programming with Open Geospatial Consortium (OGC) web service (hence OWS) interface standards, and their related content models.
https://owslib.readthedocs.io
BSD 3-Clause "New" or "Revised" License
381 stars 273 forks source link

dublin core as an import option #909

Open pvgenuchten opened 6 months ago

pvgenuchten commented 6 months ago

currently parsing a dublin core record is implemented as part of the csw parsing

https://github.com/geopython/OWSLib/blob/46d89334c34a418f5a57b623cd0c07f3bdbf775a/owslib/csw.py#L616

would it make sense to delegate that to a dedicated dublin core parser

so we can also use owslib to parse dublin-core.xml files

added are some dublin core records exported from zenodo

zenodo_xml.zip

tomkralidis commented 5 months ago

Good idea @pvgenuchten. In theory, CSW Record is Dublin Core + extra elements like ows:BoundingBox and ows:WGS84BoundingBox.

Perhaps we can move the pure DC model to owslib.dublincore.DublinCore and have owslib.csw.CswRecord subclass accordingly?