Linked Art in C#

provenance/spring_getty/1 matches the site

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

C#

public static Activity Return_Of_Spring_To_Getty()
{
    var returnOfLoan = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/provenance/spring_getty/1")
        .WithLabel("Return of Spring to Getty")
        .WithClassifiedAs(Aat.ProvenanceActivity);

    returnOfLoan.Part = [
        new TransferOfCustody
        {
            Label = "Return",
            TransferredCustodyOf = [
                new HumanMadeObject()
                    .WithId("https://linked.art/example/object/spring")
                    .WithLabel("Spring")
            ],
            TransferredCustodyFrom = [
                new Group()
                    .WithId("https://linked.art/example/group/aic")
                    .WithLabel("Art Institute of Chicago")
            ],
            TransferredCustodyTo = [
                new Group()
                    .WithId("https://linked.art/example/group/getty")
                    .WithLabel("Getty Museum")
            ]
        }.WithClassifiedAs(Aat.Term("300438467", "Return of Loan"))
    ];

    return returnOfLoan;
}
  • 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/spring_getty/1",
  "type": "Activity",
  "_label": "Return of Spring to Getty",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "TransferOfCustody",
      "_label": "Return",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300438467",
          "type": "Type",
          "_label": "Return of Loan"
        }
      ],
      "transferred_custody_of": [
        {
          "id": "https://linked.art/example/object/spring",
          "type": "HumanMadeObject",
          "_label": "Spring"
        }
      ],
      "transferred_custody_from": [
        {
          "id": "https://linked.art/example/group/aic",
          "type": "Group",
          "_label": "Art Institute of Chicago"
        }
      ],
      "transferred_custody_to": [
        {
          "id": "https://linked.art/example/group/getty",
          "type": "Group",
          "_label": "Getty Museum"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/spring_getty/1",
  "type": "Activity",
  "_label": "Return of Spring to Getty",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "TransferOfCustody",
      "_label": "Return",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300438467",
          "type": "Type",
          "_label": "Return of Loan"
        }
      ],
      "transferred_custody_of": [
        {
          "id": "https://linked.art/example/object/spring",
          "type": "HumanMadeObject",
          "_label": "Spring"
        }
      ],
      "transferred_custody_from": [
        {
          "id": "https://linked.art/example/group/aic",
          "type": "Group",
          "_label": "Art Institute of Chicago"
        }
      ],
      "transferred_custody_to": [
        {
          "id": "https://linked.art/example/group/getty",
          "type": "Group",
          "_label": "Getty Museum"
        }
      ]
    }
  ]
}

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

Provenance Activity Return of Loan