<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Journal of
Dairy Science 98 (2015) 2369-2380. doi:https://doi.org/10.3168/jds.2014</journal-title>
      </journal-title-group>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Graphs for Animal Treatment Recom mendations</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Varsha Kalidas</string-name>
          <email>varsha.kalidas@wur.nl</email>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>André Gomes Regino</string-name>
          <email>andre.regino@ic.unicamp.br</email>
          <email>aregino@cti.gov.br</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Anderson Rossanez</string-name>
          <email>anderson.rossanez@ic.unicamp.br</email>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Julio Cesar dos Reis</string-name>
          <email>jreis@ic.unicamp.br</email>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tarek Alskaif</string-name>
          <email>tarek.alskaif@wur.nl</email>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ricardo da Silva Torres</string-name>
          <email>ricardo.dasilvatorres@wur.nl</email>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Workshop</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="editor">
          <string-name>Systems, Animal Treatment</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>DIMEC, Center for Information Technology Renato Archer -</institution>
          <country country="BR">Brazil</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Institute of Computing, University of Campinas</institution>
          ,
          <country country="BR">Brazil</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Knowledge graphs, Large Language Models (LLMs)</institution>
          ,
          <addr-line>Ethical, Legal, Societal Aspects (ELSA), Recommender</addr-line>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Wageningen University and Research</institution>
          ,
          <country country="NL">the Netherlands</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <volume>33</volume>
      <fpage>0000</fpage>
      <lpage>0002</lpage>
      <abstract>
        <p>Despite the potential of Knowledge Graphs (KGs) in enhancing treatment recommender systems (RSs), there is a significant research gap in developing ontologies and KGs that efectively capture ethical, legal, and societal aspects (ELSA) in healthcare RSs. This study explores the use of Large Language Models (LLMs) to assist in generating KGs that incorporate ELSA for a dairy-cow treatment RS. Our approach involves the generation of five KGs: for cows (the users); treatments (the items); ethical considerations; legal requirements, and social preferences. The KG generation process is semi-automatic, with LLMs aiding in generating structured tuples based on predefined ontologies. Researchers manually curate the information to ensure accuracy and relevance. Our study focuses on the ontological modeling of the KGs, demonstrating how entities and relationships are defined to capture the complex interplay between veterinary treatments and ELSA compliance. Use-inspired scenarios illustrate the generation of KGs based on the ontologies tailored to Dutch dairy production. The resulting KGs provide a foundation for developing dairy treatment RSs that consider ELSA. Our results contribute to integrating domain expertise with AI tools to create knowledge structures supporting informed and ELSA-compliant livestock management decision-making.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Treatment recommender systems (RSs) [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] have emerged as powerful tools in healthcare, leveraging
data-driven approaches to suggest personalized therapies for patients. These systems enhance clinical
decision-making and improve patient outcomes by analyzing vast medical data and patient information
to provide tailored treatment recommendations.
      </p>
      <p>
        In recent years, the integration of Ethical, Legal, and Societal Aspects (ELSA) [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] has gained significant
relevance in the development of trustworthy RSs [
        <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
        ]. ELSA considerations ensure that artificial
intelligence (AI)–driven recommendations align with ethical concerns, legal requirements, and societal
preferences. This is particularly crucial in healthcare applications, where treatment decisions can
profoundly impact patients’ lives. Ensuring ELSA compliance in RSs has become increasingly important,
especially with the introduction of legislative frameworks such as the EU AI Act and data protection
regulations like the GDPR. Compliance protects users and fosters trust in healthcare RSs.
      </p>
      <p>
        Knowledge Graphs (KGs) have emerged as a powerful tool for representing complex, interconnected
