Linked Art in C#

group/rembrandthuis/2 matches the site

The formation of the Rembrandt House Museum on 1911-06-10.

On linked.art: Actors: People and Organizations › Birth and Death / Formation and Dissolution · site JSON · type Group · Actors.Rembrandt_Museum_Formed

C#

public static Group Rembrandt_Museum_Formed()
{
    var museum = new Group()
        .WithContext()
        .WithId("https://linked.art/example/group/rembrandthuis/2")
        .WithLabel("Rembrandt House Museum");

    museum.FormedBy = new Formation()
    {
        TimeSpan = LinkedArtTimeSpan.FromDay(1911, 6, 10)
    };


    return museum;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/group/rembrandthuis/2",
  "type": "Group",
  "_label": "Rembrandt House Museum",
  "formed_by": {
    "type": "Formation",
    "timespan": {
      "type": "TimeSpan",
      "begin_of_the_begin": "1911-06-10T00:00:00Z",
      "end_of_the_end": "1911-06-10T23:59:59Z"
    }
  }
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/group/rembrandthuis/2",
  "type": "Group",
  "_label": "Rembrandt House Museum",
  "formed_by": {
    "type": "Formation",
    "timespan": {
      "type": "TimeSpan",
      "begin_of_the_begin": "1911-06-10T00:00:00Z",
      "end_of_the_end": "1911-06-10T23:59:59Z"
    }
  }
}

Comparison

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

Properties used

begin_of_the_begin end_of_the_end formed_by timespan