-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drupal REST collection response returns "http://pcdm.org/models#Object" #1001
Comments
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 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. 🤷♂️ |
@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"
returns
Link: <http://purl.org/dc/dcmitype/Collection>; rel="tag"; title="Collection"
Link: <http://localhost:8000/taxonomy/term/2>; rel="tag"; title="Collection"
ok, but also
Shouldn't the
@type
value be "http://pcdm.org/models#Collection"?The text was updated successfully, but these errors were encountered: