Linked Art in C#

object/chess/1 matches the site

"Vessel with miniature chess set" by Michael Mode consists of 36 parts (the 32 pieces, the board, a lid, and two other parts)

On linked.art: Objects: Physical Characteristics › Number of Parts · site JSON · type HumanMadeObject · PhysicalCharacteristics.Miniature_Chess_Parts

C#

public static HumanMadeObject Miniature_Chess_Parts()
{
    var chess = new HumanMadeObject()
        .WithContext()
        .WithId("https://linked.art/example/object/chess/1")
        .WithLabel("Miniature Chess")
        .WithComponentCount(36);

    chess.IdentifiedBy = [
        new Name("Vessel with miniature chess set").AsPrimaryName()
    ];            

    return chess;
}
  • Role shortcuts AsPrimaryName, AsAccessionNumber and AsSystemAssignedNumber each add a single classification, with the AAT terms Primary Name, Accession Number and System Number.
  • Dimensions and physical description Each helper builds a Dimension with its AAT type, value and unit, or a classification with its metatype: height, width, colour, shape, page count, component count, file size, duration in days.

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/chess/1",
  "type": "HumanMadeObject",
  "_label": "Miniature Chess",
  "dimension": [
    {
      "type": "Dimension",
      "value": 36,
      "unit": {
        "id": "http://vocab.getty.edu/aat/300241583",
        "type": "MeasurementUnit",
        "_label": "Components"
      },
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404433",
          "type": "Type",
          "_label": "Count"
        }
      ]
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Vessel with miniature chess set",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/chess/1",
  "type": "HumanMadeObject",
  "_label": "Miniature Chess",
  "identified_by": [
    {
      "type": "Name",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ],
      "content": "Vessel with miniature chess set"
    }
  ],
  "dimension": [
    {
      "type": "Dimension",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404433",
          "type": "Type",
          "_label": "Count"
        }
      ],
      "value": 36,
      "unit": {
        "id": "http://vocab.getty.edu/aat/300241583",
        "type": "MeasurementUnit",
        "_label": "Components"
      }
    }
  ]
}

Comparison

The two documents are equivalent (property order ignored, array order significant).

Properties used

classified_as content dimension identified_by unit value

Vocabulary terms

Components Count Primary Name