NationalMuseumAustralia / Collection-API

The public web API of the National Museum of Australia
11 stars 0 forks source link

Finding objects in a particular gallery: Landmarks #29

Closed stooit closed 6 years ago

stooit commented 6 years ago

I am trying to find all objects within a given gallery (e.g http://www.nma.gov.au/exhibitions/landmarks/home). It sounds as though the relationship used_for (only present in linked-art) can be used to find this, where label matches 'landmarks'.

It appears as though there is no way to query on values in used_for (at least according to the docs) -- is there some other means to search for these objects?

staplegun commented 6 years ago

This is now possible: https://csapi-test.nma.gov.au/object?limit=5&location=landmarks

f27wood commented 6 years ago

Tested AOK, apart from the Gallery names not being the full name, which is in another issue and for us to correct.

And can the location be a drop-down in the API Explorer?

staplegun commented 6 years ago

It's there, but I used the label "Exhibit" as I was thinking "Location" could be confused with place.

Which brings up the question of what labels are helpful in the drop-downs, e.g. I used "Date" instead of "Temporal"?

The full list is here: https://github.com/Conal-Tuohy/NMA-API/blob/master/apiexplorer.html

f27wood commented 6 years ago

Ahhh I see! I agree about date. Not sure about Exhibit. Will check the others too and get back to you if any changes.

f27wood commented 6 years ago

Exhibit is AOK, and others OK as they are too.

staplegun commented 6 years ago

Searching by location is operational in production. More granular searching is being worked on in #77 and #79.