Linked Art in C#

provenance/nuveen_commission/1 matches the site

The "Nuveen Painting" by Jim Dine was commissioned by Richard Franke in 1985.

On linked.art: Promised Activities › Commissions for Artwork · site JSON · type Activity · ProvenancePromises.Commission_Of_Painting

C#

public static Activity Commission_Of_Painting()
{
    var commission = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/provenance/nuveen_commission/1")
        .WithLabel("Commission of Painting")
        .WithClassifiedAs(Aat.ProvenanceActivity)
        .WithClassifiedAs(Aat.Term("300393199", "Commissioning"));

    var franke = new Person()
        .WithId("https://linked.art/example/person/franke")
        .WithLabel("Richard Franke");
    var dine = new Person()
        .WithId("https://linked.art/example/person/dine")
        .WithLabel("Jim Dine");

    commission.Part = [
        new Activity()
            .WithLabel("Obligation to Pay Artist")
            .WithClassifiedAs(Aat.PromiseActivity)
            .WithStatement(Aat.Description, "Promise to pay for a painting to be created by the artist")
            .WithCarriedOutBy(franke)
            .WithParticipant(dine),
        new Activity()
            .WithLabel("Obligation to Produce Painting")
            .WithClassifiedAs(Aat.PromiseActivity)
            .WithReferredToBy(
                new LinguisticObject()
                    .WithClassifiedAs(Aat.Description)
                    .WithContent("Promise to produce a painting for the commissioning party"))
            .WithCarriedOutBy(dine)
            .WithParticipant(franke)
    ];

    return commission;
}
  • Statement in one call WithStatement creates the LinguisticObject, classifies it as the given type and as Brief Text, and adds it under referred_to_by.
  • 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/provenance/nuveen_commission/1",
  "type": "Activity",
  "_label": "Commission of Painting",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    },
    {
      "id": "http://vocab.getty.edu/aat/300393199",
      "type": "Type",
      "_label": "Commissioning"
    }
  ],
  "part": [
    {
      "type": "Activity",
      "_label": "Obligation to Pay Artist",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435599",
          "type": "Type",
          "_label": "Promise"
        }
      ],
      "carried_out_by": [
        {
          "id": "https://linked.art/example/person/franke",
          "type": "Person",
          "_label": "Richard Franke"
        }
      ],
      "referred_to_by": [
        {
          "type": "LinguisticObject",
          "content": "Promise to pay for a painting to be created by the artist",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300435416",
              "type": "Type",
              "_label": "Description",
              "classified_as": [
                {
                  "id": "http://vocab.getty.edu/aat/300418049",
                  "type": "Type",
                  "_label": "Brief Text"
                }
              ]
            }
          ]
        }
      ],
      "participant": [
        {
          "id": "https://linked.art/example/person/dine",
          "type": "Person",
          "_label": "Jim Dine"
        }
      ]
    },
    {
      "type": "Activity",
      "_label": "Obligation to Produce Painting",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435599",
          "type": "Type",
          "_label": "Promise"
        }
      ],
      "carried_out_by": [
        {
          "id": "https://linked.art/example/person/dine",
          "type": "Person",
          "_label": "Jim Dine"
        }
      ],
      "referred_to_by": [
        {
          "type": "LinguisticObject",
          "content": "Promise to produce a painting for the commissioning party",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300435416",
              "type": "Type",
              "_label": "Description"
            }
          ]
        }
      ],
      "participant": [
        {
          "id": "https://linked.art/example/person/franke",
          "type": "Person",
          "_label": "Richard Franke"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/nuveen_commission/1",
  "type": "Activity",
  "_label": "Commission of Painting",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    },
    {
      "id": "http://vocab.getty.edu/aat/300393199",
      "type": "Type",
      "_label": "Commissioning"
    }
  ],
  "part": [
    {
      "type": "Activity",
      "_label": "Obligation to Pay Artist",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435599",
          "type": "Type",
          "_label": "Promise"
        }
      ],
      "referred_to_by": [
        {
          "type": "LinguisticObject",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300435416",
              "type": "Type",
              "_label": "Description",
              "classified_as": [
                {
                  "id": "http://vocab.getty.edu/aat/300418049",
                  "type": "Type",
                  "_label": "Brief Text"
                }
              ]
            }
          ],
          "content": "Promise to pay for a painting to be created by the artist"
        }
      ],
      "carried_out_by": [
        {
          "id": "https://linked.art/example/person/franke",
          "type": "Person",
          "_label": "Richard Franke"
        }
      ],
      "participant": [
        {
          "id": "https://linked.art/example/person/dine",
          "type": "Person",
          "_label": "Jim Dine"
        }
      ]
    },
    {
      "type": "Activity",
      "_label": "Obligation to Produce Painting",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435599",
          "type": "Type",
          "_label": "Promise"
        }
      ],
      "referred_to_by": [
        {
          "type": "LinguisticObject",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300435416",
              "type": "Type",
              "_label": "Description"
            }
          ],
          "content": "Promise to produce a painting for the commissioning party"
        }
      ],
      "carried_out_by": [
        {
          "id": "https://linked.art/example/person/dine",
          "type": "Person",
          "_label": "Jim Dine"
        }
      ],
      "participant": [
        {
          "id": "https://linked.art/example/person/franke",
          "type": "Person",
          "_label": "Richard Franke"
        }
      ]
    }
  ]
}

Comparison

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

Properties used

carried_out_by classified_as content part participant referred_to_by

Vocabulary terms

Provenance Activity Commissioning Brief Text Description Promise