Linked Art in C#

object/spring/back matches the site

On the back of Manet's "Spring" is an inscription "11505F".

On linked.art: Objects: Physical Characteristics › Sides of an Object · site JSON · type HumanMadeObject · PhysicalCharacteristics.Spring_Back

C#

public static HumanMadeObject Spring_Back()
{
    var springBack = new HumanMadeObject()
        .WithContext()
        .WithId("https://linked.art/example/object/spring/back")
        .WithLabel("Back of Spring by Manet")
        .WithClassifiedAs(Aat.Back, Aat.PartType);

    springBack.ReferredToBy = [
        new LinguisticObject()
            .WithClassifiedAs(Aat.InscriptionStatement, Aat.Statement)
            .WithContent("11505F")
    ];

    springBack.PartOf = [
        new HumanMadeObject()
            .WithId("https://linked.art/example/object/spring")
            .WithLabel("Jeanne (Spring) by Manet")
    ];

    return springBack;
}
  • 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/spring/back",
  "type": "HumanMadeObject",
  "_label": "Back of Spring by Manet",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300190692",
      "type": "Type",
      "_label": "Back Part",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300241583",
          "type": "Type",
          "_label": "Part Type"
        }
      ]
    }
  ],
  "referred_to_by": [
    {
      "type": "LinguisticObject",
      "content": "11505F",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435414",
          "type": "Type",
          "_label": "Inscription",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300418049",
              "type": "Type",
              "_label": "Brief Text"
            }
          ]
        }
      ]
    }
  ],
  "part_of": [
    {
      "id": "https://linked.art/example/object/spring",
      "type": "HumanMadeObject",
      "_label": "Jeanne (Spring) by Manet"
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/spring/back",
  "type": "HumanMadeObject",
  "_label": "Back of Spring by Manet",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300190692",
      "type": "Type",
      "_label": "Back Part",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300241583",
          "type": "Type",
          "_label": "Part Type"
        }
      ]
    }
  ],
  "referred_to_by": [
    {
      "type": "LinguisticObject",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435414",
          "type": "Type",
          "_label": "Inscription",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300418049",
              "type": "Type",
              "_label": "Brief Text"
            }
          ]
        }
      ],
      "content": "11505F"
    }
  ],
  "part_of": [
    {
      "id": "https://linked.art/example/object/spring",
      "type": "HumanMadeObject",
      "_label": "Jeanne (Spring) by Manet"
    }
  ]
}

Comparison

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

Properties used

classified_as content part_of referred_to_by

Vocabulary terms

Back Part Part Type Brief Text Inscription