<commit_before><!DOCTYPE html>
<html 
  xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  layout:decorate="~{base}">
  <head>
    <title>Collection manifest</title>
  </head>
  <body>
    <section layout:fragment="content">
      <header>
        <h1>IIIF Presentation API: Request collection URI Syntax</h1>
      </header>

      <main>
        <p>Collections are used to</p>
        <ul>
          <li>list the manifests available for viewing, and to</li>
          <li>describe the structures, hierarchies or curated collections that the physical objects are part of.</li>
          <li><b>The collections may include both other collections and manifests, in order to form a hierarchy of objects</b> with manifests at the leaf nodes of the tree.</li>
        </ul>

        <p>The IIIF Presentation API URI for requesting a collection must conform to the following URI Template:</p>

        <div class="well uri-template">{scheme}://{host}/{prefix}/collection/{name}</div>

        <h2>Example</h2>
        <div class="well">
          <div>
            <a th:href="@{|${manifestId}|}" th:text="${baseUrl} + ${manifestId}" target="_blank">/presentation/v2/bsb00026283/manifest</a>
          </div>
          <div>
            <a th:href="@{/presentation/v2/collection/kba}" th:text="${baseUrl} + '/presentation/v2/collection/kba'" target="_blank">/presentation/v2/bsb00026283/manifest</a>
          </div>
        </div>

        <h3>Response (JSON-LD)</h3>

        <h4>e-codices-Collection</h4>

        <pre><code class="json">
  {
    "@context": "http://iiif.io/api/presentation/2/context.json",<commit_msg>template: migrate deprecated well component to card (Bootstrap 4 compatibility)<commit_after><!DOCTYPE html>
<html 
  xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  layout:decorate="~{base}">
  <head>
    <title>Collection manifest</title>
  </head>
  <body>
    <section layout:fragment="content">
      <header>
        <h1>IIIF Presentation API: Request collection URI Syntax</h1>
      </header>

      <main>
        <p>Collections are used to</p>
        <ul>
          <li>list the manifests available for viewing, and to</li>
          <li>describe the structures, hierarchies or curated collections that the physical objects are part of.</li>
          <li><b>The collections may include both other collections and manifests, in order to form a hierarchy of objects</b> with manifests at the leaf nodes of the tree.</li>
        </ul>

        <p>The IIIF Presentation API URI for requesting a collection must conform to the following URI Template:</p>

        <div class="card mb-4">
          <div class="card-body">
            {scheme}://{host}/{prefix}/collection/{name}
          </div>
        </div>

        <div class="card mb-4">

          <div class="card-header">
            Example
          </div>

          <div class="card-body">
            <div>
              <a th:href="@{|${manifestId}|}" th:text="${baseUrl} + ${manifestId}" target="_blank">/presentation/v2/bsb00026283/manifest</a>
            </div>
            <div>
              <a th:href="@{/presentation/v2/collection/kba}" th:text="${baseUrl} + '/presentation/v2/collection/kba'" target="_blank">/presentation/v2/bsb00026283/manifest</a>
            </div>
          </div>
        </div>

        <h3>Response (JSON-LD)</h3>

        <h4>e-codices-Collection</h4>

        <pre><code class="json">
  {
    "@context": "http://iiif.io/api/presentation/2/context.json",
{'fraction_non_alphanumeric': 0.1536703798914596, 'fraction_numerical': 0.016852327906312484, 'mean_word_length': 2.595482546201232, 'pattern_counts': {'":': 2, '<': 101, '<?xml version=': 0, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1569558', 'n_tokens_mistral': 1132, 'n_tokens_neox': 1053, 'n_words': 260}