Linked Art in C#

digital/operation_nw/1 matches the site

The Rijksmuseum published a digital publication on the web about their conservation efforts for The Night Watch.

On linked.art: Digital Integration › Core Digital Object Properties · site JSON · type DigitalObject · Digital.Nightwatch_Digital_Publication

C#

public static DigitalObject Nightwatch_Digital_Publication()
{
    var nightwatchPublication = new DigitalObject()
        .WithContext()
        .WithId("https://linked.art/example/digital/operation_nw/1")
        .WithLabel("Operation Night Watch Publication")
        .WithClassifiedAs(Aat.WebPage);

    nightwatchPublication.IdentifiedBy = [new Name("Operation Night Watch")];
    nightwatchPublication.WithFileSize(220, MeasurementUnit.Kilobytes, "220 kb");
    nightwatchPublication.AccessPoint = [
        new DigitalObject().WithId("https://www.rijksmuseum.nl/en/stories/operation-night-watch")
    ];
    nightwatchPublication.Format = "text/html";
    nightwatchPublication.ConformsTo = [
        new InformationObject().WithId("http://w3.org/TR/html")
    ];

    var creation = new Creation()
    {
        TimeSpan = new LinkedArtTimeSpan
        {
            BeginOfTheBegin = new LinkedArtDate(2019, 7, 19),
            EndOfTheEnd = new LinkedArtDate(2019, 7, 21)
        },
        CarriedOutBy = [
            new Group()
                .WithId("https://linked.art/example/group/rijksmuseum")
                .WithLabel("Rijksmuseum")
    ]
    };
    nightwatchPublication.CreatedBy = creation;

    nightwatchPublication.DigitallyCarries = [
        new LinguisticObject()
            .WithId("https://linked.art/example/text/operation_nw_en")
            .WithLabel("Operation Night Watch in English")
    ];


    return nightwatchPublication;
}
  • Dimensions and physical description Each helper builds a Dimension with its AAT type, value and unit, or a classification with its metatype: height, width, colour, shape, page count, component count, file size, duration in days.

JSON from the C#

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/digital/operation_nw/1",
  "type": "DigitalObject",
  "_label": "Operation Night Watch Publication",
  "dimension": [
    {
      "type": "Dimension",
      "_label": "220 kb",
      "value": 220,
      "unit": {
        "id": "http://vocab.getty.edu/aat/300265870",
        "type": "MeasurementUnit",
        "_label": "kilobytes"
      },
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300265863",
          "type": "Type",
          "_label": "File Size"
        }
      ]
    }
  ],
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300264578",
      "type": "Type",
      "_label": "Web Page"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Operation Night Watch"
    }
  ],
  "created_by": {
    "type": "Creation",
    "carried_out_by": [
      {
        "id": "https://linked.art/example/group/rijksmuseum",
        "type": "Group",
        "_label": "Rijksmuseum"
      }
    ],
    "timespan": {
      "type": "TimeSpan",
      "begin_of_the_begin": "2019-07-19T00:00:00Z",
      "end_of_the_end": "2019-07-21T00:00:00Z"
    }
  },
  "access_point": [
    {
      "id": "https://www.rijksmuseum.nl/en/stories/operation-night-watch",
      "type": "DigitalObject"
    }
  ],
  "conforms_to": [
    {
      "id": "http://w3.org/TR/html",
      "type": "InformationObject"
    }
  ],
  "format": "text/html",
  "digitally_carries": [
    {
      "id": "https://linked.art/example/text/operation_nw_en",
      "type": "LinguisticObject",
      "_label": "Operation Night Watch in English"
    }
  ]
}

JSON on linked.art

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/digital/operation_nw/1",
  "type": "DigitalObject",
  "_label": "Operation Night Watch Publication",
  "classified_as": [
    {
      "id": "http://vocab.getty.edu/aat/300264578",
      "type": "Type",
      "_label": "Web Page"
    }
  ],
  "identified_by": [
    {
      "type": "Name",
      "content": "Operation Night Watch"
    }
  ],
  "dimension": [
    {
      "type": "Dimension",
      "_label": "220 kb",
      "classified_as": [
        {
          "id": "http://vocab.getty.edu/aat/300265863",
          "type": "Type",
          "_label": "File Size"
        }
      ],
      "value": 220,
      "unit": {
        "id": "http://vocab.getty.edu/aat/300265870",
        "type": "MeasurementUnit",
        "_label": "kilobytes"
      }
    }
  ],
  "access_point": [
    {
      "id": "https://www.rijksmuseum.nl/en/stories/operation-night-watch",
      "type": "DigitalObject"
    }
  ],
  "format": "text/html",
  "conforms_to": [
    {
      "id": "http://w3.org/TR/html",
      "type": "InformationObject"
    }
  ],
  "created_by": {
    "type": "Creation",
    "timespan": {
      "type": "TimeSpan",
      "begin_of_the_begin": "2019-07-19T00:00:00Z",
      "end_of_the_end": "2019-07-21T00:00:00Z"
    },
    "carried_out_by": [
      {
        "id": "https://linked.art/example/group/rijksmuseum",
        "type": "Group",
        "_label": "Rijksmuseum"
      }
    ]
  },
  "digitally_carries": [
    {
      "id": "https://linked.art/example/text/operation_nw_en",
      "type": "LinguisticObject",
      "_label": "Operation Night Watch in English"
    }
  ]
}

Comparison

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

Properties used

access_point begin_of_the_begin carried_out_by classified_as conforms_to content created_by digitally_carries dimension end_of_the_end format identified_by timespan unit value

Vocabulary terms

kilobytes Web Page File Size