Linked Art in C#

object/nightwatch/4 matches the site

Having only a textual description of the materials in English, the content "Oil on Canvas" is recorded as referring to the painting as a "materials" (aat:300435429) statement:

On linked.art: Basic Patterns › Statements about an Entity · site JSON · type HumanMadeObject · BasicPatterns.NightWatch_4_Statements

C#

public static HumanMadeObject NightWatch_4_Statements()
{
    var nightWatch = new HumanMadeObject()
        .WithContext()
        .WithId("https://linked.art/example/object/nightwatch/4")
        .WithLabel("Night Watch by Rembrandt");

    var materials = new LinguisticObject()
        .WithClassifiedAs(
            Aat.MaterialsStatement,
            Aat.Statement)
        .WithContent("Oil on Canvas")
        .WithLanguage("300388277", "English", "en");
    
    nightWatch.ReferredToBy = [materials];

    return nightWatch;
}
  • 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/nightwatch/4",
  "type": "HumanMadeObject",
  "_label": "Night Watch by Rembrandt",
  "referred_to_by": [
    {
      "type": "LinguisticObject",
      "content": "Oil on Canvas",
      "language": [
        {
          "id": "http://vocab.getty.edu/aat/300388277",
          "type": "Language",
          "_label": "English",
          "notation": "en"
        }
      ],
      "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"
            }
          ]
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/nightwatch/4",
  "type": "HumanMadeObject",
  "_label": "Night Watch by Rembrandt",
  "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": "Oil on Canvas",
      "language": [
        {
          "id": "http://vocab.getty.edu/aat/300388277",
          "type": "Language",
          "_label": "English",
          "notation": "en"
        }
      ]
    }
  ]
}

Comparison

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

Properties used

classified_as content language notation referred_to_by

Vocabulary terms

English Brief Text Material Statement