Linked Art in C#

text/koot_nightwatch/40 matches the site

On linked.art: Required Vocabulary Terms › Publication Activity · site JSON · type LinguisticObject · RequiredTerms.Publishing_Activity

C#

public static LinguisticObject Publishing_Activity()
{
    var text = new LinguisticObject()
        .WithContext()
        .WithId("https://linked.art/example/text/koot_nightwatch/40")
        .WithLabel("Content of Koot's Night Watch");

    text.UsedFor = [
        new Activity()
            .WithLabel("MI's Publishing")
            .WithClassifiedAs(Aat.PublicationActivity)
            .WithCarriedOutBy(
                new Group()
                    .WithId("https://linked.art/example/group/meulenhoff")
                    .WithLabel("Meulenhoff International"))
    ];

    return text;
}

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/text/koot_nightwatch/40",
  "type": "LinguisticObject",
  "_label": "Content of Koot's Night Watch",
  "used_for": [
    {
      "type": "Activity",
      "_label": "MI's Publishing",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300054686",
          "type": "Type",
          "_label": "Publishing"
        }
      ],
      "carried_out_by": [
        {
          "id": "https://linked.art/example/group/meulenhoff",
          "type": "Group",
          "_label": "Meulenhoff International"
        }
      ]
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/text/koot_nightwatch/40",
  "type": "LinguisticObject",
  "_label": "Content of Koot's Night Watch",
  "used_for": [
    {
      "type": "Activity",
      "_label": "MI's Publishing",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300054686",
          "type": "Type",
          "_label": "Publishing"
        }
      ],
      "carried_out_by": [
        {
          "id": "https://linked.art/example/group/meulenhoff",
          "type": "Group",
          "_label": "Meulenhoff International"
        }
      ]
    }
  ]
}

Comparison

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

Properties used

carried_out_by classified_as used_for

Vocabulary terms

Publishing