Linked Art in C#

object/kellerdana/1 matches the site

In 1964, Deane Keller created a copy of Daniel Huntington's portrait of James Dwight Dana, from 1858.

On linked.art: Object Production and Destruction › Inspirations, Studies or Copies · site JSON · type HumanMadeObject · ProductionDestruction.KellerDana_1_Influenced

C#

public static HumanMadeObject KellerDana_1_Influenced()
{
    var dana = new HumanMadeObject()
        .WithContext()
        .WithId("https://linked.art/example/object/kellerdana/1")
        .WithLabel("Copy of Huntington Portrait")
        .WithClassifiedAs(Aat.Painting, Aat.TypeOfWork);

    dana.ProducedBy =
        new Production()
        {
            CarriedOutBy = [
                new Person()
                    .WithId("https://linked.art/example/person/keller")
                    .WithLabel("Deane Keller")
            ],
            InfluencedBy = [
                new HumanMadeObject()
                    .WithId("https://linked.art/example/object/huntingtondana")
                    .WithLabel("Huntington Portrait of Dana")
            ]
        };

    return dana;
}
  • 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/kellerdana/1",
  "type": "HumanMadeObject",
  "_label": "Copy of Huntington Portrait",
  "produced_by": {
    "type": "Production",
    "carried_out_by": [
      {
        "id": "https://linked.art/example/person/keller",
        "type": "Person",
        "_label": "Deane Keller"
      }
    ],
    "influenced_by": [
      {
        "id": "https://linked.art/example/object/huntingtondana",
        "type": "HumanMadeObject",
        "_label": "Huntington Portrait of Dana"
      }
    ]
  },
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300033618",
      "type": "Type",
      "_label": "Painting",
      "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/kellerdana/1",
  "type": "HumanMadeObject",
  "_label": "Copy of Huntington Portrait",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300033618",
      "type": "Type",
      "_label": "Painting",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435443",
          "type": "Type",
          "_label": "Type of Work"
        }
      ]
    }
  ],
  "produced_by": {
    "type": "Production",
    "carried_out_by": [
      {
        "id": "https://linked.art/example/person/keller",
        "type": "Person",
        "_label": "Deane Keller"
      }
    ],
    "influenced_by": [
      {
        "id": "https://linked.art/example/object/huntingtondana",
        "type": "HumanMadeObject",
        "_label": "Huntington Portrait of Dana"
      }
    ]
  }
}

Comparison

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

Properties used

carried_out_by classified_as influenced_by produced_by

Vocabulary terms

Painting Type of Work