Skip to content
HALOWERK

Text Tools

jats citation paragraph overlap

JATS paragraph citation overlap finds shared references and counts works unique to each passage. Use it when an agent needs comparing evidence behind two passages.

POST https://text.halowerk.com/v1/jats-citation-paragraph-overlap

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
xmlstringYes
leftintegerYes
rightintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "xml": {
      "type": "string",
      "maxLength": 16000,
      "minLength": 1
    },
    "left": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300
    },
    "right": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300
    }
  },
  "required": [
    "xml",
    "left",
    "right"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "xml": "<article><body><p><xref ref-type=\"bibr\" rid=\"r1\" /><xref ref-type=\"bibr\" rid=\"r3\" /></p><p><xref ref-type=\"bibr\" rid=\"r2\" /></p></body><back><ref-list><ref id=\"r1\"><element-citation publication-type=\"journal\"><year>2001</year></element-citation></ref><ref id=\"r2\"><element-citation publication-type=\"other\"><year>1987</year></element-citation></ref><ref id=\"r3\"><element-citation publication-type=\"journal\"><year>2007</year></element-citation></ref></ref-list></back></article>",
  "left": 1,
  "right": 2
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "shared": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "only_left": {
          "type": "integer"
        },
        "only_right": {
          "type": "integer"
        }
      },
      "required": [
        "shared",
        "only_left",
        "only_right"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub →