ClevelandMuseumArt / openaccess

Creative Commons Zero v1.0 Universal
71 stars 9 forks source link

Add 'set' property to data for objects in a set #9

Open tacman opened 3 weeks ago

tacman commented 3 weeks ago

I'm looking at the JSON records for the set of objects consisting of

They are 3 separate records but belong to the same "set", however, I don't see any json data indicating that. Obviously, I can hard-code something that says "anything with a dot-letter in the accession_number field is part of a set", but that doesn't feel particularly elegant.

Is it possible for you to add a "set" property?

Thank you for your consideration.

ethanholda commented 2 weeks ago

Hello @tacman. There are two attributes in the data that will be useful to you. record_type will tell you whether something is a "part", "component", "cover" record for a set, or a standalone "object". If something is a "part" or "component", you can also find the accession number of the cover record in the cover_accession_number attribute. I'm noticing the cover_accession_number field is not in our documentation and I'll get that rectified.

Thanks for your ongoing interest in our API and dataset.