Linked Art in C#

person/rembrandt/15 matches the site

Rembrandt is depicted in a digital image hosted at wikimedia.

On linked.art: Digital Integration › Digital Images · site JSON · type Person · Digital.Rembrandt_Representation

C#

public static Person Rembrandt_Representation()
{
    var rembrandt = new Person()
        .WithContext()
        .WithId("https://linked.art/example/person/rembrandt/15")
        .WithLabel("Rembrandt");

    var visual = new VisualItem();
    var digitalImage = new DigitalObject()
        .WithLabel("Image of Rembrandt")
        .WithClassifiedAs(Aat.DigitalImage);
    digitalImage.Format = "image/jpeg";
    digitalImage.AccessPoint = [
        new DigitalObject().WithId("https://upload.wikimedia.org/wikipedia/commons/b/bd/Rembrandt_van_Rijn_-_Self-Portrait_-_Google_Art_Project.jpg")
    ];
    visual.DigitallyShownBy = [digitalImage];
    rembrandt.Representation = [visual];

    return rembrandt;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/person/rembrandt/15",
  "type": "Person",
  "_label": "Rembrandt",
  "representation": [
    {
      "type": "VisualItem",
      "digitally_shown_by": [
        {
          "type": "DigitalObject",
          "_label": "Image of Rembrandt",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300215302",
              "type": "Type",
              "_label": "Digital Image"
            }
          ],
          "access_point": [
            {
              "id": "https://upload.wikimedia.org/wikipedia/commons/b/bd/Rembrandt_van_Rijn_-_Self-Portrait_-_Google_Art_Project.jpg",
              "type": "DigitalObject"
            }
          ],
          "format": "image/jpeg"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/person/rembrandt/15",
  "type": "Person",
  "_label": "Rembrandt",
  "representation": [
    {
      "type": "VisualItem",
      "digitally_shown_by": [
        {
          "type": "DigitalObject",
          "_label": "Image of Rembrandt",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300215302",
              "type": "Type",
              "_label": "Digital Image"
            }
          ],
          "format": "image/jpeg",
          "access_point": [
            {
              "id": "https://upload.wikimedia.org/wikipedia/commons/b/bd/Rembrandt_van_Rijn_-_Self-Portrait_-_Google_Art_Project.jpg",
              "type": "DigitalObject"
            }
          ]
        }
      ]
    }
  ]
}

Comparison

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

Properties used

access_point classified_as digitally_shown_by format representation

Vocabulary terms

Digital Image