Linked Art in C#

provenance/spring_aic/1 matches the site

Spring is lent by the Getty to the Art Institute of Chicago.

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

C#

public static Activity Loan_Of_Spring_To_AIC()
{
    var loan = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/provenance/spring_aic/1")
        .WithLabel("Loan of Spring to AIC")
        .WithClassifiedAs(Aat.ProvenanceActivity);

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

    return loan;
}
  • 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_aic/1",
  "type": "Activity",
  "_label": "Loan of Spring to AIC",
  "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/300417645",
          "type": "Type",
          "_label": "Loan"
        }
      ],
      "transferred_custody_of": [
        {
          "id": "https://linked.art/example/object/spring",
          "type": "HumanMadeObject",
          "_label": "Spring"
        }
      ],
      "transferred_custody_from": [
        {
          "id": "https://linked.art/example/group/getty",
          "type": "Group",
          "_label": "Getty Museum"
        }
      ],
      "transferred_custody_to": [
        {
          "id": "https://linked.art/example/group/aic",
          "type": "Group",
          "_label": "Art Institute of Chicago"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/spring_aic/1",
  "type": "Activity",
  "_label": "Loan of Spring to AIC",
  "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/300417645",
          "type": "Type",
          "_label": "Loan"
        }
      ],
      "transferred_custody_of": [
        {
          "id": "https://linked.art/example/object/spring",
          "type": "HumanMadeObject",
          "_label": "Spring"
        }
      ],
      "transferred_custody_from": [
        {
          "id": "https://linked.art/example/group/getty",
          "type": "Group",
          "_label": "Getty Museum"
        }
      ],
      "transferred_custody_to": [
        {
          "id": "https://linked.art/example/group/aic",
          "type": "Group",
          "_label": "Art Institute of Chicago"
        }
      ]
    }
  ]
}

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 Loan