Linked Art in C#

object/nightwatch/3 matches the site

The Night Watch has an external URI that also identifies the same physical object in wikidata:

On linked.art: Basic Patterns › Equivalent Data URIs · site JSON · type HumanMadeObject · BasicPatterns.NightWatch_3_Equivalent

C#

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

    nightWatch.Equivalent = [
        new HumanMadeObject()
            .WithId("https://www.wikidata.org/entity/Q219831")
            .WithLabel("Night Watch")
    ];

    return nightWatch;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/nightwatch/3",
  "type": "HumanMadeObject",
  "_label": "Night Watch by Rembrandt",
  "equivalent": [
    {
      "id": "https://www.wikidata.org/entity/Q219831",
      "type": "HumanMadeObject",
      "_label": "Night Watch"
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/nightwatch/3",
  "type": "HumanMadeObject",
  "_label": "Night Watch by Rembrandt",
  "equivalent": [
    {
      "id": "https://www.wikidata.org/entity/Q219831",
      "type": "HumanMadeObject",
      "_label": "Night Watch"
    }
  ]
}

Comparison

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

Properties used

equivalent