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
393 stars 278 forks source link

resource as literal or uri, when importing DC record as rdf/xml #937

Open pvgenuchten opened 2 months ago

pvgenuchten commented 2 months ago

When importing

<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="https://doi.org/10.1002/2016WR020175">
    <dc:identifier>10.1002/eqe.3286</dc:identifier>
    <dct:references>http://doi.org/10.1002/eqe.3286</dct:references>
    <dc:type>document</dc:type>
  </rdf:Description>
</rdf:RDF>

vs

<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="https://doi.org/10.1002/2016WR020175">
    <dc:identifier>10.1002/2016WR020175</dc:identifier>
    <dct:references rdf:resource="http://doi.org/10.1002/2016WR020175"/>
    <dc:type>document</dc:type>
  </rdf:Description>
</rdf:RDF>

the first works fine, the second returns an empty reference element, can we support both the second may be the optimal choice considering https://www.dublincore.org/specifications/dublin-core/dcmi-terms/terms/references/