Linked Art in C#

provenance/2 matches the site

On linked.art: Transfer of Rights › Rights and their Acquisition · site JSON · type Activity · ProvenanceRights.Acquisition_Establishes_Ownership_Right

C#

public static Activity Acquisition_Establishes_Ownership_Right()
{
    var activity = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/provenance/2")
        .WithClassifiedAs(Aat.ProvenanceActivity);

    var painting = new HumanMadeObject().WithLabel("Painting");
    var museum = new Group().WithLabel("Museum");

    activity.Part = [
        new Acquisition
        {
            TransferredTitleOf = [painting],
            TransferredTitleTo = [museum]
        },
        new RightAcquisition
        {
            Establishes = [
                new Right()
                    .WithLabel("Right of Ownership for Painting")
                    .WithClassifiedAs(OwnershipRight)
                    .WithPossessedBy(museum)
                    .WithAppliesTo(painting)
            ]
        }
    ];

    return activity;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/2",
  "type": "Activity",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "Acquisition",
      "transferred_title_of": [
        {
          "type": "HumanMadeObject",
          "_label": "Painting"
        }
      ],
      "transferred_title_to": [
        {
          "type": "Group",
          "_label": "Museum"
        }
      ]
    },
    {
      "type": "RightAcquisition",
      "establishes": [
        {
          "type": "Right",
          "_label": "Right of Ownership for Painting",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300055603",
              "type": "Type",
              "_label": "Ownership Right"
            }
          ],
          "possessed_by": [
            {
              "type": "Group",
              "_label": "Museum"
            }
          ],
          "applies_to": [
            {
              "type": "HumanMadeObject",
              "_label": "Painting"
            }
          ]
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/2",
  "type": "Activity",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "Acquisition",
      "transferred_title_of": [
        {
          "type": "HumanMadeObject",
          "_label": "Painting"
        }
      ],
      "transferred_title_to": [
        {
          "type": "Group",
          "_label": "Museum"
        }
      ]
    },
    {
      "type": "RightAcquisition",
      "establishes": [
        {
          "type": "Right",
          "_label": "Right of Ownership for Painting",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300055603",
              "type": "Type",
              "_label": "Ownership Right"
            }
          ],
          "possessed_by": [
            {
              "type": "Group",
              "_label": "Museum"
            }
          ],
          "applies_to": [
            {
              "type": "HumanMadeObject",
              "_label": "Painting"
            }
          ]
        }
      ]
    }
  ]
}

Comparison

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

Properties used

applies_to classified_as establishes part possessed_by transferred_title_of transferred_title_to

Vocabulary terms

Ownership Right Provenance Activity