Linked Art in C#

text/koot_nightwatch/2 matches the site

The authorship and publication of the text.

On linked.art: Texts and Documents › Creation and Publication · site JSON · type LinguisticObject · TextualDocuments.Authorship_And_Publication

C#

public static LinguisticObject Authorship_And_Publication()
{
    var koot = new LinguisticObject()
        .WithContext()
        .WithId("https://linked.art/example/text/koot_nightwatch/2")
        .WithLabel("Content of Koot's Night Watch")
        .WithClassifiedAs(Aat.Monograph, Aat.TypeOfWork);

    koot.CreatedBy = new Creation()
    {
        Label = "Koot's writing of the work",
        CarriedOutBy = [
            new Person()
                .WithId("https://linked.art/example/person/koot")
                .WithLabel("Ton Koot")
        ]
    };

    koot.UsedFor = [
        new Activity()
        {
            Label = "MI's Publishing",
            ClassifiedAs = [ Aat.PublicationActivity ],
            TimeSpan = LinkedArtTimeSpan.FromYear(1969),
            CarriedOutBy = [ 
                new Group()
                    .WithId("https://linked.art/example/group/meulenhoff")
                    .WithLabel("Meulenhoff International")
            ]
        }
    ];

    return koot;
}
  • 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/text/koot_nightwatch/2",
  "type": "LinguisticObject",
  "_label": "Content of Koot's Night Watch",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300060417",
      "type": "Type",
      "_label": "Monograph",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435443",
          "type": "Type",
          "_label": "Type of Work"
        }
      ]
    }
  ],
  "created_by": {
    "type": "Creation",
    "_label": "Koot's writing of the work",
    "carried_out_by": [
      {
        "id": "https://linked.art/example/person/koot",
        "type": "Person",
        "_label": "Ton Koot"
      }
    ]
  },
  "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"
        }
      ],
      "timespan": {
        "type": "TimeSpan",
        "begin_of_the_begin": "1969-01-01T00:00:00Z",
        "end_of_the_end": "1969-12-31T23:59:59Z"
      }
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/text/koot_nightwatch/2",
  "type": "LinguisticObject",
  "_label": "Content of Koot's Night Watch",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300060417",
      "type": "Type",
      "_label": "Monograph",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300435443",
          "type": "Type",
          "_label": "Type of Work"
        }
      ]
    }
  ],
  "created_by": {
    "type": "Creation",
    "_label": "Koot's writing of the work",
    "carried_out_by": [
      {
        "id": "https://linked.art/example/person/koot",
        "type": "Person",
        "_label": "Ton Koot"
      }
    ]
  },
  "used_for": [
    {
      "type": "Activity",
      "_label": "MI's Publishing",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300054686",
          "type": "Type",
          "_label": "Publishing"
        }
      ],
      "timespan": {
        "type": "TimeSpan",
        "begin_of_the_begin": "1969-01-01T00:00:00Z",
        "end_of_the_end": "1969-12-31T23:59:59Z"
      },
      "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

begin_of_the_begin carried_out_by classified_as created_by end_of_the_end timespan used_for

Vocabulary terms

Publishing Monograph Type of Work