Linked Art in C#

object/nightwatch/43 matches the site

On linked.art: Required Vocabulary Terms › Display Name · site JSON · type HumanMadeObject · RequiredTerms.NightWatch_TimeSpan_Display_Title

C#

public static HumanMadeObject NightWatch_TimeSpan_Display_Title()
{
    var nightwatch = new HumanMadeObject()
        .WithContext()
        .WithId("https://linked.art/example/object/nightwatch/43")
        .WithLabel("Night Watch by Rembrandt");

    nightwatch.ProducedBy = new Production
    {
        TimeSpan = new LinkedArtTimeSpan
        {
            IdentifiedBy = [
                new Name()
                    .WithId("https://linked.art/example/Name/1642")
                    .WithClassifiedAs(Aat.DisplayName)
            ],
            BeginOfTheBegin = new LinkedArtDate(1642, 1, 1),
            EndOfTheEnd = new LinkedArtDate(1842, 12, 31).EndOfDay()
        }
    };

    return nightwatch;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/nightwatch/43",
  "type": "HumanMadeObject",
  "_label": "Night Watch by Rembrandt",
  "produced_by": {
    "type": "Production",
    "timespan": {
      "type": "TimeSpan",
      "identified_by": [
        {
          "id": "https://linked.art/example/Name/1642",
          "type": "Name",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300404669",
              "type": "Type",
              "_label": "Display Title"
            }
          ]
        }
      ],
      "begin_of_the_begin": "1642-01-01T00:00:00Z",
      "end_of_the_end": "1842-12-31T23:59:59Z"
    }
  }
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/nightwatch/43",
  "type": "HumanMadeObject",
  "_label": "Night Watch by Rembrandt",
  "produced_by": {
    "type": "Production",
    "timespan": {
      "type": "TimeSpan",
      "identified_by": [
        {
          "id": "https://linked.art/example/Name/1642",
          "type": "Name",
          "classified_as": [
            {
              "id": "http://vocab.getty.edu/aat/300404669",
              "type": "Type",
              "_label": "Display Title"
            }
          ]
        }
      ],
      "begin_of_the_begin": "1642-01-01T00:00:00Z",
      "end_of_the_end": "1842-12-31T23:59:59Z"
    }
  }
}

Comparison

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

Properties used

begin_of_the_begin classified_as end_of_the_end identified_by produced_by timespan

Vocabulary terms

Display Title