Linked Art in C#

person/rembrandt/13 matches the site

Rembrandt was born on 1606-07-15 and died on 1669-10-04 in Amsterdam.

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

C#

public static Person Rembrandt_Life()
{
    var rembrandt = new Person()
        .WithContext()
        .WithId("https://linked.art/example/person/rembrandt/13")
        .WithLabel("Rembrandt");

    rembrandt.Born = new Birth()
    {
        TimeSpan = LinkedArtTimeSpan.FromDay(1606, 7, 15)
    };
    rembrandt.Died = new Death()
    {
        TimeSpan = LinkedArtTimeSpan.FromDay(1669, 10, 4),
        TookPlaceAt = [
            Tgn.Place("7006952", "Amsterdam")
        ]
    };


    return rembrandt;
}
  • 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/person/rembrandt/13",
  "type": "Person",
  "_label": "Rembrandt",
  "born": {
    "type": "Birth",
    "timespan": {
      "type": "TimeSpan",
      "begin_of_the_begin": "1606-07-15T00:00:00Z",
      "end_of_the_end": "1606-07-15T23:59:59Z"
    }
  },
  "died": {
    "type": "Death",
    "timespan": {
      "type": "TimeSpan",
      "begin_of_the_begin": "1669-10-04T00:00:00Z",
      "end_of_the_end": "1669-10-04T23:59:59Z"
    },
    "took_place_at": [
      {
        "id": "http://vocab.getty.edu/tgn/7006952",
        "type": "Place",
        "_label": "Amsterdam"
      }
    ]
  }
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/person/rembrandt/13",
  "type": "Person",
  "_label": "Rembrandt",
  "born": {
    "type": "Birth",
    "timespan": {
      "type": "TimeSpan",
      "begin_of_the_begin": "1606-07-15T00:00:00Z",
      "end_of_the_end": "1606-07-15T23:59:59Z"
    }
  },
  "died": {
    "type": "Death",
    "timespan": {
      "type": "TimeSpan",
      "begin_of_the_begin": "1669-10-04T00:00:00Z",
      "end_of_the_end": "1669-10-04T23:59:59Z"
    },
    "took_place_at": [
      {
        "id": "http://vocab.getty.edu/tgn/7006952",
        "type": "Place",
        "_label": "Amsterdam"
      }
    ]
  }
}

Comparison

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

Properties used

begin_of_the_begin born died end_of_the_end timespan took_place_at

Vocabulary terms

Amsterdam