Linked Art in C#

set/24477_16_objects/1 matches the site

Lot 16 consists of a single painting, Spring.

On linked.art: Auctions › Set of Objects · site JSON · type Set · Auctions.Auction_Lot

C#

public static Set Auction_Lot()
{
    var lot = new Set()
        .WithContext()
        .WithId("https://linked.art/example/set/24477_16_objects/1")
        .WithLabel("Set of Objects for Lot 16")
        .WithClassifiedAs(Aat.Term("300411307", "Auction Lot"));

    lot.IdentifiedBy = [
        new Name("Lot 16: Le Printemps").AsPrimaryName(),
        new Identifier("16").WithClassifiedAs(Aat.AuctionLotNumber)
    ];

    return lot;
}
  • 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/24477_16_objects/1",
  "type": "Set",
  "_label": "Set of Objects for Lot 16",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300411307",
      "type": "Type",
      "_label": "Auction Lot"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Lot 16: Le Printemps",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ]
    },
    {
      "type": "Identifier",
      "content": "16",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404628",
          "type": "Type",
          "_label": "Lot Number"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/set/24477_16_objects/1",
  "type": "Set",
  "_label": "Set of Objects for Lot 16",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300411307",
      "type": "Type",
      "_label": "Auction Lot"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ],
      "content": "Lot 16: Le Printemps"
    },
    {
      "type": "Identifier",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404628",
          "type": "Type",
          "_label": "Lot Number"
        }
      ],
      "content": "16"
    }
  ]
}

Comparison

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

Properties used

classified_as content identified_by

Vocabulary terms

Lot Number Primary Name Auction Lot