Linked Art in C#

text/koot_nightwatch/3 matches the site

Koot's book is about The Night Watch.

On linked.art: Texts and Documents › References to other Entities · site JSON · type LinguisticObject · TextualDocuments.Koot_About

C#

public static LinguisticObject Koot_About()
{
    var koot = new LinguisticObject()
        .WithContext()
        .WithId("https://linked.art/example/text/koot_nightwatch/3")
        .WithLabel("Content of Koot's Night Watch")
        .WithClassifiedAs(Aat.Monograph, Aat.TypeOfWork);

    koot.About = [
        new HumanMadeObject()
            .WithId("https://linked.art/example/object/nightwatch")
            .WithLabel("The Night Watch")
    ];

    return koot;
}
  • 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/text/koot_nightwatch/3",
  "type": "LinguisticObject",
  "_label": "Content of Koot's Night Watch",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300060417",
      "type": "Type",
      "_label": "Monograph",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435443",
          "type": "Type",
          "_label": "Type of Work"
        }
      ]
    }
  ],
  "about": [
    {
      "id": "https://linked.art/example/object/nightwatch",
      "type": "HumanMadeObject",
      "_label": "The Night Watch"
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/text/koot_nightwatch/3",
  "type": "LinguisticObject",
  "_label": "Content of Koot's Night Watch",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300060417",
      "type": "Type",
      "_label": "Monograph",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435443",
          "type": "Type",
          "_label": "Type of Work"
        }
      ]
    }
  ],
  "about": [
    {
      "id": "https://linked.art/example/object/nightwatch",
      "type": "HumanMadeObject",
      "_label": "The Night Watch"
    }
  ]
}

Comparison

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

Properties used

about classified_as

Vocabulary terms

Monograph Type of Work