Linked Art in C#

object/flw_house/1 matches the site

The Frank Lloyd Wright House was originally built in New Jersey, and subsequently moved to its current location in Arkansas.

On linked.art: Places › Buildings and "Immovable" Objects · site JSON · type HumanMadeObject · Places.Frank_Lloyd_Wright_House

C#

public static HumanMadeObject Frank_Lloyd_Wright_House()
{
    var house = new HumanMadeObject()
        .WithContext()
        .WithId("https://linked.art/example/object/flw_house/1")
        .WithLabel("Frank Lloyd Wright House")
        .WithClassifiedAs(Aat.Building);

    house.IdentifiedBy = [new Name("Frank Lloyd Wright House")];

    house.CurrentLocation = new Place()
        .WithId("https://linked.art/example/place/crystal_bridges")
        .WithLabel("Crystal Bridges");

    return house;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/flw_house/1",
  "type": "HumanMadeObject",
  "_label": "Frank Lloyd Wright House",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300004792",
      "type": "Type",
      "_label": "Building"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Frank Lloyd Wright House"
    }
  ],
  "current_location": {
    "id": "https://linked.art/example/place/crystal_bridges",
    "type": "Place",
    "_label": "Crystal Bridges"
  }
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/flw_house/1",
  "type": "HumanMadeObject",
  "_label": "Frank Lloyd Wright House",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300004792",
      "type": "Type",
      "_label": "Building"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Frank Lloyd Wright House"
    }
  ],
  "current_location": {
    "id": "https://linked.art/example/place/crystal_bridges",
    "type": "Place",
    "_label": "Crystal Bridges"
  }
}

Comparison

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

Properties used

classified_as content current_location identified_by

Vocabulary terms

Building