Linked Art in C#

event/christies_24477_16/1 matches the site

Lot 16 was auctioned as part of the auction above.

On linked.art: Auctions › Auction of Lot · site JSON · type Activity · Auctions.Auction_Of_Lot

C#

public static Activity Auction_Of_Lot()
{
    var auctionOfLot = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/event/christies_24477_16/1")
        .WithLabel("Auction of Lot 16")
        .WithClassifiedAs(Aat.Term("300420001", "Auction of Lot"));

    auctionOfLot.IdentifiedBy = [new Name("Auction of Lot 16").AsPrimaryName()];

    auctionOfLot.UsedSpecificObject = [
        new Set()
            .WithId("https://linked.art/example/set/24477_16_objects")
            .WithLabel("Lot 16")
    ];

    auctionOfLot.PartOf = [
        new Activity().WithId("https://linked.art/example/event/christies_24477")
    ];

    return auctionOfLot;
}
  • 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_16/1",
  "type": "Activity",
  "_label": "Auction of Lot 16",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300420001",
      "type": "Type",
      "_label": "Auction of Lot"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Auction of Lot 16",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ]
    }
  ],
  "used_specific_object": [
    {
      "id": "https://linked.art/example/set/24477_16_objects",
      "type": "Set",
      "_label": "Lot 16"
    }
  ],
  "part_of": [
    {
      "id": "https://linked.art/example/event/christies_24477",
      "type": "Activity"
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/event/christies_24477_16/1",
  "type": "Activity",
  "_label": "Auction of Lot 16",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300420001",
      "type": "Type",
      "_label": "Auction of Lot"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ],
      "content": "Auction of Lot 16"
    }
  ],
  "used_specific_object": [
    {
      "id": "https://linked.art/example/set/24477_16_objects",
      "type": "Set",
      "_label": "Lot 16"
    }
  ],
  "part_of": [
    {
      "id": "https://linked.art/example/event/christies_24477",
      "type": "Activity"
    }
  ]
}

Comparison

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

Properties used

classified_as content identified_by part_of used_specific_object

Vocabulary terms

Primary Name Auction of Lot