Back to EES2 Project page

Linked Art Tool

By Sasha Tan

Download Linked Art Tool

The Linked Art Tool is available on Github. Follow the link, and on the GitHub page click on 'Download raw file' button on the right to dowload.

Linked Art Tool Documentation

Overview

This script is designed to interface with data compliant with Linked Art. It fetches Linked Art JSON data from a provided URL and processes it to extract and display key metadata in a reader-friendly format. The script runs in a command-line interface (CLI) environment.

Prerequisites

Installation (skip if prerequisites have been fulfilled)

Install Node.js and npm: - Download and install Node.js from nodejs.org. - npm (Node Package Manager) is included with Node.js.

Install required packages: - Run the following command to install the required packages: npm install node-fetch fs js-yaml

Usage

Options

Output

Currently, the tool supports the following fields, all of which are displayed by default:

  1. Title
  2. Exhibited title
  3. Former title
  4. Accession number
  5. Creator(s)
  6. Work type (classification)
  7. Work type (statement)
  8. Timespan (name)
  9. Timespan (structured)
  10. Dimensions statement
  11. Dimensions (structured)
  12. Materials statement
  13. Materials (structured)
  14. Location
  15. Owner
  16. Set
  17. Social media (I modelled this for the Labyrinth objects but it’s not a standard field)
  18. Credit line
  19. Citations
  20. Access statement
  21. Description
  22. Provenance description
  23. Web page(s)
  24. IIIF manifest
  25. Primary image
  26. Primary thumbnail
  27. All images
  28. All thumbnails

To omit a field from the display, the outputOrder object can be modified in the script, similar to the object_display_order object in objects.yaml in the Quire extension.

When the --concise argument is used, fields 6, 8, 10, and 12 are prioritised over fields 7, 9, 11, and 13, which are treated as their alternate or secondary forms; this can easily be swapped around in the code if desired however.