Linked Art in C#

provenance/durand_payne/1 matches the site

Oliver Payne acquired Spring from the Durand-Ruel Gallery in New York in 1909

On linked.art: Object Acquisition and Loan › Object Acquisition · site JSON · type Activity · ProvenanceAcquisition.Purchase_Of_Spring_By_Payne

C#

public static Activity Purchase_Of_Spring_By_Payne()
{
    var purchase = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/provenance/durand_payne/1")
        .WithLabel("Purchase of Spring by Payne")
        .WithClassifiedAs(Aat.ProvenanceActivity);

    purchase.IdentifiedBy = [new Name("Purchase of Spring by Payne from Durand-Ruel").AsPrimaryName()];
    purchase.TimeSpan = LinkedArtTimeSpan.FromYear(1909);

    purchase.Part = [
        new Acquisition
        {
            Label = "Ownership of Spring to Payne",
            TransferredTitleOf = [
                new HumanMadeObject()
                    .WithId("https://linked.art/example/object/spring")
                    .WithLabel("Spring")
            ],
            TransferredTitleFrom = [
                new Person()
                    .WithId("https://linked.art/example/person/durand")
                    .WithLabel("Durand-Ruel Gallery")
            ],
            TransferredTitleTo = [
                new Person()
                    .WithId("https://linked.art/example/person/payne")
                    .WithLabel("Oliver Payne")
            ]
        }
    ];

    return purchase;
}
  • 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/provenance/durand_payne/1",
  "type": "Activity",
  "_label": "Purchase of Spring by Payne",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Purchase of Spring by Payne from Durand-Ruel",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ]
    }
  ],
  "timespan": {
    "type": "TimeSpan",
    "begin_of_the_begin": "1909-01-01T00:00:00Z",
    "end_of_the_end": "1909-12-31T23:59:59Z"
  },
  "part": [
    {
      "type": "Acquisition",
      "_label": "Ownership of Spring to Payne",
      "transferred_title_of": [
        {
          "id": "https://linked.art/example/object/spring",
          "type": "HumanMadeObject",
          "_label": "Spring"
        }
      ],
      "transferred_title_from": [
        {
          "id": "https://linked.art/example/person/durand",
          "type": "Person",
          "_label": "Durand-Ruel Gallery"
        }
      ],
      "transferred_title_to": [
        {
          "id": "https://linked.art/example/person/payne",
          "type": "Person",
          "_label": "Oliver Payne"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/durand_payne/1",
  "type": "Activity",
  "_label": "Purchase of Spring by Payne",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ],
      "content": "Purchase of Spring by Payne from Durand-Ruel"
    }
  ],
  "timespan": {
    "type": "TimeSpan",
    "begin_of_the_begin": "1909-01-01T00:00:00Z",
    "end_of_the_end": "1909-12-31T23:59:59Z"
  },
  "part": [
    {
      "type": "Acquisition",
      "_label": "Ownership of Spring to Payne",
      "transferred_title_of": [
        {
          "id": "https://linked.art/example/object/spring",
          "type": "HumanMadeObject",
          "_label": "Spring"
        }
      ],
      "transferred_title_from": [
        {
          "id": "https://linked.art/example/person/durand",
          "type": "Person",
          "_label": "Durand-Ruel Gallery"
        }
      ],
      "transferred_title_to": [
        {
          "id": "https://linked.art/example/person/payne",
          "type": "Person",
          "_label": "Oliver Payne"
        }
      ]
    }
  ]
}

Comparison

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

Properties used

begin_of_the_begin classified_as content end_of_the_end identified_by part timespan transferred_title_from transferred_title_of transferred_title_to

Vocabulary terms

Provenance Activity Primary Name