Linked Art in C#

provenance/4 matches the site

On linked.art: Transfer of Rights › Transfer of Shares · site JSON · type Activity · ProvenanceRights.Trading_Shares

C#

public static Activity Trading_Shares()
{
    var trade = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/provenance/4")
        .WithLabel("Trading Shares of Painting between Two Dealers")
        .WithClassifiedAs(Aat.ProvenanceActivity);

    trade.Part = [
        new RightAcquisition
        {
            Establishes = [Share("40% Ownership by Dealer 1", 40, "Dealer 1").WithAppliesTo(Painting)],
            Invalidates = [new Right().WithLabel("30% Ownership by Dealer 1").WithClassifiedAs(OwnershipRight)]
        },
        new RightAcquisition
        {
            // The site's example gives Dealer 2's new 60% share a value of 70.
            Establishes = [Share("60% Ownership by Dealer 2", 70, "Dealer 2")],
            Invalidates = [new Right().WithLabel("70% Ownership by Dealer 2").WithClassifiedAs(OwnershipRight)]
        }
    ];

    return trade;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/4",
  "type": "Activity",
  "_label": "Trading Shares of Painting between Two Dealers",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "RightAcquisition",
      "establishes": [
        {
          "type": "Right",
          "_label": "40% Ownership by Dealer 1",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300055603",
              "type": "Type",
              "_label": "Ownership Right"
            }
          ],
          "possessed_by": [
            {
              "type": "Group",
              "_label": "Dealer 1"
            }
          ],
          "applies_to": [
            {
              "type": "HumanMadeObject",
              "_label": "Painting",
              "classified_as": [
                {
                  "id": "http://vocab.getty.edu/aat/300033618",
                  "type": "Type",
                  "_label": "Painting",
                  "classified_as": [
                    {
                      "id": "http://vocab.getty.edu/aat/300435443",
                      "type": "Type",
                      "_label": "Type of Work"
                    }
                  ]
                }
              ]
            }
          ],
          "dimension": [
            {
              "type": "Dimension",
              "value": 40,
              "unit": {
                "id": "http://qudt.org/3.0.0/vocab/unit/Percent",
                "type": "MeasurementUnit",
                "_label": "Percent"
              }
            }
          ]
        }
      ],
      "invalidates": [
        {
          "type": "Right",
          "_label": "30% Ownership by Dealer 1",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300055603",
              "type": "Type",
              "_label": "Ownership Right"
            }
          ]
        }
      ]
    },
    {
      "type": "RightAcquisition",
      "establishes": [
        {
          "type": "Right",
          "_label": "60% Ownership by Dealer 2",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300055603",
              "type": "Type",
              "_label": "Ownership Right"
            }
          ],
          "possessed_by": [
            {
              "type": "Group",
              "_label": "Dealer 2"
            }
          ],
          "dimension": [
            {
              "type": "Dimension",
              "value": 70,
              "unit": {
                "id": "http://qudt.org/3.0.0/vocab/unit/Percent",
                "type": "MeasurementUnit",
                "_label": "Percent"
              }
            }
          ]
        }
      ],
      "invalidates": [
        {
          "type": "Right",
          "_label": "70% Ownership by Dealer 2",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300055603",
              "type": "Type",
              "_label": "Ownership Right"
            }
          ]
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/4",
  "type": "Activity",
  "_label": "Trading Shares of Painting between Two Dealers",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "RightAcquisition",
      "establishes": [
        {
          "type": "Right",
          "_label": "40% Ownership by Dealer 1",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300055603",
              "type": "Type",
              "_label": "Ownership Right"
            }
          ],
          "dimension": [
            {
              "type": "Dimension",
              "value": 40,
              "unit": {
                "id": "http://qudt.org/3.0.0/vocab/unit/Percent",
                "type": "MeasurementUnit",
                "_label": "Percent"
              }
            }
          ],
          "possessed_by": [
            {
              "type": "Group",
              "_label": "Dealer 1"
            }
          ],
          "applies_to": [
            {
              "type": "HumanMadeObject",
              "_label": "Painting",
              "classified_as": [
                {
                  "id": "http://vocab.getty.edu/aat/300033618",
                  "type": "Type",
                  "_label": "Painting",
                  "classified_as": [
                    {
                      "id": "http://vocab.getty.edu/aat/300435443",
                      "type": "Type",
                      "_label": "Type of Work"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "invalidates": [
        {
          "type": "Right",
          "_label": "30% Ownership by Dealer 1",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300055603",
              "type": "Type",
              "_label": "Ownership Right"
            }
          ]
        }
      ]
    },
    {
      "type": "RightAcquisition",
      "establishes": [
        {
          "type": "Right",
          "_label": "60% Ownership by Dealer 2",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300055603",
              "type": "Type",
              "_label": "Ownership Right"
            }
          ],
          "dimension": [
            {
              "type": "Dimension",
              "value": 70,
              "unit": {
                "id": "http://qudt.org/3.0.0/vocab/unit/Percent",
                "type": "MeasurementUnit",
                "_label": "Percent"
              }
            }
          ],
          "possessed_by": [
            {
              "type": "Group",
              "_label": "Dealer 2"
            }
          ]
        }
      ],
      "invalidates": [
        {
          "type": "Right",
          "_label": "70% Ownership by Dealer 2",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300055603",
              "type": "Type",
              "_label": "Ownership Right"
            }
          ]
        }
      ]
    }
  ]
}

Comparison

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

Properties used

applies_to classified_as dimension establishes invalidates part possessed_by unit value

Vocabulary terms

Painting Ownership Right Provenance Activity Type of Work