Linked Art in C#

object/ccp/1 matches the site

A print at the Yale Center for British Art, Chaucer's Canterbury Pilgrims, made from a specific copper plate held at the Yale University Art Gallery.

On linked.art: Object Production and Destruction › Reproduction from an Identifiable Source · site JSON · type HumanMadeObject · ProductionDestruction.Canterbury_1

C#

public static HumanMadeObject Canterbury_1()
{
    var ccp = new HumanMadeObject()
        .WithContext()
        .WithId("https://linked.art/example/object/ccp/1")
        .WithLabel("Chaucer's Canterbury Pilgrims")
        .WithClassifiedAs(Aat.Print, Aat.TypeOfWork);

    ccp.ProducedBy = new Production().WithLabel("Printing from Plate");
    ccp.ProducedBy.UsedSpecificObject = [
        new HumanMadeObject()
            .WithId("https://linked.art/example/object/ccp-plate")
            .WithLabel("Plate for CCP")
    ];

    return ccp;
}
  • Metatype classification The second argument classifies the first, not the object: WithClassifiedAs(Aat.Description, Aat.Statement) says this is a Description, and Description is a kind of Statement. The Plain C# form shows the nesting.

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/ccp/1",
  "type": "HumanMadeObject",
  "_label": "Chaucer's Canterbury Pilgrims",
  "produced_by": {
    "type": "Production",
    "_label": "Printing from Plate",
    "used_specific_object": [
      {
        "id": "https://linked.art/example/object/ccp-plate",
        "type": "HumanMadeObject",
        "_label": "Plate for CCP"
      }
    ]
  },
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300041273",
      "type": "Type",
      "_label": "Print",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435443",
          "type": "Type",
          "_label": "Type of Work"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/ccp/1",
  "type": "HumanMadeObject",
  "_label": "Chaucer's Canterbury Pilgrims",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300041273",
      "type": "Type",
      "_label": "Print",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435443",
          "type": "Type",
          "_label": "Type of Work"
        }
      ]
    }
  ],
  "produced_by": {
    "type": "Production",
    "_label": "Printing from Plate",
    "used_specific_object": [
      {
        "id": "https://linked.art/example/object/ccp-plate",
        "type": "HumanMadeObject",
        "_label": "Plate for CCP"
      }
    ]
  }
}

Comparison

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

Properties used

classified_as produced_by used_specific_object

Vocabulary terms

Print Type of Work