AI & XML / LLM test suite / Results / Test cases / MARC21_Metadata_DOI_URL

Test case description

This test checks whether DOI and URL are correctly modeled as MARC21 identifiers. Both must be output separately with source references.

Source file

MARC21_Metadata_DOI_URL.txt

Series

3

Categories

xml, marc21, metadata

Evaluation

LLM judge

Prompt SHA-256

e880066614bc1fbf428b85ba63230cadaf21b185de22dcd721f5012bcc1e13fc

LLM judge: The answer is evaluated with LLM support. A judge model compares the model’s answer with the domain expectation and decides whether its content meets it.

Expected result

00000nam a2200000 a 4500Digitale Wissensökologien[1]Hahn, Michael[2]Open Research Press2022[3]10.1234/fiktiv.2022.001doi[4]https://www.openresearchpress.example/book/001[5]

Expectation in the catalog

Yes

Correct result in the catalog

Yes

Judge instruction

Check the MARC21 Slim namespace, leader, required fields, indicators and subfields. DOI and URL must occupy separate, appropriate MARC fields with correct source references.

Must be satisfied

  • The output consists solely of well-formed XML; removable Markdown code fences are allowed, additional prose is not.

  • The root record and all MARC elements use http://www.loc.gov/MARC21/slim.

  • leader is exactly 00000nam a2200000 a 4500.

  • Field 245 with ind1="1" and ind2="0" contains Digitale Wissensökologien in subfield a and [1] in subfield 9.

  • Field 100 with ind1="1" contains Hahn, Michael in subfield a and [2] in subfield 9.

  • Field 264 with ind2="1" contains Open Research Press in subfield b, 2022 in subfield c and [3] in subfield 9.

  • Exactly one field 024 with ind1="7" contains 10.1234/fiktiv.2022.001 in subfield a, doi in subfield 2 and [4] in subfield 9.

  • Exactly one field 856 with ind1="4" and ind2="0" contains https://www.openresearchpress.example/book/001 in subfield u and [5] in subfield 9.

  • DOI and URL are not merged, and example DOI 10.1000/xyz123 does not appear.

Error criteria

  • The XML cannot be parsed, contains prose or does not use the MARC21 Slim namespace.

  • Leader, title, author, publisher or year is missing or in an incorrect MARC field or subfield.

  • The DOI is not a raw DOI in 024$a with 024$2 doi, or the URL is not in 856$u.

  • DOI and URL share one datafield, have altered content or incorrect source references.

  • Example values or extra invented identifiers or bibliographic information are included.

Judge note: Whitespace, XML declaration and attribute order are irrelevant. MARC 024$a must contain 10.1234/fiktiv.2022.001; a doi.org URL there is not equivalent because it changes the required field modeling. Empty indicators may be serialized as a single space.

Prompt

Du erhältst einen Text mit bibliografischen Angaben inklusive DOI und URL.

Aufgabe
Erfasse ausschließlich bibliografische Metadaten.
Gib sie als MARC21 XML aus.
DOI und URL müssen als separate MARC21 Felder ausgegeben werden.
Jede Angabe muss eine Fundstelle in eckigen Klammern enthalten.

Beispiel
Text
[1] Titel
Open Science Handbook
[2] DOI
10.1000/xyz123

Ausgabe
<datafield tag="024">
  <subfield code="a">10.1000/xyz123</subfield>
  <subfield code="2">doi</subfield>
  <subfield code="9">[2]</subfield>
</datafield>

Text
[1] Digitale Wissensökologien
[2] Michael Hahn
[3] Open Research Press 2022
[4] DOI
10.1234/fiktiv.2022.001
[5] URL
https://www.openresearchpress.example/book/001

714 Runs 707 evaluated 22.5 % Score 2.0 % exactly correct

Help on evaluation, score and exact correctness

Score is a graded quality measure: correct = 100 %, mostly_correct = 80 %, partial = 50 %, wrong/not_answered = 0 %.

Exactly correct is stricter: only correct-labeled runs count. Mostly correct increases score but does not count as exactly correct.

Evaluated counts all runs with a substantive judgment. LLM-judge errors also count as evaluated, with score 0 %.

Model Category Access route

x

back to top