Closed bseeger closed 4 years ago
Admittedly, I should have caught those particular "dcterms" mappings when reviewing the PR that added them before merging it. That stated, I think the idea of explicitly adding the "dcterms" namespace (along with updating our existing mappings to use "dcterms" instead of "dc") is appropriate.
Tagging MIG folks: @mbolam,@rtilla1, and @rosiel... Would there be any objections to us explicitly adding the 'dcterms' namespace and using them in our RDF Mappings? (Drupal core uses 'dc' to represent Dublin Core Terms and we've simply followed along.) We would keep 'dc11' for Elements.
I think the path of least resistance is to duplicate the existing URL with the new or more correct "dcterms". So I am 👍 on this
I'll add another PR for the islandora_defaults changing the dc
prefixes to dcterms
for consistency.
PR changing dc to dcterms in config files: https://github.com/Islandora/islandora_defaults/pull/22
Great catch @bseeger, this sounds awesome. So to be clear, we will in practice use dc11
as the prefix for dc elements, and dcterms
for, well, dcterms. Disambiguation ftw.
I neglected to check OAI-PMH before merging.... 🤦♂️. It assumes we are using the old DC namespace.
The
dcterms
prefix is used in the islandora_defaults for the rdf mapping, but the prefix name itself is never explicitly defined. This results in fedora thinking that things like "dcterms:spacial" is a full URL:Notice the
<
and>
around some of thedcterms
predicates - they should not be there. Fedora thinks that<dcterms:temporal>
is a full URL versus a prefix.When I add
dcterms
to the islandora.module namespace declaration section, things are fixed.I know
dc
is defined by drupal to be thedcterms
namespace. So one of two things needs to happen -- all thedcterms
references in the rdf mapping files need to change todc
- or - thedcterms
prefix should be added to the islandora.module. I'd prefer the later solution, becausedc
pointing todcterms
may seem a bit confusing to users who regularly use both http://purl.org/dc/terms/ and http://purl.org/dc/elements/1.1/.