Linked Art in C#

provenance/fixme/1 matches the site

A sculpture is purchased with $900 going to the seller, and $100 going to the auction house.

On linked.art: Object Acquisition and Loan › Payment for Services · site JSON · type Activity · ProvenanceAcquisition.Purchase_With_Commission

C#

public static Activity Purchase_With_Commission()
{
    var purchase = new Activity()
        .WithContext()
        .WithId("https://linked.art/example/provenance/fixme/1")
        .WithLabel("Purchase of Sculpture with Commission")
        .WithClassifiedAs(Aat.ProvenanceActivity);

    var buyer = new Person().WithLabel("Buyer");

    purchase.Part = [
        new Payment
        {
            PaidAmount = new MonetaryAmount
            {
                Value = 900,
                Currency = Aat.UsDollars.WithNotation("USD")
            },
            PaidFrom = [buyer],
            PaidTo = [new Person().WithLabel("Seller")]
        },
        new Payment
        {
            PaidAmount = new MonetaryAmount
            {
                Value = 100,
                Currency = Aat.UsDollars
            },
            PaidFrom = [buyer],
            PaidTo = [
                new Group()
                    .WithLabel("Auction House")
                    .WithClassifiedAs(Aat.Term("300417515", "Auction House (organization)"))
            ]
        }.WithClassifiedAs(Aat.Term("300393199", "Commission"))
    ];

    return purchase;
}
  • 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/fixme/1",
  "type": "Activity",
  "_label": "Purchase of Sculpture with Commission",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "Payment",
      "paid_amount": {
        "type": "MonetaryAmount",
        "value": 900,
        "currency": {
          "id": "http://vocab.getty.edu/aat/300411994",
          "type": "Currency",
          "_label": "US Dollars",
          "notation": "USD"
        }
      },
      "paid_from": [
        {
          "type": "Person",
          "_label": "Buyer"
        }
      ],
      "paid_to": [
        {
          "type": "Person",
          "_label": "Seller"
        }
      ]
    },
    {
      "type": "Payment",
      "paid_amount": {
        "type": "MonetaryAmount",
        "value": 100,
        "currency": {
          "id": "http://vocab.getty.edu/aat/300411994",
          "type": "Currency",
          "_label": "US Dollars"
        }
      },
      "paid_from": [
        {
          "type": "Person",
          "_label": "Buyer"
        }
      ],
      "paid_to": [
        {
          "type": "Group",
          "_label": "Auction House",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300417515",
              "type": "Type",
              "_label": "Auction House (organization)"
            }
          ]
        }
      ],
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300393199",
          "type": "Type",
          "_label": "Commission"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/fixme/1",
  "type": "Activity",
  "_label": "Purchase of Sculpture with Commission",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "part": [
    {
      "type": "Payment",
      "paid_amount": {
        "type": "MonetaryAmount",
        "value": 900,
        "currency": {
          "id": "http://vocab.getty.edu/aat/300411994",
          "type": "Currency",
          "_label": "US Dollars",
          "notation": "USD"
        }
      },
      "paid_from": [
        {
          "type": "Person",
          "_label": "Buyer"
        }
      ],
      "paid_to": [
        {
          "type": "Person",
          "_label": "Seller"
        }
      ]
    },
    {
      "type": "Payment",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300393199",
          "type": "Type",
          "_label": "Commission"
        }
      ],
      "paid_amount": {
        "type": "MonetaryAmount",
        "value": 100,
        "currency": {
          "id": "http://vocab.getty.edu/aat/300411994",
          "type": "Currency",
          "_label": "US Dollars"
        }
      },
      "paid_from": [
        {
          "type": "Person",
          "_label": "Buyer"
        }
      ],
      "paid_to": [
        {
          "type": "Group",
          "_label": "Auction House",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300417515",
              "type": "Type",
              "_label": "Auction House (organization)"
            }
          ]
        }
      ]
    }
  ]
}

Comparison

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

Properties used

classified_as currency notation paid_amount paid_from paid_to part value

Vocabulary terms

US Dollars Provenance Activity Commission Auction House (organization)