Linked Art in C#

person/rembrandt/2 matches the site

Rembrandt (a Person) was a member of the Guild of St Luke (a Group).

On linked.art: Basic Patterns › Classes · site JSON · type Person · BasicPatterns.Person_Rembrandt_2_Member_Of

C#

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

    rembrandt.MemberOf = [
        new Group()
            .WithId("https://linked.art/example/group/stluke")
            .WithLabel("Guild of St Luke")
    ];

    return rembrandt;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/person/rembrandt/2",
  "type": "Person",
  "_label": "Rembrandt",
  "member_of": [
    {
      "id": "https://linked.art/example/group/stluke",
      "type": "Group",
      "_label": "Guild of St Luke"
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/person/rembrandt/2",
  "type": "Person",
  "_label": "Rembrandt",
  "member_of": [
    {
      "id": "https://linked.art/example/group/stluke",
      "type": "Group",
      "_label": "Guild of St Luke"
    }
  ]
}

Comparison

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

Properties used

member_of