AI & XML / LLM test suite / Results / Test cases / DublinCore_Metadata-Extraction_BookFrontmatter
Test case description
This test checks whether a model identifies relevant bibliographic metadata in extensive book front matter and correctly outputs Dublin Core XML. Irrelevant tables of contents and running text must be ignored.
Source file | DublinCore_Metadata_Extraction_BookFrontmatter.txt |
|---|---|
Series | 3 |
Categories | xml, dublin-core, metadata, semantics |
Evaluation | LLM judge |
Prompt SHA-256 | fe943fb7c576ad5f1cc167c04f204aa239417f9d9e42b9e224b1cdd81ed408ec |
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
Die Kunst der EinfaltNicolas DeteringKonstanz University Press2024deISBN 978-3-8353-9169-7ISBN 978-3-8353-8069-1CC BY-NC-ND 4.0Wallstein Verlag GmbH
Expectation in the catalog | Yes |
|---|---|
Correct result in the catalog | Yes |
Judge instruction
Parse the answer as XML and check Dublin Core elements by their expanded names. Compare every bibliographic value and source reference with the book’s front matter and ensure no irrelevant passages are included as metadata.
Must be satisfied
The output consists solely of well-formed XML. Markdown code fences may be removed before checking; extra prose outside XML is not allowed.
There is exactly one metadata root element. All Dublin Core field elements belong to namespace http://purl.org/dc/elements/1.1/; the specific prefix spelling is irrelevant.
Exactly one dc:title contains the main title Die Kunst der Einfalt and is associated with source reference [1] by an xref inside that same metadata element.
Exactly one dc:creator contains Nicolas Detering and source reference [2]. The repeated name in the copyright section must not be output as a second creator.
Exactly one dc:publisher contains Konstanz University Press with reference [4], and exactly one dc:date contains 2024 with reference [7].
A dc:language contains language code de. Reference [1] or [3] is allowed if the association inside the same element is unambiguous.
There are exactly two dc:identifier elements for ISBN 978-3-8353-9169-7 and 978-3-8353-8069-1. Both carry reference [9]; a leading ISBN is preferred, but an unambiguously typed equivalent representation of exactly the same ISBN is allowed.
Exactly one dc:rights contains CC BY-NC-ND 4.0 with reference [6], and exactly one dc:relation contains Wallstein Verlag GmbH with reference [8].
Each metadata item output has an appropriate source reference as xref; an optional ref-type attribute on xref is allowed.
The funding notice from [5], contents and running-text passages from [10], and example metadata in the task description are not output.
Error criteria
The XML is not parseable, contains prose outside XML or uses an incorrect namespace for Dublin Core elements.
A required field for title, creator, publisher, year, language, either ISBN, rights or relation is missing, duplicated or incorrect in content.
An ISBN is incorrect, missing or mixed with an invented additional ISBN, or both ISBNs are combined in one inseparable field.
Source references are missing, outside their metadata elements or assigned to an incorrect value.
Funding, table of contents, chapter headings, example values or other running text are included as bibliographic metadata.
The repeated title or subtitle from [3] replaces the main title Die Kunst der Einfalt.
Judge note: Evaluate semantically with namespace awareness, rather than by serialized string. XML declaration, indentation, line breaks, element order and prefix name are irrelevant. The earlier flattened expected string contains no source references; this rule follows the explicit prompt requirement that each metadata item carry a source reference. A clearly labeled additional subtitle from [3] is tolerable if all required fields remain correct and it is not treated as a second main title.
Prompt
Du erhältst einen umfangreichen Text mit Titelblatt, Lizenzangaben, Verlagsinformationen und viel weiterem Inhalt.
Aufgabe
Erfasse ausschließlich bibliografische Metadaten.
Zeichne diese als Dublin Core XML aus.
Zu erfassende Metadaten, sofern vorhanden
Titel
Autor oder Urheber
Verlag
Erscheinungsjahr
Sprache
Identifikatoren wie ISBN
Lizenz oder Rechteangaben
Beziehungen zu weiteren Verlagen oder Imprints
Jede Metadatenangabe muss ihre Fundstelle in eckigen Klammern tragen.
Die Fundstelle bezieht sich auf den Absatz oder Abschnitt, in dem die Information steht.
Ausgabeformat
Dublin Core XML mit dc Namespace.
Gib ausschließlich das XML zurück.
Beispiel
Text
[1] Titel
Digitale Wissensmodelle
[2] Autor
Max Mustermann
[3] Verlag
Beispielverlag 2021
Ausgabe
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:title>Digitale Wissensmodelle<xref>[1]</xref></dc:title>
<dc:creator>Max Mustermann<xref>[2]</xref></dc:creator>
<dc:publisher>Beispielverlag<xref>[3]</xref></dc:publisher>
<dc:date>2021<xref>[3]</xref></dc:date>
</metadata>
Text
[1] Die Kunst der Einfalt
[2] Nicolas Detering
[3] DIE KUNST DER EINFALT
Märtyrer und Legenden im bürgerlichen
Zeitalter der Literatur
[4] Konstanz University Press
[5] Publiziert mit Unterstützung des Schweizerischen Nationalfonds zur
Förderung der wissenschaftlichen Forschung.
[6] Dieses Werk ist im Open Access unter der Creative-Commons-Lizenz
CC BY-NC-ND 4.0 lizenziert.
[7] © Nicolas Detering 2024
Publikation: Konstanz University Press 2024
[8] Konstanz University Press ist ein Imprint der
Wallstein Verlag GmbH
[9] ISBN (Print) 978-3-8353-9169-7
ISBN (Open Access) 978-3-8353-8069-1
[10] Weitere Inhalte wie Inhaltsverzeichnis, Kapitelüberschriften
und Fließtexte sind für diese Aufgabe zu ignorieren.769 Runs 756 evaluated 27.8 % Score 0.4 % 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