AI & XML / LLM test suite / Results / Test cases / BITS_Metadata_DOI_URL
Test case description
This test checks whether DOI and URL are correctly output as book-id elements in BITS XML. Both identifiers must be modeled separately and carry source references.
Source file | BITS_Metadata_DOI_URL.txt |
|---|---|
Series | 3 |
Categories | xml, bits, metadata |
Evaluation | LLM judge |
Prompt SHA-256 | a2dd38a3d0418c25f737f7a7934e7a8eb1dfd0f6cf0b848231da359d089b3b8a |
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
Digitale Wissensökologien[1]HahnMichael[2]Open Research Press[3]2022[3] 10.1234/fiktiv.2022.001 [4] https://www.openresearchpress.example/book/001 [5]en
Expectation in the catalog | Yes |
|---|---|
Correct result in the catalog | Yes |
Judge instruction
Check the BITS namespace, book/book-meta hierarchy and all metadata. DOI and URL must be modeled as separate book-id elements with the prescribed book-id-type values and 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 element book and all BITS structural elements use namespace http://jats.nlm.nih.gov/extensions/bits/2.0; exactly one book-meta is present.
book-title-group contains book-title Digitale Wissensökologien and xref [1].
contrib-group contains exactly one contrib with contrib-type="author"; name is split into surname Hahn and given-names Michael, and the contrib carries xref [2].
publisher contains publisher-name Open Research Press and xref [3]; pub-date contains year 2022 and xref [3].
Exactly one book-id with book-id-type="doi" contains identifier 10.1234/fiktiv.2022.001 and an associated xref [4].
Exactly one additional book-id with book-id-type="uri" contains https://www.openresearchpress.example/book/001 and an associated xref [5].
language contains en. The prompt requests reference [1] on the language field; its absence alone is not a reason for exclusion because the existing reference serialization lacks xref.
Example DOI 10.1000/xyz123 and other content not belonging to the target record do not appear.
Error criteria
The XML is not parseable, contains prose, uses an incorrect BITS namespace or lacks a book/book-meta structure.
Title, author, publisher, year or language is missing or contains an incorrect value.
DOI and URL are missing, combined in a single book-id or accompanied by additional book-id elements.
The DOI does not use book-id-type="doi", the URL does not use book-id-type="uri", or the values or references [4] and [5] are incorrect.
The author name is not split into Hahn and Michael, or references [1] to [3] are missing or misassigned.
The example DOI or invented metadata is included.
Judge note: Indentation, XML declaration, attribute order and the order of independent metadata elements are not evaluated. For the URL, book-id-type="uri" is decisive, not url. The direct text content of book-id may be interrupted by Whitespace around xref; concatenating the text nodes must yield the exact identifier.
Prompt
Du erhältst einen Text mit bibliografischen Angaben inklusive DOI und URL.
Aufgabe
Erfasse ausschließlich bibliografische Metadaten.
Gib sie als BITS XML aus.
DOI und URL müssen als separate book-id Elemente ausgegeben werden.
Jede Angabe muss eine Fundstelle in eckigen Klammern enthalten.
Beispiel
Text
[1] Titel
Open Science Handbook
[2] DOI
10.1000/xyz123
Ausgabe
<book-id book-id-type="doi">
10.1000/xyz123
<xref ref-type="fundstelle">[2]</xref>
</book-id>
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/001827 Runs 805 evaluated 38.3 % Score 1.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