Linked Art in C#

person/wiley/1 matches the site

Kehinde Wiley is African-American.

On linked.art: Actors: People and Organizations › Ethnicity · site JSON · type Person · Actors.Wiley_Is_African_American

C#

public static Person Wiley_Is_African_American()
{
    var wiley = new Person()
        .WithContext()
        .WithId("https://linked.art/example/person/wiley/1")
        .WithLabel("Kehinde Wiley")
        .WithClassifiedAs("http://www.wikidata.org/entity/Q3007177", "African-American", Aat.Ethnicity);

    return wiley;
}
  • Metatype classification The second argument classifies the first, not the object: WithClassifiedAs(Aat.Description, Aat.Statement) says this is a Description, and Description is a kind of Statement. The Plain C# form shows the nesting.

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/person/wiley/1",
  "type": "Person",
  "_label": "Kehinde Wiley",
  "classified_as": [
    {
      "id": "http://www.wikidata.org/entity/Q3007177",
      "type": "Type",
      "_label": "African-American",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300250435",
          "type": "Type",
          "_label": "Ethnicity"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/person/wiley/1",
  "type": "Person",
  "_label": "Kehinde Wiley",
  "classified_as": [
    {
      "id": "http://www.wikidata.org/entity/Q3007177",
      "type": "Type",
      "_label": "African-American",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300250435",
          "type": "Type",
          "_label": "Ethnicity"
        }
      ]
    }
  ]
}

Comparison

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

Properties used

classified_as

Vocabulary terms

Ethnicity