{
  "tool_id": "art-207-attribution-string-generator",
  "note": "golden_hash filled by node golden-parity.test.mjs --update.",
  "vectors": [
    {
      "name": "cc_by_full",
      "policy_parameters": {
        "title": "My Photograph",
        "creator": "Jane Smith",
        "source_url": "https://example.com/photo",
        "license": "CC-BY-4.0"
      },
      "output_payload": {
        "tasl_line": "\"My Photograph\" by Jane Smith (https://example.com/photo) is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
        "json_ld": {
          "@context": {
            "cc": "https://creativecommons.org/ns#",
            "dc": "http://purl.org/dc/elements/1.1/",
            "dct": "http://purl.org/dc/terms/"
          },
          "@type": "cc:Work",
          "@id": "https://example.com/photo",
          "dc:title": "My Photograph",
          "dc:creator": "Jane Smith",
          "dc:source": "https://example.com/photo",
          "cc:license": "https://creativecommons.org/licenses/by/4.0/",
          "cc:attributionURL": "https://example.com/photo",
          "cc:attributionName": "Jane Smith"
        },
        "rdfa_html": "<p xmlns:cc=\"https://creativecommons.org/ns#\" xmlns:dct=\"http://purl.org/dc/terms/\" about=\"https://example.com/photo\">\n  <span property=\"dct:title\">My Photograph</span> by\n  <a rel=\"cc:attributionURL\" href=\"https://example.com/photo\" property=\"cc:attributionName\">Jane Smith</a>\n  is licensed under\n  <a rel=\"license\" href=\"https://creativecommons.org/licenses/by/4.0/\">CC BY 4.0</a>.\n</p>",
        "license_name": "Creative Commons Attribution 4.0 International",
        "license_spdx": "CC-BY-4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "valid": true,
        "errors": [],
        "disclaimer": "Not legal advice. This output formats attribution metadata only. Verify against the current CC ccREL specification before relying on it for commercial or legal purposes. Consult a licensed attorney for your jurisdiction."
      },
      "golden_hash": "281c0e9b51a17b14d610cb7d34212ee4e59897645754efb4051a98095159b72c"
    },
    {
      "name": "cc0_public_domain",
      "policy_parameters": {
        "title": "Public Domain Work",
        "creator": "John Doe",
        "source_url": "https://example.com/pdw",
        "license": "CC0-1.0"
      },
      "output_payload": {
        "tasl_line": "\"Public Domain Work\" (https://example.com/pdw) by John Doe is marked with CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/).",
        "json_ld": {
          "@context": {
            "cc": "https://creativecommons.org/ns#",
            "dc": "http://purl.org/dc/elements/1.1/",
            "dct": "http://purl.org/dc/terms/"
          },
          "@type": "cc:Work",
          "@id": "https://example.com/pdw",
          "dc:title": "Public Domain Work",
          "dc:creator": "John Doe",
          "dc:source": "https://example.com/pdw",
          "cc:license": "https://creativecommons.org/publicdomain/zero/1.0/",
          "cc:attributionURL": "https://example.com/pdw",
          "cc:attributionName": "John Doe"
        },
        "rdfa_html": "<p xmlns:cc=\"https://creativecommons.org/ns#\" xmlns:dct=\"http://purl.org/dc/terms/\" about=\"https://example.com/pdw\">\n  <span property=\"dct:title\">Public Domain Work</span>\n  by <span property=\"cc:attributionName\">John Doe</span>\n  is marked with\n  <a rel=\"license\" href=\"https://creativecommons.org/publicdomain/zero/1.0/\">CC0 1.0</a>.\n</p>",
        "license_name": "CC0 1.0 Universal",
        "license_spdx": "CC0-1.0",
        "license_url": "https://creativecommons.org/publicdomain/zero/1.0/",
        "valid": true,
        "errors": [],
        "disclaimer": "Not legal advice. This output formats attribution metadata only. Verify against the current CC ccREL specification before relying on it for commercial or legal purposes. Consult a licensed attorney for your jurisdiction."
      },
      "golden_hash": "6333f54735fa6cbd8bc95565a864dcb3165bcae3edd7e32b761137e89c415ec6"
    },
    {
      "name": "cc_by_nc_sa_with_work_url",
      "policy_parameters": {
        "title": "NC Work",
        "creator": "Alice",
        "source_url": "https://example.com/nc",
        "license": "CC-BY-NC-SA-4.0",
        "work_url": "https://example.com/nc"
      },
      "output_payload": {
        "tasl_line": "\"NC Work\" by Alice (https://example.com/nc) is licensed under CC BY-NC-SA 4.0 (https://creativecommons.org/licenses/by-nc-sa/4.0/).",
        "json_ld": {
          "@context": {
            "cc": "https://creativecommons.org/ns#",
            "dc": "http://purl.org/dc/elements/1.1/",
            "dct": "http://purl.org/dc/terms/"
          },
          "@type": "cc:Work",
          "@id": "https://example.com/nc",
          "dc:title": "NC Work",
          "dc:creator": "Alice",
          "dc:source": "https://example.com/nc",
          "cc:license": "https://creativecommons.org/licenses/by-nc-sa/4.0/",
          "cc:attributionURL": "https://example.com/nc",
          "cc:attributionName": "Alice"
        },
        "rdfa_html": "<p xmlns:cc=\"https://creativecommons.org/ns#\" xmlns:dct=\"http://purl.org/dc/terms/\" about=\"https://example.com/nc\">\n  <span property=\"dct:title\">NC Work</span> by\n  <a rel=\"cc:attributionURL\" href=\"https://example.com/nc\" property=\"cc:attributionName\">Alice</a>\n  is licensed under\n  <a rel=\"license\" href=\"https://creativecommons.org/licenses/by-nc-sa/4.0/\">CC BY-NC-SA 4.0</a>.\n</p>",
        "license_name": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International",
        "license_spdx": "CC-BY-NC-SA-4.0",
        "license_url": "https://creativecommons.org/licenses/by-nc-sa/4.0/",
        "valid": true,
        "errors": [],
        "disclaimer": "Not legal advice. This output formats attribution metadata only. Verify against the current CC ccREL specification before relying on it for commercial or legal purposes. Consult a licensed attorney for your jurisdiction."
      },
      "golden_hash": "d7c0d8f89797711a5debb9fd5a4516f1e782ea891051038d0fccf699d760294b"
    },
    {
      "name": "empty_input",
      "policy_parameters": {},
      "output_payload": {
        "tasl_line": "",
        "json_ld": null,
        "rdfa_html": "",
        "valid": false,
        "errors": [
          "title is required",
          "creator is required",
          "source_url is required",
          "license must be one of: CC0-1.0, CC-BY-4.0, CC-BY-SA-4.0, CC-BY-ND-4.0, CC-BY-NC-4.0, CC-BY-NC-SA-4.0, CC-BY-NC-ND-4.0"
        ],
        "disclaimer": "Not legal advice. This output formats attribution metadata only. Consult a licensed attorney for your jurisdiction."
      },
      "golden_hash": "c1bfa9324bebe5299bb0e6e68539d0d9816cb224c647030a28740e9c4f1921d5"
    }
  ]
}
