Linked Art in C#

provenance/mona_lisa_theft/1 matches the site

The Mona Lisa was stolen from the Louvre in 1911 by Vincenzo Peruggia.

On linked.art: Loans, Thefts, Losses and other Changes of Custody › Theft and Loss · site JSON · type Activity · ProvenanceCustody.Theft_Of_Mona_Lisa

C#

public static Activity Theft_Of_Mona_Lisa()
{
    var theft = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/provenance/mona_lisa_theft/1")
        .WithLabel("Theft of Mona Lisa")
        .WithClassifiedAs(Aat.ProvenanceActivity);

    theft.Part = [
        new TransferOfCustody
        {
            TransferredCustodyOf = [
                new HumanMadeObject()
                    .WithId("https://linked.art/example/object/monalisa")
                    .WithLabel("Mona Lisa")
            ],
            TransferredCustodyFrom = [
                new Group()
                    .WithId("https://linked.art/example/group/louvre")
                    .WithLabel("Louvre")
            ],
            TransferredCustodyTo = [
                new Person()
                    .WithId("https://linked.art/example/person/peruggia")
                    .WithLabel("Vincenzo Peruggia")
            ]
        }.WithClassifiedAs(Aat.Term("300055292", "Theft"))
    ];

    return theft;
}
  • 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/mona_lisa_theft/1",
  "type": "Activity",
  "_label": "Theft of Mona Lisa",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "TransferOfCustody",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300055292",
          "type": "Type",
          "_label": "Theft"
        }
      ],
      "transferred_custody_of": [
        {
          "id": "https://linked.art/example/object/monalisa",
          "type": "HumanMadeObject",
          "_label": "Mona Lisa"
        }
      ],
      "transferred_custody_from": [
        {
          "id": "https://linked.art/example/group/louvre",
          "type": "Group",
          "_label": "Louvre"
        }
      ],
      "transferred_custody_to": [
        {
          "id": "https://linked.art/example/person/peruggia",
          "type": "Person",
          "_label": "Vincenzo Peruggia"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/mona_lisa_theft/1",
  "type": "Activity",
  "_label": "Theft of Mona Lisa",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "TransferOfCustody",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300055292",
          "type": "Type",
          "_label": "Theft"
        }
      ],
      "transferred_custody_of": [
        {
          "id": "https://linked.art/example/object/monalisa",
          "type": "HumanMadeObject",
          "_label": "Mona Lisa"
        }
      ],
      "transferred_custody_from": [
        {
          "id": "https://linked.art/example/group/louvre",
          "type": "Group",
          "_label": "Louvre"
        }
      ],
      "transferred_custody_to": [
        {
          "id": "https://linked.art/example/person/peruggia",
          "type": "Person",
          "_label": "Vincenzo Peruggia"
        }
      ]
    }
  ]
}

Comparison

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

Properties used

classified_as part transferred_custody_from transferred_custody_of transferred_custody_to

Vocabulary terms

Theft Provenance Activity