Linked Art in C#

event/stowe/1 matches the site

The Christie's auction of the Stowe House took place over 40 days in August and September, 1848 (Source).

On linked.art: Basic Patterns › Time Span Details · site JSON · type Activity · BasicPatterns.Stowe_Auction_1

C#

public static Activity Stowe_Auction_1()
{
    var stowe = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/event/stowe/1")
        .WithLabel("Auction of Stowe House")
        .WithClassifiedAs(Aat.AuctionEvent);

    var timespan = new LinkedArtTimeSpan().WithDaysDimension(3);
    timespan.BeginOfTheBegin = new LinkedArtDate(1848, 8, 1);
    timespan.EndOfTheBegin = new LinkedArtDate(1848, 8, 20).LastSecondOfDay();
    timespan.BeginOfTheEnd = new LinkedArtDate(1848, 9, 9);
    timespan.EndOfTheEnd = new LinkedArtDate(1848, 9, 30).LastSecondOfDay();
    timespan.IdentifiedBy = [
        new Name("40 days in August and September, 1848")
    ];

    stowe.TimeSpan = timespan;

    return stowe;
}
  • Dimensions and physical description Each helper builds a Dimension with its AAT type, value and unit, or a classification with its metatype: height, width, colour, shape, page count, component count, file size, duration in days.

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/event/stowe/1",
  "type": "Activity",
  "_label": "Auction of Stowe House",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300054751",
      "type": "Type",
      "_label": "Auction Event"
    }
  ],
  "timespan": {
    "type": "TimeSpan",
    "identified_by": [
      {
        "type": "Name",
        "content": "40 days in August and September, 1848"
      }
    ],
    "begin_of_the_begin": "1848-08-01T00:00:00Z",
    "end_of_the_begin": "1848-08-20T23:59:59Z",
    "begin_of_the_end": "1848-09-09T00:00:00Z",
    "end_of_the_end": "1848-09-30T23:59:59Z",
    "duration": {
      "type": "Dimension",
      "value": 3,
      "unit": {
        "id": "http://vocab.getty.edu/aat/300379242",
        "type": "MeasurementUnit",
        "_label": "days"
      }
    }
  }
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/event/stowe/1",
  "type": "Activity",
  "_label": "Auction of Stowe House",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300054751",
      "type": "Type",
      "_label": "Auction Event"
    }
  ],
  "timespan": {
    "type": "TimeSpan",
    "identified_by": [
      {
        "type": "Name",
        "content": "40 days in August and September, 1848"
      }
    ],
    "begin_of_the_begin": "1848-08-01T00:00:00Z",
    "end_of_the_begin": "1848-08-20T23:59:59Z",
    "begin_of_the_end": "1848-09-09T00:00:00Z",
    "end_of_the_end": "1848-09-30T23:59:59Z",
    "duration": {
      "type": "Dimension",
      "value": 3,
      "unit": {
        "id": "http://vocab.getty.edu/aat/300379242",
        "type": "MeasurementUnit",
        "_label": "days"
      }
    }
  }
}

Comparison

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

Properties used

begin_of_the_begin begin_of_the_end classified_as content duration end_of_the_begin end_of_the_end identified_by timespan unit value

Vocabulary terms

days Auction Event