NYPL-discovery / discovery-models

Data models, documentation, and discussion for Discovery project data
0 stars 0 forks source link

"building" location predicate? #17

Open nonword opened 8 years ago

nonword commented 8 years ago

I'm able to derive the building an item is in by checking item.physicalLocation and seeing if the referenced location has an isPartOf. These "building" locations are more useful as a facet than the more granular locations, so to drive that facet I've had to relate items to buildings directly in the api. I'm currently using locationBuilding. Is there a good predicate for this? These are the current "buildings" with counts:

http://discovery-api.nypltech.org/api/v1/resources/aggregation/location