Linked Art in C#

event/christies_24477/1 matches the site

An auction event takes place on November 5th, 2014 at the New York premises of Christie's.

On linked.art: Auctions › Auction · site JSON · type Activity · Auctions.Auction_Event

C#

public static Activity Auction_Event()
{
    var auction = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/event/christies_24477/1")
        .WithLabel("Impressionist Sale")
        .WithClassifiedAs(Aat.AuctionEvent);

    auction.IdentifiedBy = [new Name("Impressionist & Modern Evening Sale").AsPrimaryName()];

    auction.TimeSpan = new LinkedArtTimeSpan
    {
        Label = "Nov 5, 2014",
        BeginOfTheBegin = new LinkedArtDate(2014, 11, 5, 17, 0, 0),
        EndOfTheEnd = new LinkedArtDate(2014, 11, 5).EndOfDay()
    };

    auction.TookPlaceAt = [
        new Place()
            .WithId("https://linked.art/example/place/christies_nyc")
            .WithLabel("Christie's, New York")
            .WithClassifiedAs(Aat.Term("300005234", "Auction House (place)"))
    ];

    auction.CarriedOutBy = [
        new Group()
            .WithId("https://linked.art/example/group/christies")
            .WithLabel("Christie's")
            .WithClassifiedAs(Aat.Term("300417515", "Auction House (organization)"))
    ];

    return auction;
}
  • 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/event/christies_24477/1",
  "type": "Activity",
  "_label": "Impressionist Sale",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300054751",
      "type": "Type",
      "_label": "Auction Event"
    }
  ],
  "carried_out_by": [
    {
      "id": "https://linked.art/example/group/christies",
      "type": "Group",
      "_label": "Christie's",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300417515",
          "type": "Type",
          "_label": "Auction House (organization)"
        }
      ]
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Impressionist & Modern Evening Sale",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ]
    }
  ],
  "timespan": {
    "type": "TimeSpan",
    "_label": "Nov 5, 2014",
    "begin_of_the_begin": "2014-11-05T17:00:00Z",
    "end_of_the_end": "2014-11-05T23:59:59Z"
  },
  "took_place_at": [
    {
      "id": "https://linked.art/example/place/christies_nyc",
      "type": "Place",
      "_label": "Christie's, New York",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300005234",
          "type": "Type",
          "_label": "Auction House (place)"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/event/christies_24477/1",
  "type": "Activity",
  "_label": "Impressionist Sale",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300054751",
      "type": "Type",
      "_label": "Auction Event"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ],
      "content": "Impressionist & Modern Evening Sale"
    }
  ],
  "timespan": {
    "type": "TimeSpan",
    "_label": "Nov 5, 2014",
    "begin_of_the_begin": "2014-11-05T17:00:00Z",
    "end_of_the_end": "2014-11-05T23:59:59Z"
  },
  "took_place_at": [
    {
      "id": "https://linked.art/example/place/christies_nyc",
      "type": "Place",
      "_label": "Christie's, New York",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300005234",
          "type": "Type",
          "_label": "Auction House (place)"
        }
      ]
    }
  ],
  "carried_out_by": [
    {
      "id": "https://linked.art/example/group/christies",
      "type": "Group",
      "_label": "Christie's",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300417515",
          "type": "Type",
          "_label": "Auction House (organization)"
        }
      ]
    }
  ]
}

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 timespan took_place_at

Vocabulary terms

Auction House (place) Auction Event Primary Name Auction House (organization)