Linked Art in C#

object/spring/5 matches the site

Spring by Manet has a description, explaining the object and its image.

On linked.art: Objects: Aboutness › Description · site JSON · type HumanMadeObject · Aboutness.Spring_5_Description

C#

public static HumanMadeObject Spring_5_Description()
{
    var spring = new HumanMadeObject()
        .WithContext()
        .WithId("https://linked.art/example/object/spring/5")
        .WithLabel("Jeanne (Spring) by Manet");


    spring.ReferredToBy = [
        new LinguisticObject()
            .WithClassifiedAs(Aat.Description, Aat.Statement)
            .WithContent("A chic young woman in a day dress with floral accents holds a parasol against a background of exuberant foliage.")
    ];

    spring.Shows = [
        new VisualItem()
            .WithId("https://linked.art/example/visual/spring")
            .WithLabel("Visual Content of Spring")
    ];

    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/5",
  "type": "HumanMadeObject",
  "_label": "Jeanne (Spring) by Manet",
  "shows": [
    {
      "id": "https://linked.art/example/visual/spring",
      "type": "VisualItem",
      "_label": "Visual Content of Spring"
    }
  ],
  "referred_to_by": [
    {
      "type": "LinguisticObject",
      "content": "A chic young woman in a day dress with floral accents holds a parasol against a background of exuberant foliage.",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435416",
          "type": "Type",
          "_label": "Description",
          "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/spring/5",
  "type": "HumanMadeObject",
  "_label": "Jeanne (Spring) by Manet",
  "referred_to_by": [
    {
      "type": "LinguisticObject",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435416",
          "type": "Type",
          "_label": "Description",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300418049",
              "type": "Type",
              "_label": "Brief Text"
            }
          ]
        }
      ],
      "content": "A chic young woman in a day dress with floral accents holds a parasol against a background of exuberant foliage."
    }
  ],
  "shows": [
    {
      "id": "https://linked.art/example/visual/spring",
      "type": "VisualItem",
      "_label": "Visual Content of Spring"
    }
  ]
}

Comparison

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

Properties used

classified_as content referred_to_by shows

Vocabulary terms

Brief Text Description