Linked Art in C#

object/spring/15 matches the site

Spring was transferred from Manet to Proust, and then later from the Durand-Ruel Gallery to Payne. (The full set of transfers would be given in the real record)

On linked.art: Objects: Provenance › Simple Historical Ownership · site JSON · type HumanMadeObject · Ownership.Spring_Simple_Historical_Ownership

C#

public static HumanMadeObject Spring_Simple_Historical_Ownership()
{
    var spring = new HumanMadeObject()
        .WithContext()
        .WithId("https://linked.art/example/object/spring/15")
        .WithLabel("Jeanne (Spring) by Manet");


    var proustAcquisition = new Acquisition()
        .WithLabel("Ownership of Spring to Proust");
    proustAcquisition.TimeSpan = new LinkedArtTimeSpan
    {
        BeginOfTheBegin = new LinkedArtDate(1881, 1, 1),
        EndOfTheEnd = new LinkedArtDate(1883, 12, 31).LastSecondOfDay()
    };
    proustAcquisition.TransferredTitleFrom = [
        new Person()
            .WithId("https://linked.art/example/person/manet")
            .WithLabel("Manet")
    ];
    proustAcquisition.TransferredTitleTo = [
        new Person()
            .WithId("https://linked.art/example/person/proust")
            .WithLabel("Proust")
    ];
    proustAcquisition.PartOf = [
        new Activity()
            .WithId("https://linked.art/example/event/manet_proust")
            .WithLabel("Full Provenance Activity")
    ];

    var payneAcquisition = new Acquisition()
        .WithLabel("Ownership of Spring to Payne");
    payneAcquisition.TimeSpan = new LinkedArtTimeSpan
    {
        BeginOfTheBegin = new LinkedArtDate(1909, 1, 1),
        EndOfTheEnd = new LinkedArtDate(1909, 12, 31).LastSecondOfDay()
    };
    payneAcquisition.TransferredTitleFrom = [
        new Person()
            .WithId("https://linked.art/example/person/durand")
            .WithLabel("Durand-Ruel Gallery")
    ];
    payneAcquisition.TransferredTitleTo = [
        new Person()
            .WithId("https://linked.art/example/person/payne")
            .WithLabel("Oliver Payne")
    ];
    payneAcquisition.PartOf = [
        new Activity()
            .WithId("https://linked.art/example/event/durand_payne")
            .WithLabel("Full Provenance Activity")
    ];

    spring.ChangedOwnershipThrough = [
        proustAcquisition,
        payneAcquisition
    ];

    return spring;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/spring/15",
  "type": "HumanMadeObject",
  "_label": "Jeanne (Spring) by Manet",
  "changed_ownership_through": [
    {
      "type": "Acquisition",
      "_label": "Ownership of Spring to Proust",
      "timespan": {
        "type": "TimeSpan",
        "begin_of_the_begin": "1881-01-01T00:00:00Z",
        "end_of_the_end": "1883-12-31T23:59:59Z"
      },
      "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"
        }
      ],
      "part_of": [
        {
          "id": "https://linked.art/example/event/manet_proust",
          "type": "Activity",
          "_label": "Full Provenance Activity"
        }
      ]
    },
    {
      "type": "Acquisition",
      "_label": "Ownership of Spring to Payne",
      "timespan": {
        "type": "TimeSpan",
        "begin_of_the_begin": "1909-01-01T00:00:00Z",
        "end_of_the_end": "1909-12-31T23:59:59Z"
      },
      "transferred_title_from": [
        {
          "id": "https://linked.art/example/person/durand",
          "type": "Person",
          "_label": "Durand-Ruel Gallery"
        }
      ],
      "transferred_title_to": [
        {
          "id": "https://linked.art/example/person/payne",
          "type": "Person",
          "_label": "Oliver Payne"
        }
      ],
      "part_of": [
        {
          "id": "https://linked.art/example/event/durand_payne",
          "type": "Activity",
          "_label": "Full Provenance Activity"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/spring/15",
  "type": "HumanMadeObject",
  "_label": "Jeanne (Spring) by Manet",
  "changed_ownership_through": [
    {
      "type": "Acquisition",
      "_label": "Ownership of Spring to Proust",
      "timespan": {
        "type": "TimeSpan",
        "begin_of_the_begin": "1881-01-01T00:00:00Z",
        "end_of_the_end": "1883-12-31T23:59:59Z"
      },
      "part_of": [
        {
          "id": "https://linked.art/example/event/manet_proust",
          "type": "Activity",
          "_label": "Full Provenance Activity"
        }
      ],
      "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": "Acquisition",
      "_label": "Ownership of Spring to Payne",
      "timespan": {
        "type": "TimeSpan",
        "begin_of_the_begin": "1909-01-01T00:00:00Z",
        "end_of_the_end": "1909-12-31T23:59:59Z"
      },
      "part_of": [
        {
          "id": "https://linked.art/example/event/durand_payne",
          "type": "Activity",
          "_label": "Full Provenance Activity"
        }
      ],
      "transferred_title_from": [
        {
          "id": "https://linked.art/example/person/durand",
          "type": "Person",
          "_label": "Durand-Ruel Gallery"
        }
      ],
      "transferred_title_to": [
        {
          "id": "https://linked.art/example/person/payne",
          "type": "Person",
          "_label": "Oliver Payne"
        }
      ]
    }
  ]
}

Comparison

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

Properties used

begin_of_the_begin changed_ownership_through end_of_the_end part_of timespan transferred_title_from transferred_title_to