NationalMuseumAustralia / Collection-API

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

Include image links in objects inside narratives #32

Closed staplegun closed 5 years ago

staplegun commented 6 years ago

In narrative records, for each object, the JSON-LD format includes the object's id, label, Collection Explorer link, and images. This makes it possible to show a list of objects with titles and thumbnails.

The images and Collection Explorer links are missing from the simple DC format, so thumbnails cannot be shown.

staplegun commented 6 years ago

Outstanding issues:

Example: Narrative 2358, Object 147507 has images

staplegun commented 6 years ago

Link to Collection Explorer now appears in Simple format, but object's thumbnail image link is removed from both JSON-LD and Simple format.

Conal-Tuohy commented 5 years ago

Leave for version 1.1 as a test of the versioning system.

f27wood commented 5 years ago

Can we move this up as a priority for v1.0 as we need it for the new website, as one of the functionalities is to embed a narrative in the website. By embedding - it shows the objects in that narrative, their title and preview image.

And if possible including the thumbnail and preview image, as often the thumbnail image is too small so it would be good to include the preview image as well.

Conal-Tuohy commented 5 years ago

Narrative containing objects with images: http://nma-dev.conaltuohy.com/narrative/3371# First object in the narrative has a large, preview, and thumbnail image: http://nma-dev.conaltuohy.com/object/10202#

Conal-Tuohy commented 5 years ago

This is because of two bugs in the RDF redaction step (i.e. the step in which the RDF graph about a single resource is trimmed). This step actually now does makes quite a number of different redactions, particularly around images, and the logic of those redactions is tangled up. Images are redacted if:

This tangled logic has already led to a few bugs, but there are still at least 2 errors in the logic which are causing this issue #32, so I've decided to split the redaction step into a series of independent steps each with a single task, so that the logic is clearer, and I expect that will fix the bugs or at least allow them to be fixed easily and the code maintained more easily in future.

Conal-Tuohy commented 5 years ago

Narratives now contain images: e.g. http://csapi-test.nma.gov.au/narrative/3371#