Linked Art in C#

object/okeeffe-gok/1 matches the site

Copies of a photograph, taken by Alfred Stieglitz of Georgia O'Keeffe, are printed from the same negative at different times and now owned by different organizations: Yale University Art Gallery, National Gallery of Art, and the Georgia O'Keeffe Museum

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

C#

public static HumanMadeObject OKeeffe_Gok_1()
{
    var gok = new HumanMadeObject()
        .WithContext()
        .WithId("https://linked.art/example/object/okeeffe-gok/1")
        .WithLabel("GOK 1918, GOKM")
        .WithClassifiedAs(Aat.Photograph, Aat.TypeOfWork);

    gok.IdentifiedBy = [ new Identifier("2014.3.78").AsAccessionNumber() ];

    gok.Shows = [
        new VisualItem()
            .WithId("https://linked.art/example/visual/okeeffe")
            .WithLabel("Visual Content of GOK 1918")
    ];

    gok.ProducedBy = new Production().WithLabel("Printing of Photograph");
    gok.ProducedBy.UsedSpecificObject = [
        new HumanMadeObject()
            .WithId("https://linked.art/example/object/okeeffe-negative")
            .WithLabel("Negative of GOK 1918")
    ];

    return gok;
}
  • 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.
  • Role shortcuts AsPrimaryName, AsAccessionNumber and AsSystemAssignedNumber each add a single classification, with the AAT terms Primary Name, Accession Number and System Number.

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/okeeffe-gok/1",
  "type": "HumanMadeObject",
  "_label": "GOK 1918, GOKM",
  "produced_by": {
    "type": "Production",
    "_label": "Printing of Photograph",
    "used_specific_object": [
      {
        "id": "https://linked.art/example/object/okeeffe-negative",
        "type": "HumanMadeObject",
        "_label": "Negative of GOK 1918"
      }
    ]
  },
  "shows": [
    {
      "id": "https://linked.art/example/visual/okeeffe",
      "type": "VisualItem",
      "_label": "Visual Content of GOK 1918"
    }
  ],
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300046300",
      "type": "Type",
      "_label": "Photograph",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435443",
          "type": "Type",
          "_label": "Type of Work"
        }
      ]
    }
  ],
  "identified_by": [
    {
      "type": "Identifier",
      "content": "2014.3.78",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300312355",
          "type": "Type",
          "_label": "Accession Number"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/okeeffe-gok/1",
  "type": "HumanMadeObject",
  "_label": "GOK 1918, GOKM",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300046300",
      "type": "Type",
      "_label": "Photograph",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435443",
          "type": "Type",
          "_label": "Type of Work"
        }
      ]
    }
  ],
  "identified_by": [
    {
      "type": "Identifier",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300312355",
          "type": "Type",
          "_label": "Accession Number"
        }
      ],
      "content": "2014.3.78"
    }
  ],
  "shows": [
    {
      "id": "https://linked.art/example/visual/okeeffe",
      "type": "VisualItem",
      "_label": "Visual Content of GOK 1918"
    }
  ],
  "produced_by": {
    "type": "Production",
    "_label": "Printing of Photograph",
    "used_specific_object": [
      {
        "id": "https://linked.art/example/object/okeeffe-negative",
        "type": "HumanMadeObject",
        "_label": "Negative of GOK 1918"
      }
    ]
  }
}

Comparison

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

Properties used

classified_as content identified_by produced_by shows used_specific_object

Vocabulary terms

Photograph Accession Number Type of Work