Skip to content
HALOWERK

Text Tools

jats citation first use order

JATS bibliography order comparison counts inversions between first citation order and the supplied reference list. Use it when an agent needs checking numerical order before typesetting.

POST https://text.halowerk.com/v1/jats-citation-first-use-order

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
xmlstringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "xml": {
      "type": "string",
      "maxLength": 16000,
      "minLength": 1
    }
  },
  "required": [
    "xml"
  ],
  "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>"
}

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": {
        "cited_keys": {
          "type": "integer"
        },
        "inversions": {
          "type": "integer"
        },
        "first_difference": {
          "type": "integer"
        }
      },
      "required": [
        "cited_keys",
        "inversions",
        "first_difference"
      ]
    },
    "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 →