Linked Art in C#

activity/exhb/1 matches the site

The Art Institute of Chicago exhibited Manet and Modern Beauty in Chicago with a specific set of objects, and is part of the larger multi-venue exhibition.

On linked.art: Exhibitions › Multiple Venues · site JSON · type Activity · Exhibitions.Manet_and_Modern_Beauty_AIC

C#

public static Activity Manet_and_Modern_Beauty_AIC()
{
    var activity = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/activity/exhb/1")
        .WithLabel("Manet and Modern Beauty (AIC)")
        .WithClassifiedAs(Aat.Term("300054766", "Exhibiting"));

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

    activity.TimeSpan = new LinkedArtTimeSpan()
    {
        BeginOfTheBegin = new LinkedArtDate(2019, 5, 26),
        EndOfTheEnd = new LinkedArtDate(2019, 9, 8).EndOfDay()
    };

    activity.TookPlaceAt = [
        Tgn.Place("7013596", "Chicago")
            .WithClassifiedAs(Aat.City)
    ];

    activity.CarriedOutBy = [
        Ulan.Group("500304669", "Art Institute")
            .WithClassifiedAs(Aat.Museum)
    ];

    activity.UsedSpecificObject = [
        new Set()
            .WithId("https://linked.art/example/set/exhset")
            .WithLabel("Exhibition objects")
    ];
    activity.InfluencedBy = [
        new PropositionalObject()
            .WithId("https://linked.art/example/concept/exhidea")
            .WithLabel("Idea for Manet and Modern Beauty")
    ];

    activity.PartOf = [
        new Activity()
            .WithId("https://linked.art/example/event/exhab")
            .WithLabel("Manet and Modern Beauty")
    ];

    return activity;
}
  • 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/activity/exhb/1",
  "type": "Activity",
  "_label": "Manet and Modern Beauty (AIC)",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300054766",
      "type": "Type",
      "_label": "Exhibiting"
    }
  ],
  "carried_out_by": [
    {
      "id": "http://vocab.getty.edu/ulan/500304669",
      "type": "Group",
      "_label": "Art Institute",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300312281",
          "type": "Type",
          "_label": "Museum"
        }
      ]
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Manet and Modern Beauty",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ]
    }
  ],
  "timespan": {
    "type": "TimeSpan",
    "begin_of_the_begin": "2019-05-26T00:00:00Z",
    "end_of_the_end": "2019-09-08T23:59:59Z"
  },
  "took_place_at": [
    {
      "id": "http://vocab.getty.edu/tgn/7013596",
      "type": "Place",
      "_label": "Chicago",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300008389",
          "type": "Type",
          "_label": "City"
        }
      ]
    }
  ],
  "used_specific_object": [
    {
      "id": "https://linked.art/example/set/exhset",
      "type": "Set",
      "_label": "Exhibition objects"
    }
  ],
  "part_of": [
    {
      "id": "https://linked.art/example/event/exhab",
      "type": "Activity",
      "_label": "Manet and Modern Beauty"
    }
  ],
  "influenced_by": [
    {
      "id": "https://linked.art/example/concept/exhidea",
      "type": "PropositionalObject",
      "_label": "Idea for Manet and Modern Beauty"
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/activity/exhb/1",
  "type": "Activity",
  "_label": "Manet and Modern Beauty (AIC)",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300054766",
      "type": "Type",
      "_label": "Exhibiting"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ],
      "content": "Manet and Modern Beauty"
    }
  ],
  "timespan": {
    "type": "TimeSpan",
    "begin_of_the_begin": "2019-05-26T00:00:00Z",
    "end_of_the_end": "2019-09-08T23:59:59Z"
  },
  "took_place_at": [
    {
      "id": "http://vocab.getty.edu/tgn/7013596",
      "type": "Place",
      "_label": "Chicago",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300008389",
          "type": "Type",
          "_label": "City"
        }
      ]
    }
  ],
  "carried_out_by": [
    {
      "id": "http://vocab.getty.edu/ulan/500304669",
      "type": "Group",
      "_label": "Art Institute",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300312281",
          "type": "Type",
          "_label": "Museum"
        }
      ]
    }
  ],
  "used_specific_object": [
    {
      "id": "https://linked.art/example/set/exhset",
      "type": "Set",
      "_label": "Exhibition objects"
    }
  ],
  "part_of": [
    {
      "id": "https://linked.art/example/event/exhab",
      "type": "Activity",
      "_label": "Manet and Modern Beauty"
    }
  ],
  "influenced_by": [
    {
      "id": "https://linked.art/example/concept/exhidea",
      "type": "PropositionalObject",
      "_label": "Idea for Manet and Modern Beauty"
    }
  ]
}

Comparison

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

Properties used

begin_of_the_begin carried_out_by classified_as content end_of_the_end identified_by influenced_by part_of timespan took_place_at used_specific_object

Vocabulary terms

Art Institute Chicago City Exhibiting Museum Primary Name