Linked Art in C#

provenance/manet_proust/1 matches the site

Édouard Manet sold his painting, Jeanne, to Antonin Proust in 1883 for 3,000 francs.

On linked.art: Object Acquisition and Loan › Provenance Event · site JSON · type Activity · Provenance.Spring_Sold_To_Proust

C#

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

    activity.IdentifiedBy = [new Name("Purchase of Spring by Proust from Manet").AsPrimaryName()];
    activity.TimeSpan = new LinkedArtTimeSpan()
    {
        BeginOfTheBegin = new LinkedArtDate(1881, 1, 1),
        EndOfTheEnd = new LinkedArtDate(1883, 12, 31).LastSecondOfDay()
    };

    var acquisition = new Acquisition()
    {
        Label = "Ownership of Spring to Proust",
        TransferredTitleOf = [
            new HumanMadeObject()
                .WithId("https://linked.art/example/object/spring")
                .WithLabel("Spring")
        ],
        TransferredTitleFrom = [
            new Person()
                .WithId("https://linked.art/example/person/manet")
                .WithLabel("Manet")
        ],
        TransferredTitleTo = [
            new Person()
                .WithId("https://linked.art/example/person/proust")
                .WithLabel("Proust")
        ]
    };

    var payment = new Payment()
    {
        Label = "3000 Francs to Manet",
        PaidAmount = new MonetaryAmount
        {
            Value = 3000,
            Currency = Aat.Currency("300412016", "French Francs")
        },
        PaidFrom = [
            new Person()
                .WithId("https://linked.art/example/person/proust")
                .WithLabel("Proust")
        ],
        PaidTo = [
            new Person()
                .WithId("https://linked.art/example/person/manet")
                .WithLabel("Manet")
        ]
    };

    activity.Part = [
        acquisition,
        payment
    ];

    return activity;
}
  • Role shortcuts AsPrimaryName, AsAccessionNumber and AsSystemAssignedNumber each add a single classification, with the AAT terms Primary Name, Accession Number and System Number.
  • 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/manet_proust/1",
  "type": "Activity",
  "_label": "Purchase of Spring by Proust",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Purchase of Spring by Proust from Manet",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ]
    }
  ],
  "timespan": {
    "type": "TimeSpan",
    "begin_of_the_begin": "1881-01-01T00:00:00Z",
    "end_of_the_end": "1883-12-31T23:59:59Z"
  },
  "part": [
    {
      "type": "Acquisition",
      "_label": "Ownership of Spring to Proust",
      "transferred_title_of": [
        {
          "id": "https://linked.art/example/object/spring",
          "type": "HumanMadeObject",
          "_label": "Spring"
        }
      ],
      "transferred_title_from": [
        {
          "id": "https://linked.art/example/person/manet",
          "type": "Person",
          "_label": "Manet"
        }
      ],
      "transferred_title_to": [
        {
          "id": "https://linked.art/example/person/proust",
          "type": "Person",
          "_label": "Proust"
        }
      ]
    },
    {
      "type": "Payment",
      "_label": "3000 Francs to Manet",
      "paid_amount": {
        "type": "MonetaryAmount",
        "value": 3000,
        "currency": {
          "id": "http://vocab.getty.edu/aat/300412016",
          "type": "Currency",
          "_label": "French Francs"
        }
      },
      "paid_from": [
        {
          "id": "https://linked.art/example/person/proust",
          "type": "Person",
          "_label": "Proust"
        }
      ],
      "paid_to": [
        {
          "id": "https://linked.art/example/person/manet",
          "type": "Person",
          "_label": "Manet"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/provenance/manet_proust/1",
  "type": "Activity",
  "_label": "Purchase of Spring by Proust",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300055863",
      "type": "Type",
      "_label": "Provenance Activity"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ],
      "content": "Purchase of Spring by Proust from Manet"
    }
  ],
  "timespan": {
    "type": "TimeSpan",
    "begin_of_the_begin": "1881-01-01T00:00:00Z",
    "end_of_the_end": "1883-12-31T23:59:59Z"
  },
  "part": [
    {
      "type": "Acquisition",
      "_label": "Ownership of Spring to Proust",
      "transferred_title_of": [
        {
          "id": "https://linked.art/example/object/spring",
          "type": "HumanMadeObject",
          "_label": "Spring"
        }
      ],
      "transferred_title_from": [
        {
          "id": "https://linked.art/example/person/manet",
          "type": "Person",
          "_label": "Manet"
        }
      ],
      "transferred_title_to": [
        {
          "id": "https://linked.art/example/person/proust",
          "type": "Person",
          "_label": "Proust"
        }
      ]
    },
    {
      "type": "Payment",
      "_label": "3000 Francs to Manet",
      "paid_amount": {
        "type": "MonetaryAmount",
        "value": 3000,
        "currency": {
          "id": "http://vocab.getty.edu/aat/300412016",
          "type": "Currency",
          "_label": "French Francs"
        }
      },
      "paid_from": [
        {
          "id": "https://linked.art/example/person/proust",
          "type": "Person",
          "_label": "Proust"
        }
      ],
      "paid_to": [
        {
          "id": "https://linked.art/example/person/manet",
          "type": "Person",
          "_label": "Manet"
        }
      ]
    }
  ]
}

Comparison

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

Properties used

begin_of_the_begin classified_as content currency end_of_the_end identified_by paid_amount paid_from paid_to part timespan transferred_title_from transferred_title_of transferred_title_to value

Vocabulary terms

French Francs Provenance Activity Primary Name