Linked Art in C#

set/exhset/1 matches the site

The set of objects in an exhibition.

On linked.art: Exhibitions › Features · site JSON · type Set · Exhibitions.Exhibition_Objects

C#

public static Set Exhibition_Objects()
{
    var set = new Set()
        .WithContext()
        .WithId("https://linked.art/example/set/exhset/1")
        .WithLabel("Exhibition objects")
        .WithClassifiedAs(Aat.Term("300378926", "Exhibition Collection"));

    set.IdentifiedBy = [new Name("Objects in Manet and Modern Beauty").AsPrimaryName()];

    set.ReferredToBy = [
        new LinguisticObject()
            .WithClassifiedAs(Aat.Description, Aat.Statement)
            .WithContent("Objects in the exhibition Manet and Modern Beauty at the Art Institute of Chicago and the Getty Museum")
    ];

    set.CreatedBy = new Creation()
    {
        TimeSpan = new LinkedArtTimeSpan
        {
            BeginOfTheBegin = new LinkedArtDate(2019, 5, 1),
            EndOfTheEnd = new LinkedArtDate(2019, 5, 1).EndOfDay()
        }
    };

    return set;
}
  • 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.
  • Role shortcuts AsPrimaryName, AsAccessionNumber and AsSystemAssignedNumber each add a single classification, with the AAT terms Primary Name, Accession Number and System Number.
  • Terms outside the registry The vocabulary registry holds only the terms linked.art itself publishes, so a dataset's own concepts, places and people are written with Aat.Term, Tgn.Place and Ulan.Person, giving the id and the label.

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/set/exhset/1",
  "type": "Set",
  "_label": "Exhibition objects",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300378926",
      "type": "Type",
      "_label": "Exhibition Collection"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Objects in Manet and Modern Beauty",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ]
    }
  ],
  "referred_to_by": [
    {
      "type": "LinguisticObject",
      "content": "Objects in the exhibition Manet and Modern Beauty at the Art Institute of Chicago and the Getty Museum",
      "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"
            }
          ]
        }
      ]
    }
  ],
  "created_by": {
    "type": "Creation",
    "timespan": {
      "type": "TimeSpan",
      "begin_of_the_begin": "2019-05-01T00:00:00Z",
      "end_of_the_end": "2019-05-01T23:59:59Z"
    }
  }
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/set/exhset/1",
  "type": "Set",
  "_label": "Exhibition objects",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300378926",
      "type": "Type",
      "_label": "Exhibition Collection"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ],
      "content": "Objects in Manet and Modern Beauty"
    }
  ],
  "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": "Objects in the exhibition Manet and Modern Beauty at the Art Institute of Chicago and the Getty Museum"
    }
  ],
  "created_by": {
    "type": "Creation",
    "timespan": {
      "type": "TimeSpan",
      "begin_of_the_begin": "2019-05-01T00:00:00Z",
      "end_of_the_end": "2019-05-01T23:59:59Z"
    }
  }
}

Comparison

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

Properties used

begin_of_the_begin classified_as content created_by end_of_the_end identified_by referred_to_by timespan

Vocabulary terms

Exhibition Collection Primary Name Brief Text Description