Linked Art in C#

provenance/manet_proust/40 matches the site

On linked.art: Required Vocabulary Terms › Provenance Activity · site JSON · type Activity · RequiredTerms.Provenance_Activity

C#

public static Activity Provenance_Activity()
{
    var activity = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/provenance/manet_proust/40")
        .WithLabel("Purchase of Spring by Proust")
        .WithClassifiedAs(Aat.ProvenanceActivity);

    return activity;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/manet_proust/40",
  "type": "Activity",
  "_label": "Purchase of Spring by Proust",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/manet_proust/40",
  "type": "Activity",
  "_label": "Purchase of Spring by Proust",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ]
}

Comparison

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

Properties used

classified_as

Vocabulary terms

Provenance Activity