Linked Art in C#

text/catalog_24477/1 matches the site

On linked.art: Auctions › Auction Catalog · site JSON · type LinguisticObject · Auctions.Auction_Catalog

C#

public static LinguisticObject Auction_Catalog()
{
    var catalog = new LinguisticObject()
        .WithContext()
        .WithId("https://linked.art/example/text/catalog_24477/1")
        .WithLabel("Auction Catalog")
        .WithClassifiedAs(Aat.AuctionCatalog, Aat.TypeOfWork);

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

    catalog.About = [
        new Activity()
            .WithId("https://linked.art/example/event/christies_24477")
            .WithLabel("Impressionist Sale")
    ];

    return catalog;
}
  • Metatype classification The second argument classifies the first, not the object: WithClassifiedAs(Aat.Description, Aat.Statement) says this is a Description, and Description is a kind of Statement. The Plain C# form shows the nesting.
  • Role shortcuts AsPrimaryName, AsAccessionNumber and AsSystemAssignedNumber each add a single classification, with the AAT terms Primary Name, Accession Number and System Number.

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/text/catalog_24477/1",
  "type": "LinguisticObject",
  "_label": "Auction Catalog",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300026068",
      "type": "Type",
      "_label": "Auction Catalog",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435443",
          "type": "Type",
          "_label": "Type of Work"
        }
      ]
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Impressionist & Modern Evening Sale Catalog",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ]
    }
  ],
  "about": [
    {
      "id": "https://linked.art/example/event/christies_24477",
      "type": "Activity",
      "_label": "Impressionist Sale"
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/text/catalog_24477/1",
  "type": "LinguisticObject",
  "_label": "Auction Catalog",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300026068",
      "type": "Type",
      "_label": "Auction Catalog",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435443",
          "type": "Type",
          "_label": "Type of Work"
        }
      ]
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ],
      "content": "Impressionist & Modern Evening Sale Catalog"
    }
  ],
  "about": [
    {
      "id": "https://linked.art/example/event/christies_24477",
      "type": "Activity",
      "_label": "Impressionist Sale"
    }
  ]
}

Comparison

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

Properties used

about classified_as content identified_by

Vocabulary terms

Auction Catalog Primary Name Type of Work