Skip to content
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

SWORD metadata at the file level #1073

Open
ctgraham opened this issue Feb 24, 2025 · 0 comments
Open

SWORD metadata at the file level #1073

ctgraham opened this issue Feb 24, 2025 · 0 comments

Comments

@ctgraham
Copy link
Collaborator

ctgraham commented Feb 24, 2025

The /sword/collections/[collection_id]/works/[work_id]/file_sets/[file_id] endpoint provides metadata on the file level, such as:

<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>46936_mina_ai_final_etd_phd.pdf</title>
  <content rel="src" href="https://pittir.palni-palci-staging.notch8.cloud/sword/collections/81192881-2521-4d3a-a913-b47536f5a361/works/db669c4c-be4d-4284-a079-8f8a3370869a/file_sets/86075f2f-0ec8-44fa-b072-9829f98d0176"/>
  <link rel="edit" href="https://pittir.palni-palci-staging.notch8.cloud/sword/collections/81192881-2521-4d3a-a913-b47536f5a361/works/db669c4c-be4d-4284-a079-8f8a3370869a/file_sets/86075f2f-0ec8-44fa-b072-9829f98d0176"/>
  <dc:title>46936_mina_ai_final_etd_phd.pdf</dc:title>
  <dc:creator>[email protected]</dc:creator>
</feed>

This is out of sync with the richer metadata provided in for the work, where we have designated a namespace for hyku-generated metadata (https://hykucommons.org/schema/system), for hyku-editable metadata (https://hykucommons.org/schema/metadata), and dublin core derivatives (DC and DCTerms).

Of particular interest would be the embargo metadata which is not currently presented, but of general interest is the same pattern as with works, representing all core metadata, plus a DC translation of metadata as available.

E.g.:

<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dc="http://purl.org/dc/elements/1.1/"
h4cmeta="https://hykucommons.org/schema/metadata" h4csys="https://hykucommons.org/schema/system">
  <title>46936_mina_ai_final_etd_phd.pdf</title>
  <content rel="src" href="https://pittir.palni-palci-staging.notch8.cloud/sword/collections/81192881-2521-4d3a-a913-b47536f5a361/works/db669c4c-be4d-4284-a079-8f8a3370869a/file_sets/86075f2f-0ec8-44fa-b072-9829f98d0176"/>
  <link rel="edit" href="https://pittir.palni-palci-staging.notch8.cloud/sword/collections/81192881-2521-4d3a-a913-b47536f5a361/works/db669c4c-be4d-4284-a079-8f8a3370869a/file_sets/86075f2f-0ec8-44fa-b072-9829f98d0176"/>
  <h4csys:id>86075f2f-0ec8-44fa-b072-9829f98d0176</h4csys:id>
  <h4csys:internal_resource>Image</h4csys:internal_resource>
  <h4csys:created_at>2024-07-10 23:04:45 UTC</h4csys:created_at>
  <h4csys:updated_at>2025-02-05 22:19:27 UTC</h4csys:updated_at>
  <h4csys:new_record>false</h4csys:new_record>
  <h4csys:date_modified>2025-02-03T23:30:24+00:00</h4csys:date_modified>
  <h4csys:date_uploaded>2025-02-03T23:30:24+00:00</h4csys:date_uploaded>
  <h4csys:depositor>[email protected]</h4csys:depositor>
  <h4cmeta:title>46936_mina_ai_final_etd_phd.pdf</h4cmeta:title>
<h4cmeta:visibility_during_embargo>restricted</h4cmeta:visibility_during_embargo>
  <h4cmeta:visibility_after_embargo>open</h4cmeta:visibility_after_embargo>
  <h4cmeta:embargo_release_date>2027-10-04T00:00:00+00:00</h4cmeta:embargo_release_date>
  <dc:title>46936_mina_ai_final_etd_phd.pdf</dc:title>
  <dc:creator>[email protected]</dc:creator>
</feed> 
@ctgraham ctgraham moved this to Ready for Development in palni-palci Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready for Development
Development

No branches or pull requests

1 participant