Linked Art in C#

object/spring/support matches the site

The canvas support is part of the overall painting of Spring.

On linked.art: Basic Patterns › Parts · site JSON · type HumanMadeObject · BasicPatterns.Spring_Parts_Support

C#

public static HumanMadeObject Spring_Parts_Support()
{
    var spring = new HumanMadeObject()
        .WithContext()
        .WithId("https://linked.art/example/object/spring/support")
        .WithLabel("Support of Spring")
        .WithClassifiedAs(
            Aat.Support,
            Aat.PartType);


    var materials = new LinguisticObject()
        .WithClassifiedAs(
            Aat.MaterialsStatement,
            Aat.Statement)
        .WithContent("Canvas");

    spring.ReferredToBy = [materials];

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

    return spring;

}
  • 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/support",
  "type": "HumanMadeObject",
  "_label": "Support of Spring",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300014844",
      "type": "Type",
      "_label": "Support",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300241583",
          "type": "Type",
          "_label": "Part Type"
        }
      ]
    }
  ],
  "referred_to_by": [
    {
      "type": "LinguisticObject",
      "content": "Canvas",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435429",
          "type": "Type",
          "_label": "Material Statement",
          "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/support",
  "type": "HumanMadeObject",
  "_label": "Support of Spring",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300014844",
      "type": "Type",
      "_label": "Support",
      "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/300435429",
          "type": "Type",
          "_label": "Material Statement",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300418049",
              "type": "Type",
              "_label": "Brief Text"
            }
          ]
        }
      ],
      "content": "Canvas"
    }
  ],
  "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

Support Part Type Brief Text Material Statement