Linked Art in C#

set/24477_16_objects/2 matches the site

Lot 16 had an estimated price of $25,000,000:

On linked.art: Auctions › Pre-set Prices · site JSON · type Set · Auctions.Lot_Estimated_Price

C#

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

    lot.Dimension = [
        new MonetaryAmount
        {
            Value = 25000000,
            Currency = Aat.UsDollars.WithNotation("USD")
        }.WithClassifiedAs(Aat.Term("300417244", "Estimated Price"))
    ];

    return lot;
}
  • 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/2",
  "type": "Set",
  "_label": "Set of Objects for Lot 16",
  "dimension": [
    {
      "type": "MonetaryAmount",
      "value": 25000000,
      "currency": {
        "id": "http://vocab.getty.edu/aat/300411994",
        "type": "Currency",
        "_label": "US Dollars",
        "notation": "USD"
      },
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300417244",
          "type": "Type",
          "_label": "Estimated Price"
        }
      ]
    }
  ],
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300411307",
      "type": "Type",
      "_label": "Auction Lot"
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/set/24477_16_objects/2",
  "type": "Set",
  "_label": "Set of Objects for Lot 16",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300411307",
      "type": "Type",
      "_label": "Auction Lot"
    }
  ],
  "dimension": [
    {
      "type": "MonetaryAmount",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300417244",
          "type": "Type",
          "_label": "Estimated Price"
        }
      ],
      "value": 25000000,
      "currency": {
        "id": "http://vocab.getty.edu/aat/300411994",
        "type": "Currency",
        "_label": "US Dollars",
        "notation": "USD"
      }
    }
  ]
}

Comparison

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

Properties used

classified_as currency dimension notation value

Vocabulary terms

US Dollars Auction Lot Estimated Price