information in a structured manner [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. They capture diverse entities and relationships, making them
(R. d. S. Torres)
      </p>
      <p>CEUR</p>
      <p>
        ceur-ws.org
particularly suitable for modelling the multifaceted nature of healthcare and ELSA. A key advantage of
KGs is their machine-readable format. It enables computational systems to store data and reason over
interconnected data, perform complex inferences, and extract meaningful insights through semantic
analysis. KGs are constructed relying on Resource Description Framework (RDF) triples through data
extraction, transformation, and loading. RDF triples consist of subject-predicate-object statements and
can be collected from various sources such as websites, existing semantic markups, or unstructured
text documents [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Recently, Large Language Models (LLMs) [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] appeared promising in the data
transformation process of KG construction [
        <xref ref-type="bibr" rid="ref8 ref9">8, 9</xref>
        ] due to their advanced natural language understanding
and prompt-informed generation capabilities [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
      </p>
      <p>
        Ontologies are crucial computer artifacts in modelling domain knowledge, such as ELSA, for creating
KGs. They provide a formal, shared domain conceptualization, allowing for consistent knowledge
representation [
        <xref ref-type="bibr" rid="ref11 ref12">11, 12</xref>
        ]. This semantically structured approach enables advanced reasoning and
decisionmaking in RSs. Ethical principles, legal requirements, and social preferences or norms can be modelled
using ontologies to create KGs. Moreover, existing ontologies can be leveraged from domains such as
healthcare, ethics, and legal studies to accelerate KG development and ensure alignment with established
standards.
      </p>
      <p>
        Despite the potential of KGs in enhancing ELSA-compliant treatment RSs, there is a significant
research gap in developing comprehensive ontologies and KGs that efectively capture the complex
interplay between ELSA and treatments in healthcare decision-support systems. Addressing this gap
would involve creating robust ELSA-focused ontologies that assist RSs in providing ELSA-compliant
treatment recommendations. One challenge refers to the encoding of domain-specific ELSA into
ontologies. This task requires aligning existing ontologies (concepts and relationships) from various
ifelds ( e.g., medical and legal) or creating new ones to address existing gaps. Also, domain-specific
ELSA knowledge is often scattered across diferent sources and encoded into unstructured documents
(e.g., legislation). Social aspects are primarily intangible and mutable [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], making it challenging to
ifnd relevant information digitally or otherwise. The encoding of evolving ELSA knowledge further
poses challenges. In this case, created ontologies should enable the dynamic update of KGs as ELSA
standards change over time.
      </p>
      <p>This study proposes incorporating ELSA into treatment RSs by leveraging LLMs to generate KGs.
In the context of treatment RSs for Dutch dairy production, we model ontologies to represent various
aspects, such as animal health and regulatory compliance. We explore ontologies to define concepts
related to cow health, treatment options, and their associated ethical and legal aspects. Use-inspired
scenarios illustrate the generation of KGs based on the ontologies tailored to Dutch dairy production.
In particular, we present and discuss challenges and lessons learned related to a comparative study
addressing diferent strategies involving diferent LLM models and ontology-based prompt construction
approaches for structuring ELSA-based knowledge into KGs.</p>
      <p>The contributions of this article are threefold:
• Introduce domain-specific ELSA ontologies in healthcare RSs and validate the approach using a</p>
      <p>Dutch dairy production use case.
• Introduce use-inspired scenarios by illustrating KGs created based on developed ontologies.
• Demonstrate a comparative study including diferent LLMs and prompt design construction
strategies for generating ELSA-related RDF triples in our KGs.</p>
      <p>
        Our findings suggest that the integration of domain-specific ELSA ontologies with LLMs is a promising
direction for structuring relevant ELSA knowledge into the implementation of KG-based RSs [
        <xref ref-type="bibr" rid="ref14 ref15">14, 15</xref>
        ].
These findings provide valuable insights to developers, stakeholders, and practitioners interested in
creating ELSA-compliant RS. Particularly in dairy production, such RSs recommend efective treatments
and ensure compliance with veterinary regulations, animal welfare standards, and ELSA in dairy
farming.
      </p>
      <p>This article is organized as follows: Section 2 describes related work and introduces relevant
background concepts; Section 3 describes the proposed pipeline for ELSA KG construction, highlighting</p>
      <sec id="sec-1-1">
        <title>Decision Support</title>
      </sec>
      <sec id="sec-1-2">
        <title>System</title>
      </sec>
      <sec id="sec-1-3">
        <title>Treatment</title>
      </sec>
      <sec id="sec-1-4">
        <title>Knowledge Graph</title>
      </sec>
      <sec id="sec-1-5">
        <title>Based Recommender</title>
      </sec>
      <sec id="sec-1-6">
        <title>System</title>
      </sec>
      <sec id="sec-1-7">
        <title>Decision Support</title>
      </sec>
      <sec id="sec-1-8">
        <title>System</title>
      </sec>
      <sec id="sec-1-9">
        <title>Mastitis</title>
      </sec>
      <sec id="sec-1-10">
        <title>Treatment</title>
      </sec>
      <sec id="sec-1-11">
        <title>Knowledge Graph</title>
      </sec>
      <sec id="sec-1-12">
        <title>Based Recommender</title>
      </sec>
      <sec id="sec-1-13">
        <title>System</title>
      </sec>
      <sec id="sec-1-14">
        <title>User Treatment</title>
        <p>KG KG</p>
      </sec>
      <sec id="sec-1-15">
        <title>Cow Mastitis ELSA</title>
      </sec>
      <sec id="sec-1-16">
        <title>KG Drugs KG KGs</title>
      </sec>
      <sec id="sec-1-17">
        <title>KG-based Treatment</title>
      </sec>
      <sec id="sec-1-18">
        <title>Recommender System</title>
      </sec>
      <sec id="sec-1-19">
        <title>KG-based ELSA-compliant</title>
      </sec>
      <sec id="sec-1-20">
        <title>Mastitis Treatment</title>
      </sec>
      <sec id="sec-1-21">
        <title>Recommender System</title>
        <p>the modelling of ontologies derived from a dairy production case; Section 4 presents the validation
procedures and results of the modelling; Section 5 discusses the findings. Section 6 draws conclusion
remarks and points out directions for future work.</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>2. Background and Related Work</title>
      <sec id="sec-2-1">
        <title>2.1. KG-based Recommender Systems Including for Mastitis Treatment</title>
        <p>
          Fig. 1 presents the conceptual view of a treatment recommendation system (left) and a mastitis treatment
recommendation system (right). Both systems rely on KG-based recommender systems, which explore
KGs in encoding user and treatment (item) properties and their previous interaction [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ]. The reader
may refer to [
          <xref ref-type="bibr" rid="ref14 ref16">14, 16</xref>
          ] for an overview of KG-based recommendation systems. In particular, our study
focuses on modelling and creating ELSA-related KG aiming for their use in a KG-based mastitis treatment
recommender system, a problem overlooked in the literature.
        </p>
        <p>
          Bovine mastitis is a painful mammary gland inflammation due to physical trauma or microorganism
infections. Despite the advances concerning diagnostic procedures, mastitis is still the most frequent
and costly disease in dairy farms, with significant negative impacts on profitability and animal
welfare [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ]. Mastitis is also the primary driver of antibiotic usage in dairy animals. It demands judicious
and responsible decision-making regarding its use in livestock production in the face of emerging
pathogen resistance [
          <xref ref-type="bibr" rid="ref18">18</xref>
          ]. Searching for suitable treatments demands the identification of their eficacy
considering multiple variables and dimensions (e.g., animal welfare, operational costs, estimated profits,
and environmental conditions). Currently, farmers often rely on their past experiences when they
make decisions [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]. In our formulation, the goal is to recommend mastitis treatments (e.g., drugs)
to farmers and veterinarians, taking into account domain-specific ELSA ( e.g., ethical issues related to
animal welfare or existing regulations related to the use of antibiotics).
        </p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. ELSA in Recommender Systems</title>
        <p>
          In recent years, the integration of trustworthy principles or ELSA, such as Safety, Robustness,
Nondiscrimination, Fairness, Explainability, Privacy, Environmental Well-being, and Accountability, has
gained significant relevance in the development of trustworthy RSs [
          <xref ref-type="bibr" rid="ref19 ref3 ref4">3, 4, 19</xref>
          ]. However, as noted in the
survey by Ge et al. [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ], research into trustworthy RSs often has a narrow focus on singular aspects,
such as fairness or privacy. The study by Wang et al. [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] is one of the first that presents a conceptual
framework to support the construction of trustworthy RSs.
        </p>
        <p>
          Research on building RSs with a broad and comprehensive focus on all critical aspects is still limited [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ].
Existing approaches have a global or overall RS-level view when integrating ELSA and do not focus
on local or individual recommendations. Additionally, the practice seems to operationalize an aspect
of trustworthiness by translating it to a mathematical metric [20], such as a fairness score. Unlike
existing approaches, our solution presents a practical way of integrating multiple domain-specific ELSA
into an RS by encoding the ELSA into KGs instead of metrics. In addition, we focus on ELSA at the
recommendation level.
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>2.3. KG Creation based on Large Language Models (LLMs)</title>
        <p>
          Bosselut et al. [21] developed Commonsense Transformers to generate common-sense knowledge
graphs, thereby demonstrating the ability of pre-trained language models to generate common-sense
descriptions in a loosely structured format. In another venue, Melnyk et al. [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] extracted KGs from
the New York Times and TekGen datasets in a two-stage approach, where a pre-trained LLM extracts
nodes and an edge construction head defines the edges. Zhang and Soh [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ], in turn, demonstrated the
generation of triples for large texts even when the ontology is unavailable or too large to fit into the
context window of an LLM. They used the WebNLG, REBEL, and Wiki-NRE datasets. In another venue,
Zhang et al. [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ] fine-tuned LLMs to generate triples on public datasets, such as WebNLG, SKE, DocRed,
FewRel, and KELM.
        </p>
        <p>
          In contrast to the work of Bosselut et al. [21], we generate triples in a canonical format. Diferent
from Melnyk et al. [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ], we extract the entities and relations using an LLM. Similar to Zhang and Soh [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ],
we experiment with generating triples with or without the inclusion of the ontology. Unlike Zhang et
al. [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ], we do not fine-tune the LLM; we use it in its original pre-trained form by exploring in-context
learning. Distinct from all these initiatives, we originally focused on creating KGs related to veterinary
healthcare.
        </p>
        <p>In this work, we follow the study by Regino et al. [22], who proposed an LLM-based approach for triple
generation toward creating e-commerce KGs. Their approach comprised four steps: (i) identification of
text source type, (ii) extraction of relevant information from the text source, (iii) generation of RDF
triples based on identified information, and (iv) validation of generated triples. LLMs are employed in
the first three steps. Diferent from their study, we focus on the LLM-guided sentence simplification
and triple-generation problems.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. ELSA KG Generation and Ontology Modelling</title>
      <p>This section introduces the proposed method for ELSA KG generation and the ontological modeling of
KGs.</p>
      <sec id="sec-3-1">
        <title>3.1. Conceptual View</title>
        <p>Unstructured</p>
        <p>Documents
Pre-trained</p>
        <p>LLMs</p>
        <p>Curated
ELSA
Triples</p>
        <p>&lt;/&gt;
NLP</p>
        <p>Methods
Prompt Template
Instructions
Examples
Prompt Template
Instructions
Examples</p>
        <p>Ontologies
including ELSA, NLP methods, a prompt template, instructions, examples, and a pre-trained LLM as
input. It produces a list of simpler sentences as output.</p>
        <p>First, in the Co-reference Resolution sub-component, co-references in the document are resolved
using NLP methods. Then, in the Prompt Generation for Sentence Simplification sub-component, a
prompt for sentence simplification is formulated using the prompt template, instructions, and examples.
The LLM-based Simple Sentence Generation sub-component uses this prompt to query the input LLM
to generate simpler sentences. In Fig. 4 (left), the prompt template, including an example sentence,
illustrates an example prompt used for sentence generation. Due to space considerations, only one
example is provided in the figure.</p>
        <p>The LLM-based Triple Generation component receives these simpler sentences, pre-trained LLMs, a
prompt template, instructions, examples, and ontologies as input. It produces a set of triples as output.</p>
        <p>In the Prompt Generation for Triple Generation sub-component, a triple-generation prompt is
formulated using the prompt template, instructions, examples, and ontologies. Note that the examples
and ontologies are optional. The LLM-based Triple Generation subcomponent uses this prompt to
query the input LLM to generate the triples. In Fig. 4 (right) the prompt template, including an example
sentence, illustrates an example prompt used for triple generation. Due to space considerations, only
one example is provided in the figure.</p>
        <p>The Triple Curation component is responsible for the curation of the triples. An expert reviews the
generated triples and makes suitable modifications, making this a semi-automatic pipeline. This step
can also be made automatic by employing a machine-learning-based curation component. Finally, the
curated triples are stored in a triple store for further use in generating KGs.</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Ontological Modelling of Knowledge Graphs</title>
        <p>
          An ontology formally represents computer-interpretable knowledge within a specific domain, consisting
of concepts or entities and their relationships [
          <xref ref-type="bibr" rid="ref11 ref12">11, 12</xref>
          ]. It refers to a directed-graphical structure where
the nodes represent classes or entities and the edges represent the relationships or properties between
the entities. The relationships describe how entities relate to each other. The definition of entities
and relationships enables a shared understanding of a domain, enabling data integration, knowledge
Input (Unstructured Text Document)
Common adverse effects of cloxacillin are upset stomach, nausea, and
vomiting.
        </p>
        <p>Output (Curated RDF Triples)
&lt;Medication/Cloxacillin&gt; oae:has_adverse_event &lt;Adverse_event/upset_stomach&gt;.
&lt;Adverse_event/upset_stomach&gt; oae:has_certainty &lt;Certainty/common&gt; .
&lt;Medication/Cloxacillin&gt; oae:has_adverse_event &lt;Adverse_event/nausea&gt; .
&lt;Adverse_event/nausea&gt; oae:has_certainty &lt;Certainty/common&gt; .
&lt;Medication/Cloxacillin&gt; oae:has_adverse_event &lt;Adverse_event/vomiting&gt; .
&lt;Adverse_event/vomiting&gt; oae:has_certainty &lt;Certainty/common&gt; .
Simpler Sentences:
Upset stomach is a common adverse effect of cloxacillin.</p>
        <p>Nausea is a common adverse effect of cloxacillin.</p>
        <p>Vomiting is a common adverse effect of cloxacillin.</p>
        <p>2. LLM-based Triple Generation
&lt;Medication/Cloxacillin&gt; oae:has_adverse_event &lt;Adverse_event/upset_stomach&gt;.
&lt;Adverse_event/upset_stomach&gt; oae:has_certainty &lt;Certainty/common&gt; .</p>
        <p>Here are the triples for the sentence:
&lt;Medication/Cloxacillin&gt; oae:has_adverse_event &lt;Adverse_event/nausea&gt; .
&lt;Adverse_event/nausea&gt; oae:has_certainty &lt;Certainty/common&gt; .
&lt;Medication/Cloxacillin&gt; oae:has_adverse_event &lt;Adverse_event/vomiting&gt; .
&lt;Adverse_event/vomiting&gt; oae:has_certainty &lt;Certainty/common&gt; .</p>
        <p>3. Triple Curation
to curated ELSA triples, including the various intermediary outputs from each component of the processing
pipeline.</p>
        <p>Prompt Template: Sentence Simplification</p>
        <p>Prompt Template: Triple Generation
Instructions
You will receive a sentence. Your task is to
convert the sentence into sets of simpler
sentences. The simpler sentences must
contain single subject, a single predicate, and
a single object. Only return the simpler
sentences. Avoid explanation. Strictly adhere
to the structure provided in the examples. I
will provide four example sentences.</p>
        <p>Complete the fifth.</p>
        <p>Examples
Sentence: Serious side effects of hexacillin
may include Clostridium difficile colitis or
anaphylaxis.</p>
        <p>Simpler sentences: Clostridium difficile colitis is
a serious side effect of hexacillin.</p>
        <p>Anaphylaxis is a serious side effect of
hexacillin.
....</p>
        <p>Instructions
For each given sentence, you should create RDF triples that describe the sentence in the
TermBased Graph Representation. To help you, I will also provide the classes and properties that
should be present in the generated RDF triples. These classes and properties are defined in an
ontology. A triple is composed of a class such as a medication name (example: Amoxicillin), a
property (example: type of) and another class (example: antibiotic). In the triples, each dot
represents the end of a triple. Please generate RDF triples to describe the medication adhering
to the classes and properties defined in the provided ontology. Only use properties that are in
the list. Never use other properties outside the list. Ignore new properties. Avoid explanations.</p>
        <p>Only output the triples. If a new property is found, output nothing. If a new class is found, output
nothing. I will provide four examples. Complete the fifth.</p>
        <p>Ontology
Examples
{ "Classes": ["Medication", "Adverse_Event", "Certainty", "Severity"],
"Properties":[ "rdf:type","oae:has_adverse_event","oae:has_severity", "oae:has_certainty",
"common", "possible", "rare", "low", "medium", "high" ] }
Sentence: Nausea is a common adverse effect of hexacillin.</p>
        <p>Triples: &lt;Adverse_Event/Nausea&gt; rdf:type &lt;Adverse_Event&gt; .
&lt;Medication/Hexacillin&gt; oae:has_adverse_event &lt;Adverse_Event/Nausea&gt; .</p>
        <p>&lt;Adverse_Event/Nausea&gt; oae:has_certainty &lt;Certainty/common&gt; .
sharing, and automated reasoning. Ontologies can be reused across diferent domains and applications,
allowing knowledge models to be adapted and extended to solve diverse challenges.</p>
        <p>We elaborate on the ontologies modelled for the animals, treatments, and ethical, legal, and social
aspects, relying on existing ontologies adapted and reused. They are explored for developing KGs in a
treatment RS for mastitis in Dutch dairy cattle. We present a high-level conceptual model rather than a
comprehensive ontology for clarity and brevity organized in the main modules concerning “Animal
(Users)” (cf. Section 3.2.1), “Treatment (Items)” (cf. Section 3.2.2), and “Ethical, Legal, and Social” (cf.
Section 3.2.3). Specific details are provided in the appropriate sections.</p>
        <p>ID</p>
        <p>Animal
Welfare</p>
        <p>Trait
- Concept
- Relation
Links
hasCondition
hasTrait
hasTrait</p>
        <p>Nutrition
Trait
hasTrait</p>
        <p>hasTrait
Egg Trait FatTtyraliitver PGrorMTodwrueacatihtttio&amp;n PMGroalTMdmarunaimlcdkittai&amp;oryn</p>
        <p>(a) Animal Ontology
- Concept
- Relation
Links
3.2.1. Animal (Users)
The “users” in our context are production animals in precision production systems because the treatment
recommendations are provided for them. Farmers or veterinarians may also use the system itself. The
essential data for an RS would be the animal-identifying characteristics such as the animal ID, age,
weight, and historical health conditions. We start by using all production animal trait classes (animal
welfare trait, fatty liver trait, egg trait, growth and meat production trait, mammary gland and milk
production trait, nutrition trait, and reproduction trait) from the Animal Trait Ontology for Livestock
(ATOL) by Golik et al. [23] available at Bioportal.1 This ontology was selected because it provided a
comprehensive class set describing diferent traits of production animals. This enables the extension of
the system to other animals in the future. Next, we add the Condition class from the Disease-Treatment
Ontology proposed by Khoo et al. [24] to represent additional conditions or patient attributes that
may influence the treatment eficacy. This class includes the age, medical history, and other diseases
that may be present. Finally, since production animals are likely to have a unique identifier, this is
added as an RDF property hasID. The final ontology comprises 2356 classes and 6 property types. The
ontological model for a production animal is presented in Fig. 5a.
1https://bioportal.bioontology.org/ontologies/ATOL (As of January 2025).
3.2.2. Treatment (Items)
The treatment model is modelled by re-using the Treatment class of the Disease-Treatment
Ontology [24]. This ontology was used for its ability to systematically encode disease-treatment information
into distinct classes (e.g., disease, treatment, condition, efect, and evidence), enabling precise
representation of information from medical abstracts, similar to our case using textual information about
medications. The ontological model for a treatment is presented in Fig. 5b. It has information about the
drug dosage and administration, surgical procedures, and administration scheme as properties. Drug
information is used from the Drug Product class from the Drug Ontology available at Bioportal.2 The
ifnal ontology comprises 4 classes and 6 property types.
3.2.3. Ethical, Legal, and Social Knowledge Graphs
Ethical KG
Beneficence, non-maleficence, autonomy, and justice constitute the four main principles in clinical
ethics [25, 26]. Beneficence is the obligation of the physician to act for the benefit of the patient [ 25].
Non-maleficence is the obligation of a physician not to harm the patient [ 25]. The principle of autonomy
is interpreted as all persons having intrinsic and unconditional worth and therefore allowed the power
to make rational decisions and moral choices, and each allowed to exercise his or her capacity for
self-determination [27]. It does not extend to persons who can not act autonomously [25]. Since the
use case involves animals, this principle is not extended to cows since they cannot act autonomously. A
production animal cannot be expected to choose which treatment it would prefer. Therefore, autonomy
is not part of the ontology. Justice is interpreted as fair, equitable, and appropriate treatment [25]. This
principle can be addressed by other means, such as using fair recommendation algorithms and fair
training data. Hence, it is not part of the ontology.</p>
        <p>Practically, the application of beneficence and non-maleficence can be illustrated when a physician
weighs the benefits against the burdens of all possible treatments and chooses the ones that are the best
course of action for the patient, and refrains from using those that are inappropriately burdensome. A
physician’s obligation and intention to relieve the sufering of a patient by the use of appropriate drugs
override the foreseen but unintended harmful efects or outcomes [ 25, 28]. Specifically for animals, the
application of beneficence and non-maleficence corresponds to ensuring freedom from discomfort and
freedom from pain, injury, or disease (see Five Freedoms for Animal Welfare3).</p>
        <p>In the context of diseases in production animals, the RS is intended to recommend drugs for the benefit
of the animal (beneficence). However, drugs may cause adverse events (AEs). By giving preference to
drugs with the least AEs or ones with less severe AEs, the system can be made to be as non-maleficent
as possible. Therefore, AEs and severity are included in the ontology. The drug information from the
Drug Ontology used for the treatment KG is also used for this KG. For AEs, the Ontology of Adverse
Events is available at Bioportal.4 We reused the sub-classes Adverse event, Causality, Duration,
and Severity. The Adverse event class provides a rich taxonomy of several AEs. The Causality,
Duration, and Severity classes provide sub-classes to define the certainty of occurrence, duration
(acute or chronic), and severity (six grades from GO, indicating an AE with sign and symptom within
normal limits, to G5, indicating an AE that results in death) of AEs. The final ontology comprises 9113
classes and 4 property types. The ontological model for the ethical aspects is presented in Figure 5c.
Legal KG
The rules and regulations on veterinary medicinal products are established at the European level and
set out in the Veterinary Medicinal Products Regulation.5 The regulation is binding for all European
2https://bioportal.bioontology.org/ontologies/DRON?p=classes&amp;conceptid=http%3A%2F%2Fpurl.obolibrary.org%2Fobo%
2FDRON_00000005 (As of January 2025).
3https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=LEGISSUM:animal_welfare (As of February 2025).
4https://bioportal.bioontology.org/ontologies/OAE (As of January 2025).
5https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX%3A32019R0006&amp;from=EN (As of January 2025).
Union member states and, therefore, applicable to the Netherlands. For our purposes, we found two
aspects that could be modelled for use in the KG: the marketing authorization for veterinary medicinal
products and the susceptibility of antimicrobial resistance (AMR) of a veterinary medicinal product.
Only veterinary medicinal products that a Member State grants marketing authorisation to should be
used in that Member state. The marketing authorisation also specifies the intended target species for
the product. This information was added as an additional has_target_species property. Information
about AMR would ensure the prudent use of products such as antimicrobials, avoiding their routine use
and restricting the use of antimicrobials critical for preventing or treating life-threatening infections in
humans. The Antibiotic Resistance Ontology (ARO) [29], available at Bioportal6 was reused to model
the AMR of drugs. The antibiotic molecule class was reused. A property relation resisted_by
was added to indicate that an antibiotic is resisted by a pathogen. The final ontology comprises 662
classes and 2 property types. The ontological model for the legal aspects is presented in Figure 5d.
Social KG
For modelling the social aspects, since these are very context-specific, we looked into the available
literature on social factors related to mastitis management on dairy farms. The key factors at play are
farmer attitudes, knowledge, behaviour, social norms, and perception of control [30, 31, 32]. Farmer
attitudes relate to the problem level bulk milk somatic cell count (BMSCC) used by the farmer for
diagnosing mastitis, preferences for reducing the BMSCC, aspects of mastitis that the farmer finds
annoying, such as increased labour or uncertainty of recovery [32]. Farmer knowledge relates to the
knowledge level of the farmer concerning mastitis and the main sources of mastitis information [32].
Farmer behaviour relates to the particular farm management practices employed by the farmer, herd
size, diagnosing practices, and information exchange sources [31, 32]. Social norms are factors that
may influence farmers, such as extending antibiotic treatments for ‘being a good farmer’, perceived
positive reference groups with whom the farmer identifies and regularly communicates with, such as
other farmers, the herd veterinarian, and other farm advisors [33]. Diferent farmers have diferent
motivations, such as avoiding penalties, achieving premiums, improving farm eficiency, or basic
economic motivations [34]. Further, the costs of mastitis are diferent for diferent farmers and cannot
be generalized. Even for similar cases of mastitis in an animal, the farm economics that influence
management decisions are diferent [ 35]. The perception of control refers to how comfortable farmers
feel about managing a disease. Some farmers may feel anxious because they believe they lack control
over the situation, while others might experience frustration due to aspects that are challenging to
manage. Furthermore, some may feel extremely anxious and attribute their struggles to bad luck [31].
The final ontology comprises 8 classes and 0 property types. The corresponding ontological model is
shown in Figure 5e.</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.3. Knowledge Graph Generation using Large Language Models (LLMs)</title>
        <p>In our approach to extracting RDF triples from natural language texts, LLMs were leveraged using
zero-shot and few-shot prompting [36], along with the predefined ontologies. The instructions, ontology,
and input sentences were provided for zero-shot prompting. For few-shot prompting, five to seven
example sentences were provided in the prompting for each of the treatment, ethical, and legal KGs,
along with the corresponding RDF triples that cover a wide range of the entity and relationship types
relevant to that KG.</p>
        <p>The list of ontology classes and properties was provided to the LLM to ensure alignment with the
intended KG structure. A prompt template was constructed that included the examples (in the case
of few-shot prompting) and the ontology, followed by the input text from which triples were to be
extracted. The LLM was instructed to generate RDF triples for the new text in a format consistent with
the provided examples and using only the specified ontology statements. Algorithm 1 formalizes our
designed procedure.
6https://bioportal.bioontology.org/ontologies/ARO (As of January 2025).</p>
        <p>Algorithm 1: Extraction of Knowledge Graph Triples using LLMs
1 Function ExtractTriples</p>
        <p>Data: an Ontology  associated with KG, a pre-trained LLM model ℒ, a prompt base ℬ that
includes the instructions (and examples in the case of few-shot prompting) for the KG,
and the input text document ℐ consisting of a list of sentences</p>
        <p>Result: Triples  associated with the input document
2  ← ∅
3 foreach  ∈ ℐ do
4  ←    (ℬ,  , )
5  ←  ⋃   ( , ℒ )
6</p>
        <p>return</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Validation</title>
      <p>This section describes the methodology used to validate the developed ontologies using real-world data
and the results we achieved.</p>
      <sec id="sec-4-1">
        <title>4.1. Methodology</title>
        <p>The validation was guided by practical considerations and data availability, focusing on those aspects
of the ontologies for which we could either generate or acquire data for input to component 1 of the
Triple Generation pipeline (Fig. 2). Therefore, the KGs in this section may have fewer entities and
relationship types than those described in the models in Section 3.2. For the sentence simplification
and triple generation sub-components, state-of-the-art open-source LLMs were used. In particular,
for the triple-generation sub-component, we perform a comparative analysis of two types of LLMs:
general-purpose LLMs and LLMs specialized for reasoning tasks. The quality of the generated triples in
terms of correctness and completeness was inspected by the researchers based on their knowledge. The
state-of-the-art open-source general-purpose LLM (as of the 10th of February 2025), the
llama-3.3-70bversatile model7, was used for the triple generation task. Additionally, another model specialized in
reasoning tasks, the deepseek-r1-distill-llama-70b model 8, was used to compare the two models. The
distilled version is also more eficient in terms of cost and energy. Therefore, the comparison would
show whether a reasoning-specialized model would be more suited for the task. The temperature
hyperparameter was set to 0.6 for both models to ensure a balance between deterministic and creative
output. Table 1 provides a brief description of the models compared for triple generation.</p>
        <p>Further, we also compare the performance of these models in three cases: prompts with only
instructions, prompts with instructions and ontologies, and prompts with instructions, ontologies, and
examples.
4.2. Data
For the cow production animal (user) KG, cow health data can be gathered from electronic veterinary
health records (EVHRs) or milking robots. For the treatment, ethical, and legal KGs, we first compiled
a list of drugs that are approved to be used to treat mastitis in the Netherlands9 The resulting list
comprised eleven single-compound drugs. For the sake of simplicity of KG construction, combinations
of multiple drugs were excluded. Then the relevant drug information was collected from publicly
7https://console.groq.com/docs/model/llama-3.3-70b-versatile (As of April 2025).
8https://console.groq.com/docs/model/deepseek-r1-distill-llama-70b (As of April 2025).
9https://www.knmvd.nl/app/uploads/sites/4/2024/10/240815-formularium-melkvee-versie-1.10.pdf (See Page 25 for mastitis
(in Dutch) – As of Dec. 2024).
• An LLM based on Llama-3.3-70B-Instruct, fine-tuned using supervised
fine-tuning and reinforcement learning with human feedback to align
outputs with human preferences for helpfulness and safety. Optimized
for a wide range of tasks such as coding, reasoning, math, general
knowledge tasks, instruction following, and tool use. Ofers high
performance across various benchmarks while maintaining eficiency.
• Cost-wise, cheaper than models like GPT-4 but still expensive compared</p>
        <p>to distilled models [37].
• The dense parameter structure also consumes more energy compared</p>
        <p>to distilled models [38].
• A distilled LLM based on Llama-3.3-70B-Instruct, using outputs from</p>
        <p>DeepSeek R1. Leverages knowledge distillation to retain robust
reasoning capabilities in smaller, more agile architectures. Delivers exceptional
performance on benchmarks in mathematical and logical reasoning.
• Lower cost due to reduced computational requirements from
distilla</p>
        <p>tion [37].
• Highly energy-eficient due to compact architecture and optimized</p>
        <p>inference [38].
available data sources, 10 11 12 and stored in text format. Next, co-references in the sentences were
resolved using the spacy NLP library [39]. Lastly, sentences were simplified to contain a single subject,
predicate, and object by the Sentence Simplification sub-component as described in Section 2.</p>
        <p>For the treatment KG, information about drug family classification, and mode of administration was
collected. For the ethical KG, information about drug adverse efects along with their severity was
collected. We used three grades (High, Medium, and Low) for the severity since data at the level specified
in the ontology could not be found easily. For the legal KG, information about drug antimicrobial
resistance and intended target species was collected. The requirement for marketing authorization is
implicitly met since information about only the approved drugs is collected.</p>
      </sec>
      <sec id="sec-4-2">
        <title>4.3. Results</title>
        <p>4.3.1. Use case
This section first provides examples of KG models using a dairy production system’s use case, followed
by a comparison of the results obtained for the generated triples using diferent LLMs with diferent
prompt formulations.</p>
        <p>In this section, we provide examples of the KGs that can be generated using the RDF triples extracted
using LLMs, thereby demonstrating how the ontological models can be used in the context of a
treatment RS considering the practical availability of data. In the figures accompanying each example
KG, note that classes from the ontology are referred to as concepts, while nodes containing information
about specific instances are referred to as entities. The edges that represent predicate relationships
between entities are called relation type links, whereas the edges connecting a node to concepts in the
ontology are referred to as relation links. For simplicity, each entity is connected to the top-level class
in the ontology through a single relation link. However, the specific class or property associated with
the entity may be located deeper in the ontology and can be reached by traversing multiple levels from
the top-level class. For instance, in the ATOL Ontology, the Milk Somatic Cell Count property can
be reached by the following path: Mammary Gland &amp; Milk Production Trait -&gt; Mammary Gland
Production Trait -&gt; Milk Trait -&gt; Milk Quality Trait -&gt; Milk Composition Trait -&gt;
Milk Cell Count -&gt; Milk Somatic Cell Count.</p>
        <p>For the bovine KG, due to the limited availability of EVHRs, synthetic cow profiles were created
manually using mastitis diagnostic knowledge from veterinary literature [40]. An example profile is
shown in Fig. 6a. For the treatment KG, due to the limited availability of veterinary treatments, the full
treatment ontological model was not used. Instead, the drug name, family, and mode of administration
were used to build the KG since these were available on public sources. An example KG for the drug
Ampicillin is shown in Fig. 6b. For the ethical KG, the adverse events and severity information were
used and an example KG for the drug Ampicillin is shown in Fig. 6c. For the legal KG, the AMR and
target species information was used and an example KG for the drug Ampicillin is shown in Fig. 6d. A
conceptual view of the social KG for diferent farmers evolving through diferent times is shown in
Fig. 6e. Those KGs would encode, for a given farm, the treatment history for diferent cows. The social
KG was not generated due to two reasons. The first is that the ontological model could be improved
further but needs more detailed research by domain experts, which is out of the scope of the present
researchers. The second is that it is dificult to obtain such social data at dairy farms.
4.3.2. Knowledge Graph Generation
The results of using these LLMs to extract triples using only instructions (without ontologies and
examples), zero-shot prompting, and few-shot prompting are shown in Tables 2, 3, and 4, respectively.
Note that for the deepseek-r1-distill-llama-70b model, only the final output after the thinking token is
displayed.</p>
        <p>When generating triples without ontologies or examples, interestingly, the llama-3.3-70b-versatile
model generated triples adhering to the instructed triple format, whereas the
deepseek-r1-distillllama-70b model was unable to do so. As shown in Table 2, for the input text “Upset
stomach is a common adverse efect of cloxacillin” , the llama-3.3-70b-versatile model first generated the
namespace definitions for the generated classes and properties (
http://example.org/medical_condition/UpsetStomach, http://example.org/relationship/commonAdverseEfectOf,
http://example.org/drug/Cloxacillin), and then generated the triples “&lt;http://example.org/medical_condition/UpsetStomach&gt;
&lt;http://example.org/relationship/commonAdverseEfectOf &gt; &lt;http://example.org/drug/Cloxacillin&gt; .” The
deepseek-r1-distill-llama-70b model, in turn, generated the triples “upset_stomach - adverse_efect_of
cloxacillin.” and “upset_stomach - common - true”.</p>
        <p>When using zero-shot prompts with ontologies, both models struggled with adhering to the provided
classes and properties and the required triple format, and generated additional classes and properties. As
shown in Table 2, for the input text “Pain occurs at the injection site”, the llama-3.3-70b-versatile model
generated the triples _:b1 rdf:type Adverse_Event. , _:b1 oae:has_severity low. , _:b1 oae:has_certainty
common. , _:b2 rdf:type Medication. , and _:b2 oae:has_adverse_event _:b1 ., while the
deepseek-r1-distillllama-70b model generated &lt;Medication&gt; rdf:type Medication. , &lt;Medication&gt; oae:has_adverse_event
&lt;Adverse_Event&gt;. , &lt;Adverse_Event&gt; rdf:type Adverse_Event. , and &lt;Adverse_Event&gt; common “Pain”.
Here, the entities “_:b1”, “_:b2” and the relation “common” are incorrect.</p>
        <p>When using few-shot prompts, both models could generate similar results. When the generated triples
were accurate, the performance of both models was similar. Table 4 presents for the input texts “Upset
stomach is a common adverse efect of cloxacillin” and “Fever is an adverse reaction to cephapirin”, both
the models generate the same complete and correct triples. When the models encountered a sentence
structure diferent from the provided examples, there was a diference in performance with the
llama3.3-70b-versatile model generating triples with additional properties. The deepseek-r1-distill-llama-70b
model, in turn, generated only the main entity. For the input text “Pain occurs at the injection site”, the
Mammary
Gland &amp; Milk
Production</p>
        <p>Trait
Concept
Entity
Type Links
Relation Links
Concept
Entity
Type Links
Relation Links</p>
        <p>High
(a) Cow (User) KG</p>
        <p>Ampicillin
hasAdverseEvent</p>
        <p>Anaphylaxis
hasSeverihtyasCausalityhasDurAatciounte</p>
        <p>Probable
(c) Ethical KG
llama-3.3-70b-versatile model generated non-existing properties related to certainty and severity, while
the deepseek-r1-distill-llama-70b model only generated the triple for the adverse event related to pain.
Although there is an example of not generating triples when there are no side efects, both models fail
to follow this example. The llama-3.3-70b-versatile model tended to provide explanations, while the
deepseek-r1-distill-llama-70b model tended to extract the main entity, as in the case of the generated
triples for the input text “Danofloxacin has no side efects” . Furthermore, although there are instructions
to not provide explanations, the llama-3.3-70b-versatile model tended to ignore this instruction and
generated explanatory text or other conversational phrases such as “Here are the triples:”.</p>
        <p>To illustrate the size of the output generated by the models under diferent prompting strategies,
consider an input document consisting of two sentences“Adverse events of procainebenzylpenicillin
include pain at the site of injection, blood clotting problems, seizures, and allergic reactions. procaine
penicillin can cause severe adverse efects such as seizures and CNS abnormalities.” . The
llama-3.3-70bversatile model generates 21, 33, and 16 triples for instruction-only, zero-shot, and few-shot prompts
respectively. The deepseek-r1-distill-llama-70b model generates 12, 23, and 19 triples for
instructiononly, zero-shot, and few-shot prompts respectively.
Prompt: For each given sentence, create RDF triples that describe the sentence in the Term-Based Graph Representation. Avoid explanations.
Only output the triples.</p>
        <p>Prompt: For each given sentence, you should create RDF triples that describe the sentence in the Term-Based Graph Representation. To
help you, I will also provide the classes and properties that should be present in the generated RDF triples. These classes and properties
are defined in an ontology. Please generate RDF triples to describe the medication adhering to the following classes and properties
defined in this ontology: Classes: [“Medication”, “Adverse_Event”, “Certainty”, “Severity”] Properties: [“rdf:type”, “oae:has_adverse_event”,
“oae:has_severity”, “oae:has_certainty”, “common”, “possible”, “rare”, “low”, “medium”, “high”]. Just use properties that are in the list. Never
use other properties outside the list. Ignore new properties. Avoid explanations. Only output the triples. If a new property is found, output
nothing. If a new class is found, output nothing.
5. Discussion
llama-3.3-70b-versatile
cloxacillin rdf:type Medication.
upset_stomach rdf:type Adverse_Event.
cloxacillin oae:has_adverse_event upset_stomach.
upset_stomach oae:has_severity low.
upset_stomach oae:has_certainty common.</p>
        <p>Fever rdf:type Adverse_Event.</p>
        <p>Cephapirin rdf:type Medication.</p>
        <p>Cephapirin oae:has_adverse_event Fever.
_:b1 rdf:type Adverse_Event.
_:b1 oae:has_severity low.
_:b1 oae:has_certainty common.
_:b2 rdf:type Medication.
_:b2 oae:has_adverse_event _:b1 .</p>
        <p>Danofloxacin rdf:type Medication.
oae:has_adverse_event “no side efects”.
“no side efects” rdf:type Adverse_Event.
“no side efects” oae:has_certainty common.
“no side efects” oae:has_severity low.</p>
        <p>Danaofloxacin</p>
        <p>Generated Triples
deepseek-r1-distill-llama-70b
1. cloxacillin rdf:type Medication
2. cloxacillin oae:has_adverse_event upset_stomach
3. upset_stomach rdf:type Adverse_Event
4. upset_stomach oae:has_certainty common
:medication1 rdf:type Medication.
:medication1 common “cephapirin”.
:medication1 oae:has_adverse_event :adverse_event1 .
:adverse_event1 rdf:type Adverse_Event.
:adverse_event1 common “Fever”.
&lt;Medication&gt; rdf:type Medication.
&lt;Medication&gt; oae:has_adverse_event
&lt;Adverse_Event&gt;.
&lt;Adverse_Event&gt; rdf:type Adverse_Event.
&lt;Adverse_Event&gt; common “Pain”.
&lt;med:Danofloxacin&gt; rdf:type oae:Medication.
&lt;med:Danaofloxacin&gt; oae:has_adverse_event
&lt;ae:NoSideEfects &gt;.
&lt;ae:NoSideEfects &gt; rdf:type oae:Adverse_Event.</p>
        <p>We demonstrated the construction of ontologies for diferent ELSA in the domain of dairy treatment
recommendation. The ontology construction process in this context involved carefully mapping and
integrating relevant concepts from established ontologies, such as those related to the production of
animals and medical treatments. For including ethical considerations (e.g., animal well-being), legal
requirements (e.g., EU regulations on antibiotic use), and social implications (e.g., dairy farmer practices),
new classes and properties were added as necessary, based on the knowledge of domain experts. This</p>
        <p>Comparison of RDF Triples Generated with Ontologies using Few-shot Prompts.</p>
        <p>Prompt: For each given sentence, you should create RDF triples that describe the sentence in the Term-Based Graph Representation. To
help you, I will also provide the classes and properties that should be present in the generated RDF triples. These classes and properties
are defined in an ontology. Please generate RDF triples to describe the medication adhering to the following classes and properties
defined in this ontology: Classes: [“Medication”, “Adverse_Event”, “Certainty”, “Severity”] Properties: [“rdf:type”, “oae:has_adverse_event”,
“oae:has_severity”, “oae:has_certainty”, “common”, “possible”, “rare”, “low”, “medium”, “high”]. Just use properties that are in the list. Never
use other properties outside the list. Ignore new properties. Avoid explanations. Only output the triples. If a new property is found, output
nothing. If a new class is found, output nothing. I will provide four examples. Complete the fifth.</p>
        <p>Simpler Sentence: Nausea is a common adverse efect of hexacillin.</p>
        <p>Triples: &lt;Adverse_Event/Nausea&gt; rdf:type &lt;Adverse_Event&gt;
&lt;Medication/Hexacillin&gt; oae:has_adverse_event &lt;Adverse_Event/Nausea&gt;.
&lt;Adverse_Event/Nausea&gt; oae:has_certainty &lt;Certainty/common&gt;.</p>
        <p>Simpler Sentence: Seizure is a severe adverse event.</p>
        <p>Triples: &lt;Adverse_Event/Seizure&gt; rdf:type &lt;Adverse_Event&gt; .
&lt;Adverse_Event/Seizure&gt; oae:has_severity &lt;Severity/High&gt;
Simpler Sentence: Pain may occur.</p>
        <p>Triples: &lt;Adverse_Event/Pain&gt; oae:has_certainty &lt;Certainty/possible&gt;.</p>
        <p>Simpler Sentence: Hexacillin has no side efects.</p>
        <p>Triples:
approach facilitates a shared understanding of a domain based on multi-stakeholder deliberations.
Reusing existing ontologies promotes standardization within the field, enabling better communication
and knowledge sharing among stakeholders, including farmers, veterinarians, policymakers, and
researchers.</p>
        <p>This standardization is crucial for further developing KG-based RSs to navigate the
complex landscape of ELSA considerations in dairy farming.</p>
        <p>Through the proposed semi-automatic approach, we demonstrated that structured knowledge in
the form of RDF triples can be extracted from unstructured text while adhering to the ontological
model, thereby facilitating the generation of KGs. Both models can generate similar results when using
few-shot prompts, in line with the findings by Brown
et al. [36]. Our experiments revealed that the
generated triples are not satisfactory in their correctness and completeness when an input sentence
structure difers from the provided examples, even when there are clear instructions and associated
ontologies. We noted that the expertise of the researchers was relied upon when evaluating the triples.
This is a study limitation, which can be addressed later when more data is available. Therefore, our
preliminary experiments indicate the potential of using pre-trained LLMs, ontologies, and few-shot
prompting to extract RDF triples automatically. Further experiments with more robust datasets and
metrics may help establish the usefulness of our approach. We point out that diferent temperature
settings were not experimented with, and this is left for future work.</p>
        <p>To the best of our knowledge, our study represents the first efort to leverage LLMs and ELSA KGs for
recommendations in the context of animal treatment. Unlike existing approaches, our study provided
a practical method for integrating multiple domain-specific ELSA into a recommendation system by
encoding ELSA into KGs rather than relying solely on traditional metrics.</p>
        <p>
          Our approach focuses on ELSA at the recommendation level. In contrast to the methods proposed
by Bosselut et al. [21] and Zhang et al. [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ], which employed transformer-based neural networks or
ifne-tune existing LLMs, our solution primarily utilized zero-shot and few-shot learning techniques.
We employed an LLM to extract the components of the KGs. Our results demonstrated through use
cases and KG generation, ofer alternative means of presenting findings, unlike most state-of-the-art
studies, which primarily adopt a quantitative evaluation approach.
        </p>
        <p>Developing ELSA KGs leverages opportunities to incorporate domain-specific ELSA considerations
into creating RSs, particularly in animal healthcare. These ELSA-compliant RSs could explore created
KGs from various perspectives. One potential approach involves implementing ranking or re-ranking
procedures that consider the connections between recommended items and ELSA restrictions. The
re-ranking methods based on complex network measurements, as proposed in [41], could be further
developed to address ELSA relationships. Another promising avenue is to pair ELSA-compliant
explanations with recommended items, enhancing the users’ understanding of the ELSA risks and constraints
associated with recommendations.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>6. Conclusion</title>
      <p>The literature lacks Knowledge Graphs (KGs) related to ELSA aspects and veterinary healthcare. Our
investigation provided a preliminary model of ELSA ontologies relevant to this domain. Our method
produced KGs that comply with these modeled ontologies and must play a key role in developing
KG-based treatment RSs. We investigated and demonstrated how LLMs are suited to generate RDF
triples for the ELSA-related KGs. We found that LLMs produce better results when examples are
provided via few-shot prompting. Particularly, since the deepseek-r1-distill-llama-70b model had
comparable efectiveness to the llama-3.3-70b-versatile model, it is much more eficient, cost- and
energy-wise, to use the distilled version [42, 38, 37]. Future work will focus on investigating fully
automatic triple-generation pipelines. Moreover, in the context of veterinary RSs, other ontologies, such
as the Environment Ontology of Livestock, could be incorporated into the RSs by including information
about farm systems. Another direction concerns defining suitable methodologies for generating social
KGs.</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>This work was supported by the Nederlandse Organisatie voor Wetenschappelijk Onderzoek (NWO)
[grant #Nwa.1332.20.002]. This research was partially funded by the São Paulo Research Foundation
(FAPESP) [grant #2022/15816-5].</p>
    </sec>
    <sec id="sec-7">
      <title>Declaration on Generative AI</title>
      <p>The author(s) have not employed any Generative AI tools.
comprehensive survey on trustworthy recommender systems, 2022. doi:https://doi.org/10.
48550/arXiv.2209.10117.
[20] J. Stray, A. Halevy, P. Assar, D. Hadfield-Menell, C. Boutilier, A. Ashar, C. Bakalar, L. Beattie,
M. Ekstrand, C. Leibowicz, C. Moon Sehat, S. Johansen, L. Kerlin, D. Vickrey, S. Singh, S. Vrijenhoek,
A. Zhang, M. Andrus, N. Helberger, P. Proutskova, T. Mitra, N. Vasan, Building human values into
recommender systems: An interdisciplinary synthesis, ACM Trans. Recomm. Syst. 2 (2024) 1–57.
doi:https://doi.org/10.1145/3632297.
[21] A. Bosselut, H. Rashkin, M. Sap, C. Malaviya, A. Celikyilmaz, Y. Choi, COMET: Commonsense
transformers for automatic knowledge graph construction, in: A. Korhonen, D. Traum, L. Màrquez
(Eds.), Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics,
Association for Computational Linguistics, Florence, Italy, 2019, pp. 4762–4779. doi:https://doi.
org/10.18653/v1/P19-1470.
[22] J. C. dos Reis, A. G. Regino, Generating e-commerce related knowledge graph from text: Open
challenges and early results using LLMs, in: Joint proceedings of the 3rd International workshop
on knowledge graph generation from text (TEXT2KG) and Data Quality meets Machine Learning
and Knowledge Graphs (DQMLKG) co-located with the Extended Semantic Web Conference (
ESWC 2024), Hersonissos, Greece, May 26-30, 2024, volume 3747 of CEUR Workshop Proceedings,
CEUR-WS.org, 2024, pp. 21–39. URL: https://ceur-ws.org/Vol-3747/text2kg_paper11.pdf.
[23] W. Golik, O. Dameron, J. Bugeon, A. Fatet, I. Hue, C. Hurtaud, M. Reichstadt, M.-C. Salaün, J. Vernet,
L. Joret, et al., ATOL: the multi-species livestock trait ontology, in: Metadata and Semantics
Research: 6th Research Conference, MTSR 2012, Cádiz, Spain, November 28-30, 2012. Proceedings
6, Springer, 2012, pp. 289–300.
[24] C. Khoo, J.-C. Na, V. Wang, S. Chan, Developing an ontology for encoding disease treatment
information in medical abstracts, DESIDOC Journal of Library &amp; Information Technology 31
(2011) 103–115. doi:https://doi.org/10.14429/djlit.31.2.862.
[25] B. Varkey, Principles of clinical ethics and their application to practice, Medical Principles and</p>
      <p>Practice 30 (2020) 17–28. doi:https://doi.org/10.1159/000509119.
[26] T. L. Beauchamp, Principlism in Bioethics, volume 70, Springer International Publishing, Cham,</p>
      <p>Switzerland, 2016, pp. 1–16. doi:https://doi.org/10.1007/978-3-319-43419-3_1.
[27] P. Guyer, Kant on the theory and practice of autonomy, Social Philosophy and Policy 20 (2003)
70–98. doi:https://doi.org/10.1017/S026505250320203X.
[28] T. L. Beauchamp, J. F. Childress, Principles of biomedical ethics, 4 ed., Oxford University Press,</p>
      <p>New York, 1994.
[29] B. P. Alcock, W. Huynh, R. Chalil, K. W. Smith, A. Raphenya, M. A. Wlodarski, A. Edalatmand,
A. Petkau, S. A. Syed, K. K. Tsang, S. J. C. Baker, M. Dave, M. McCarthy, K. M. Mukiri, J. A. Nasir,
B. Golbon, H. Imtiaz, X. Jiang, K. Kaur, M. Kwong, Z. C. Liang, K. C. Niu, P. Shan, J. Y. J. Yang,
K. Gray, G. R. Hoad, B. Jia, T. Bhando, L. Carfrae, M. Farha, S. French, R. Gordzevich, K. Rachwalski,
M. Tu, E. Bordeleau, D. Dooley, E. Grifiths, H. L. Zubyk, E. D. Brown, F. Maguire, R. Beiko, W. W. L.
Hsiao, F. S. L. Brinkman, G. Van Domselaar, A. G. McArthur, Card 2023: expanded curation, support
for machine learning, and resistome prediction at the comprehensive antibiotic resistance database,
Nucleic Acids Research 51 (2022) D690–D699. doi:https://doi.org/10.1093/nar/gkac920.
[30] D. Kuiper, J. Jansen, R. Renes, C. Leeuwis, H. van der Zwaag, Social factors related to mastitis
control practices: the role of dairy farmers’ knowledge, attitude, values, behaviour and networks,
in: H. Hogeveen (Ed.), Mastitis in Dairy Production, 4th IDF International Mastitis Conference,
Wageningen 2005, Wageningen Academic Publishers, Netherlands, 2005, pp. 576–582.
[31] J. Jansen, B. van den Borne, R. Renes, G. van Schaik, T. Lam, C. Leeuwis, Explaining mastitis
incidence in dutch dairy farming: The influence of farmers’ attitudes and behaviour, Preventive
Veterinary Medicine 92 (2009) 210–223. doi:https://doi.org/10.1016/j.prevetmed.2009.08.
015, special Issue: SVEPM 2008.
[32] J. Jansen, G. van Schaik, R. Renes, T. Lam, The efect of a national mastitis control program on
the attitudes, knowledge, and behavior of farmers in the netherlands, Journal of Dairy Science 93
(2010) 5737–5747. doi:https://doi.org/10.3168/jds.2010-3318.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>F.</given-names>
            <surname>Gräßer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Malberg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Zaunseder</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Beckert</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Küster</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Schmitt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. A.</given-names>
            <surname>Klinik</surname>
          </string-name>
          ,
          <string-name>
            <surname>P.</surname>
          </string-name>
          <article-title>f¨r Dermatologie, Application of recommender system methods for therapy decision support, in: 2016 IEEE 18th International Conference on e-Health Networking, Applications</article-title>
          and Services (Healthcom), Munich, Germany,
          <year>2016</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>6</lpage>
          . doi:https://doi.org/10.1109/HealthCom.
          <year>2016</year>
          .
          <volume>7749495</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>M.</given-names>
            <surname>Ryan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Blok</surname>
          </string-name>
          ,
          <article-title>Stop re-inventing the wheel: or how ELSA and RRI can align</article-title>
          ,
          <source>Journal of Responsible Innovation</source>
          <volume>10</volume>
          (
          <year>2023</year>
          )
          <article-title>2196151</article-title>
          . doi:https://doi.org/10.1080/23299460.
          <year>2023</year>
          .
          <volume>2196151</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>S.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Ricci</surname>
          </string-name>
          ,
          <article-title>Trustworthy recommender systems</article-title>
          ,
          <source>ACM Trans. Intell. Syst. Technol</source>
          .
          <volume>15</volume>
          (
          <year>2024</year>
          )
          <fpage>1</fpage>
          -
          <lpage>20</lpage>
          . doi:https://doi.org/10.1145/3627826.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Ge</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Fu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Tan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Xian</surname>
          </string-name>
          ,
          <string-name>
            <surname>Y. Zhang,</surname>
          </string-name>
          <article-title>A survey on trustworthy recommender systems</article-title>
          ,
          <source>ACM Trans. Recomm. Syst</source>
          .
          <volume>3</volume>
          (
          <issue>2024</issue>
          )
          <fpage>1</fpage>
          -
          <lpage>68</lpage>
          . doi:https://doi.org/10.1145/3652891.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>A.</given-names>
            <surname>Hogan</surname>
          </string-name>
          , E. Blomqvist,
          <string-name>
            <given-names>M.</given-names>
            <surname>Cochez</surname>
          </string-name>
          ,
          <string-name>
            <surname>C.</surname>
          </string-name>
          <article-title>D'amato</article-title>
          , G. D.
          <string-name>
            <surname>Melo</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Gutierrez</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Kirrane</surname>
            ,
            <given-names>J. E. L.</given-names>
          </string-name>
          <string-name>
            <surname>Gayo</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Navigli</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Neumaier</surname>
            ,
            <given-names>A.-C. N.</given-names>
          </string-name>
          <string-name>
            <surname>Ngomo</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Polleres</surname>
            ,
            <given-names>S. M.</given-names>
          </string-name>
          <string-name>
            <surname>Rashid</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Rula</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Schmelzeisen</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Sequeda</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Staab</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Zimmermann</surname>
          </string-name>
          ,
          <article-title>Knowledge graphs</article-title>
          ,
          <source>ACM Comput. Surv</source>
          .
          <volume>54</volume>
          (
          <year>2021</year>
          )
          <fpage>1</fpage>
          -
          <lpage>37</lpage>
          . doi:https://doi.org/10.1145/3447772.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>O.</given-names>
            <surname>Lassila</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. R.</given-names>
            <surname>Swick</surname>
          </string-name>
          ,
          <article-title>Resource Description Framework (RDF) model and syntax specification</article-title>
          ,
          <year>February 1999</year>
          , W3C Candidate Recommendation,
          <source>World Wide Web Consortium (W3C)</source>
          , Massacheusetts,
          <string-name>
            <surname>U.S.A</surname>
          </string-name>
          ,
          <year>1999</year>
          . URL: http://www.w3.org/TR/REC-rdf-syntax.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>W. X.</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Tang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Hou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Min</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Dong</surname>
          </string-name>
          , et al.,
          <article-title>A survey of large language models, arXiv preprint (</article-title>
          <year>2023</year>
          ). doi:https://doi.org/10.48550/arXiv. 2303.18223.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>I.</given-names>
            <surname>Melnyk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Dognin</surname>
          </string-name>
          ,
          <string-name>
            <surname>P. Das</surname>
          </string-name>
          ,
          <article-title>Knowledge graph generation from text</article-title>
          , in: Y.
          <string-name>
            <surname>Goldberg</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          <string-name>
            <surname>Kozareva</surname>
          </string-name>
          , Y. Zhang (Eds.),
          <source>Findings of the Association for Computational Linguistics: EMNLP</source>
          <year>2022</year>
          ,
          <article-title>Association for Computational Linguistics</article-title>
          , Abu Dhabi, United Arab Emirates,
          <year>2022</year>
          , pp.
          <fpage>1610</fpage>
          -
          <lpage>1622</lpage>
          . doi:https://doi.org/10.18653/v1/
          <year>2022</year>
          .findings-emnlp.
          <volume>116</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>B.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , H. Soh, Extract, define, canonicalize
          <article-title>: An LLM-based framework for knowledge graph construction</article-title>
          , in: Y.
          <string-name>
            <surname>Al-Onaizan</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Bansal</surname>
            ,
            <given-names>Y.-N.</given-names>
          </string-name>
          <string-name>
            <surname>Chen</surname>
          </string-name>
          (Eds.),
          <source>Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing</source>
          , Association for Computational Linguistics, Miami, Florida, USA,
          <year>2024</year>
          , pp.
          <fpage>9820</fpage>
          -
          <lpage>9836</lpage>
          . doi:https://doi.org/10.18653/v1/
          <year>2024</year>
          . emnlp-main.
          <volume>548</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , T. Sadler,
          <string-name>
            <given-names>M. R.</given-names>
            <surname>Taesiri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Reformat</surname>
          </string-name>
          ,
          <article-title>Fine-tuning language models for triple extraction with data augmentation</article-title>
          , in: R.
          <string-name>
            <surname>Biswas</surname>
            ,
            <given-names>L.-A.</given-names>
          </string-name>
          <string-name>
            <surname>Kafee</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          <string-name>
            <surname>Agarwal</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Minervini</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Singh</surname>
          </string-name>
          , G. de Melo (Eds.),
          <source>Proceedings of the 1st Workshop on Knowledge Graphs and Large Language Models (KaLLM</source>
          <year>2024</year>
          ),
          <article-title>Association for Computational Linguistics</article-title>
          , Bangkok, Thailand,
          <year>2024</year>
          , pp.
          <fpage>116</fpage>
          -
          <lpage>124</lpage>
          . doi:https://doi.org/10.18653/v1/
          <year>2024</year>
          .kallm-
          <volume>1</volume>
          .
          <fpage>12</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>W.</given-names>
            <surname>Borst</surname>
          </string-name>
          ,
          <article-title>Construction of Engineering Ontologies for Knowledge Sharing and Reuse</article-title>
          ,
          <source>Phd thesis</source>
          , University of Twente, Netherlands,
          <year>1997</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>N.</given-names>
            <surname>Guarino</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Oberle</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Staab</surname>
          </string-name>
          ,
          <source>What Is an Ontology?</source>
          , Springer, Berlin, Heidelberg,
          <year>2009</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>17</lpage>
          . doi:https://doi.org/10.1007/978-3-
          <fpage>540</fpage>
          -92673-
          <issue>3</issue>
          _
          <fpage>0</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13] E. de Jong, I. van der Velden, A.
          <string-name>
            <surname>-M. C. Smid</surname>
            ,
            <given-names>J. A.</given-names>
          </string-name>
          <string-name>
            <surname>Ida</surname>
            ,
            <given-names>K. K.</given-names>
          </string-name>
          <string-name>
            <surname>Reyher</surname>
            ,
            <given-names>D. F.</given-names>
          </string-name>
          <string-name>
            <surname>Kelton</surname>
            ,
            <given-names>H. W.</given-names>
          </string-name>
          <string-name>
            <surname>Barkema</surname>
          </string-name>
          ,
          <article-title>Dairy farmers' considerations for antimicrobial treatment of clinical mastitis in British Columbia and Alberta</article-title>
          , Canada,
          <source>Frontiers in Veterinary Science</source>
          <volume>11</volume>
          (
          <year>2024</year>
          ). doi:https://doi.org/10.3389/ fvets.
          <year>2024</year>
          .
          <volume>1417958</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>Q.</given-names>
            <surname>Guo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Zhuang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Qin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Zhu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Xie</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Xiong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <article-title>A survey on knowledge graphbased recommender systems</article-title>
          ,
          <source>IEEE Transactions on Knowledge and Data Engineering</source>
          <volume>34</volume>
          (
          <year>2022</year>
          )
          <fpage>3549</fpage>
          -
          <lpage>3568</lpage>
          . doi:https://doi.org/10.1109/TKDE.
          <year>2020</year>
          .
          <volume>3028705</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>A. G.</given-names>
            <surname>Regino</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. O.</given-names>
            <surname>Caus</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Hochgreb</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. C.</given-names>
            dos
            <surname>Reis</surname>
          </string-name>
          ,
          <article-title>Leveraging knowledge graphs for e-commerce product recommendations</article-title>
          ,
          <source>SN Computer Science</source>
          <volume>4</volume>
          (
          <year>2023</year>
          )
          <article-title>689</article-title>
          . doi:https://doi.org/10.1007/ s42979-023-02149-6.
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>N.</given-names>
            <surname>Tiwary</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. A.</given-names>
            <surname>Mohd Noah</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Fauzi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T. S.</given-names>
            <surname>Yee</surname>
          </string-name>
          ,
          <article-title>A review of explainable recommender systems utilizing knowledge graphs and reinforcement learning</article-title>
          ,
          <source>IEEE Access 12</source>
          (
          <year>2024</year>
          )
          <fpage>91999</fpage>
          -
          <lpage>92019</lpage>
          . doi:https://doi.org/10.1109/ACCESS.
          <year>2024</year>
          .
          <volume>3422416</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>W. N.</given-names>
            <surname>Cheng</surname>
          </string-name>
          , S. G. Han,
          <article-title>Bovine mastitis: risk factors, therapeutic strategies, and alternative treatments - a review</article-title>
          ,
          <source>Asian-Australasian Journal of Animal Sciences</source>
          <volume>33</volume>
          (
          <year>2020</year>
          )
          <fpage>1699</fpage>
          -
          <lpage>1713</lpage>
          . doi:https://doi.org/10.5713/ajas.20.0156.
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>A. J.</given-names>
            <surname>Pires</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Pereira</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Fangueiro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Bexiga</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.</surname>
          </string-name>
          <article-title>Oliveira, When the solution becomes the problem: a review on antimicrobial resistance in dairy cattle</article-title>
          ,
          <source>Future Microbiology</source>
          <volume>19</volume>
          (
          <year>2024</year>
          )
          <fpage>903</fpage>
          -
          <lpage>929</lpage>
          . doi:https://doi.org/10.2217/fmb-2023-0232.
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>W.</given-names>
            <surname>Fan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Su</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Gao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Li</surname>
          </string-name>
          , A
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>