Linked Art in C#

person/rembrandt/7 matches the site

Rembrandt was professionally active as a painter between 1631 and his death in 1669.

On linked.art: Actors: People and Organizations › Active Dates · site JSON · type Person · Actors.Rembrandt_Carried_Out

C#

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

    var activity = new Activity()
        .WithClassifiedAs(Aat.ProfessionalActivity)
        .WithClassifiedAs(Aat.Term("300025136", "Painter"));
    activity.TimeSpan = new LinkedArtTimeSpan
    {
        BeginOfTheBegin = new LinkedArtDate(1631, 1, 1),
        EndOfTheEnd = new LinkedArtDate(1669, 10, 4).LastSecondOfDay()
    };
    rembrandt.CarriedOut = [activity];

    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/7",
  "type": "Person",
  "_label": "Rembrandt",
  "carried_out": [
    {
      "type": "Activity",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300393177",
          "type": "Type",
          "_label": "Professional Activities"
        },
        {
          "id": "http://vocab.getty.edu/aat/300025136",
          "type": "Type",
          "_label": "Painter"
        }
      ],
      "timespan": {
        "type": "TimeSpan",
        "begin_of_the_begin": "1631-01-01T00:00:00Z",
        "end_of_the_end": "1669-10-04T23:59:59Z"
      }
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/person/rembrandt/7",
  "type": "Person",
  "_label": "Rembrandt",
  "carried_out": [
    {
      "type": "Activity",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300393177",
          "type": "Type",
          "_label": "Professional Activities"
        },
        {
          "id": "http://vocab.getty.edu/aat/300025136",
          "type": "Type",
          "_label": "Painter"
        }
      ],
      "timespan": {
        "type": "TimeSpan",
        "begin_of_the_begin": "1631-01-01T00:00:00Z",
        "end_of_the_end": "1669-10-04T23:59:59Z"
      }
    }
  ]
}

Comparison

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

Properties used

begin_of_the_begin carried_out classified_as end_of_the_end timespan

Vocabulary terms

Painter Professional Activities