Skip to content
HALOWERK

Text Tools

jats citation publication mix

JATS citation type mix groups resolved references by their recorded publication type. Use it when an agent needs distinguishing journal articles from other cited materials.

POST https://text.halowerk.com/v1/jats-citation-publication-mix

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": {
        "types": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "works": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "distinct_types": {
          "type": "integer"
        }
      },
      "required": [
        "types",
        "works",
        "distinct_types"
      ]
    },
    "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 →