Linked Art in C#

person/rembrandt/42 matches the site

On linked.art: Required Vocabulary Terms › Sort Value · site JSON · type Person · RequiredTerms.Rembrandt_Sort_Value

C#

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

    rembrandt.IdentifiedBy = [
        new Identifier("r0000011").WithClassifiedAs(Aat.SortValue)
    ];

    return rembrandt;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/person/rembrandt/42",
  "type": "Person",
  "_label": "Rembrandt",
  "identified_by": [
    {
      "type": "Identifier",
      "content": "r0000011",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300456575",
          "type": "Type",
          "_label": "Sort Value"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/person/rembrandt/42",
  "type": "Person",
  "_label": "Rembrandt",
  "identified_by": [
    {
      "type": "Identifier",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300456575",
          "type": "Type",
          "_label": "Sort Value"
        }
      ],
      "content": "r0000011"
    }
  ]
}

Comparison

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

Properties used

classified_as content identified_by

Vocabulary terms

Sort Value