Linked Art in C#

group/14thc_italian/1 matches the site

The prototypical member of the "14th Century Italians" group was a person born between 1300 and 1400 in Italy.

On linked.art: Collections and Sets › Sets of People · site JSON · type Group · CollectionsAndSets.Unidentified_14th_Century_Italian

C#

public static Group Unidentified_14th_Century_Italian()
{
    var group = new Group()
        .WithContext()
        .WithId("https://linked.art/example/group/14thc_italian/1")
        .WithLabel("14th c italians");

    group.IdentifiedBy = [new Name("Unidentified 14th Century Italian").AsPrimaryName()];

    group.MembersExemplifiedBy = [
        new Person
        {
            Born = new Birth
            {
                TimeSpan = new LinkedArtTimeSpan
                {
                    BeginOfTheBegin = new LinkedArtDate(1300, 1, 1),
                    EndOfTheEnd = new LinkedArtDate(1399, 12, 31)
                },
                TookPlaceAt = [
                    new Place()
                        .WithId("https://vocab.getty.edu/tgn/1000080")
                        .WithLabel("Italy")
                ]
            }
        }
    ];

    return group;
}
  • Role shortcuts AsPrimaryName, AsAccessionNumber and AsSystemAssignedNumber each add a single classification, with the AAT terms Primary Name, Accession Number and System Number.

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/group/14thc_italian/1",
  "type": "Group",
  "_label": "14th c italians",
  "identified_by": [
    {
      "type": "Name",
      "content": "Unidentified 14th Century Italian",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ]
    }
  ],
  "members_exemplified_by": [
    {
      "type": "Person",
      "born": {
        "type": "Birth",
        "timespan": {
          "type": "TimeSpan",
          "begin_of_the_begin": "1300-01-01T00:00:00Z",
          "end_of_the_end": "1399-12-31T00:00:00Z"
        },
        "took_place_at": [
          {
            "id": "https://vocab.getty.edu/tgn/1000080",
            "type": "Place",
            "_label": "Italy"
          }
        ]
      }
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/group/14thc_italian/1",
  "type": "Group",
  "_label": "14th c italians",
  "identified_by": [
    {
      "type": "Name",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300404670",
          "type": "Type",
          "_label": "Primary Name"
        }
      ],
      "content": "Unidentified 14th Century Italian"
    }
  ],
  "members_exemplified_by": [
    {
      "type": "Person",
      "born": {
        "type": "Birth",
        "timespan": {
          "type": "TimeSpan",
          "begin_of_the_begin": "1300-01-01T00:00:00Z",
          "end_of_the_end": "1399-12-31T00:00:00Z"
        },
        "took_place_at": [
          {
            "id": "https://vocab.getty.edu/tgn/1000080",
            "type": "Place",
            "_label": "Italy"
          }
        ]
      }
    }
  ]
}

Comparison

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

Properties used

begin_of_the_begin born classified_as content end_of_the_end identified_by members_exemplified_by timespan took_place_at

Vocabulary terms

Italy Primary Name