Closed kayakr closed 5 years ago
Hey @kayakr,
Thanks for taking a look at the REST api. We've had some recent changes flow through that should make that collection a http://purl.org/dc/dcmitype/Collection
(or whatever the Collection term has for field_external_uri
). If you want it to be a PCDM Collection, you can just edit the taxonomy term and replace the DCMIType url.
That's all in theory of course, because you're sitting on a bug. Or at least a misconfiguration in https://github.com/Islandora-CLAW/islandora_demo. The rdf:type should come from its taxonomy terms, not the rdf mapping.
As for why not http://pcdm.org/models#Collection by default, there's some semantic baggage that comes with it. PCDM Collections aren't supposed to have files, they collect only other objects. So our workaround is to make it a PCDM object and slap a different collection URI on there. I understand PCDM's need to make that distinction, but unfortunately all Islandora collections pretty much always have a thumbnail. :man_shrugging:
@kayakr was this resolved to your satisfaction by the PRs on the above linked ticket?
I can confirm that the bug I mentioned has been fixed, and that you can still make a collection a pcdm:Collection if you want to.
node/1 is a Repository Item with Resource Type=Collection and Model=Collection.
curl -v "http://localhost:8000/node/1?_format=jsonld"
returnsLink: <http://purl.org/dc/dcmitype/Collection>; rel="tag"; title="Collection"
Link: <http://localhost:8000/taxonomy/term/2>; rel="tag"; title="Collection"
ok, but alsoShouldn't the
@type
value be "http://pcdm.org/models#Collection"?