<!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 />
    <article-meta>
      <title-group>
        <article-title>Supporting Companion Planting with the CoPla Ontology</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Giacomo Zamprogno</string-name>
          <email>g.zamprogno@vu.nl</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Márk Adamik</string-name>
          <email>m.adamik@vu.nl</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ritten Roothaert</string-name>
          <email>h.m.roothaert@vu.nl</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ameneh Naghdipour</string-name>
          <email>a.naghdipour@vu.nl</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lise Stork</string-name>
          <email>l.stork@uva.nl</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Patrick Koopmann</string-name>
          <email>p.k.koopmann@vu.nl</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Romana Pernisch</string-name>
          <email>r.pernisch@vu.nl</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Benno Kruit</string-name>
          <email>b.b.kruit@vu.nl</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jieying Chen</string-name>
          <email>j.y.chen@vu.nl</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ilaria Tiddi</string-name>
          <email>i.tiddi@vu.nl</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Stefan Schlobach</string-name>
          <email>k.s.schlobach@vu.nl</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Discovery Lab, Elsevier</institution>
          ,
          <addr-line>Amsterdam</addr-line>
          ,
          <country country="NL">The Netherlands</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Vrije Universiteit Amsterdam</institution>
          ,
          <addr-line>De Boelelaan 1105, 1081 HV Amsterdam</addr-line>
          ,
          <country country="NL">The Netherlands</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Sustainability in agriculture is crucial for environmental conservation and ecosystem resilience. Within this context, companion planting stands out as a key practice, leveraging synergies between plants for enhanced growth and pest control. However, its broader adoption is hindered by large-scale knowledge and data integration challenges. To bring companion planting forward and closer to interested users, we engineered a semantically rich ontology, CoPla. We used several automated techniques to extract knowledge from various sources and capture diferent companion and anti-companion mechanisms.We demonstrate CoPla's versatility through three applications using diferent reasoning mechanisms: identifying plant companionships, evaluating, and optimising garden layouts.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Sustainable Agriculture</kwd>
        <kwd>Ontology-Based Decision Support</kwd>
        <kwd>Knowledge Representation</kwd>
        <kwd>Reasoning</kwd>
        <kwd>Permaculture</kwd>
        <kwd>Agroecology</kwd>
        <kwd>Companion Planting</kwd>
        <kwd>Knowledge Integration</kwd>
        <kwd>Ontology Engineering</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Sustainability stands at the forefront of global concerns, particularly within the realms of
environmental preservation and agricultural innovation.Central to this discourse is the concept
of sustainable gardening, which is paramount for fostering green, resilient ecosystems across
the globe [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Companion planting, traditionally widely adopted in sustainable agricultural
movements, such as permaculture [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] and agroecology [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], leverages the synergistic interactions
between diferent plant species and plays a pivotal role in sustainable farming [
        <xref ref-type="bibr" rid="ref2 ref3">3, 2</xref>
        ]. The main
idea is to place together plants that support each other (companions), based on a variety of
diferent interaction mechanics—e.g. because a plant attracts insects that help pollinate other
plants. We similarly consider anti-companions; the case where one plant can harm another, for
instance, when a plant attracts animals that are pests of other plants. Companion planting not
only promotes plant growth and health [
        <xref ref-type="bibr" rid="ref4 ref5">4, 5</xref>
        ] but also serves as a natural pest deterrent [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] and
soil enhancer [
        <xref ref-type="bibr" rid="ref5 ref7 ref8">5, 7, 8</xref>
        ], thus significantly contributing to the viability of agricultural ecosystems.
      </p>
      <p>The current landscape of companion planting knowledge is dispersed across various platforms,
including agricultural manuals, scholarly articles, and digital databases, making it challenging
for practitioners to access and synthesise this information efectively. This dispersion presents
a significant obstacle to the eficient integration and broader application of companion planting
strategies. Due to this, people aiming at planting their own garden often lack an overview
of companion planting mechanisms, ultimately limiting their impact on sustainability. In
particular, gardeners who are new to companion planting might need help with the following
tasks: (1) exploring potential companions and anti-companions of plants they are interested in,
(2) understanding the reasons behind (anti-) companion relationships, and (3) analysing and
improving garden layouts wrt. companionships.</p>
      <p>To address these challenges, we developed a semantically rich ontology called CoPla that
delineates the complex relationships among plant species and their interactions with the
environment. It is built in two phases: first, a core conceptualisation was created through a knowledge
acquisition phase, where knowledge of companion planting and its various mechanisms was
acquired from relevant literature. Second, subclasses and class axioms were automatically
created using a rich variety of (web) technologies—from SPARQL querying to scraping of PDFs—to
extract knowledge from openly available multi-modal sources. The result is a semantically
rich large-scale ontology for informed decision-making in companion planting. To illustrate
CoPla’s usefulness, we integrated it in a prototypical system to support gardeners addressing
the use cases above. In particular, we showcase how diferent reasoning mechanisms for OWL—
deductive inference, explanations and repair—can be used together with the ontology towards
the three problems mentioned above. The application of CoPla in these scenarios shows that it
is manageable and directly applicable in real-world scenarios. Moreover, our method is designed
with scalability in mind, allowing for easy adaptation to broader agricultural contexts by simply
expanding the underlying knowledge base.</p>
      <p>All resources described in this article, which includes the engineered ontology, the code of
the engineering process, the backend and frontend, are available in our online repository.1</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>We divide the related work into (a) companion planting resources, (b) semantic web eforts from
other domains, and (c) AI-based applications to help farming and planting.</p>
      <sec id="sec-2-1">
        <title>Companion Planting and Relevant Resources. The seminal book [9] on companion</title>
        <p>planting dates back to the 80’s. The book recollects decades of practices to provide disease- and
pest-free gardens using mutual restoration conditions. Some attempts to formalise companion
planting practises in the form of charts and tables can be found online. A lookup summary for</p>
        <sec id="sec-2-1-1">
          <title>1https://github.com/kai-vu/companion-planting-decision-support</title>
          <p>plant compatibility, for instance, is published online.2 Plant Interactions are described by the
IDEP foundation3, which provides worldwide training for Permaculture Design. While being
semi-formalised, these sources of information are non-standardised and relatively incomplete.</p>
          <p>
            A collaborative encyclopaedia for plant information, cultivation and association is the
Practical Plants database4. In addition to description of individual plants and their interaction with
other plants, descriptions of plant combinations can be created. This polyculture data collection
is in its early stage. The EPPO pest database5 provides an overview of hosting plants for pests,
and can be used to determine combinations of plants to cultivate—namely, hosts of known pests
should not be combined with plants that can be afected by that particular pest. The US Natural
Resources Conservation Service provides a number of conservation resources for planters,
researchers, and landowners, including the Soil Taxonomy for soil properties6. The Global
Biotic Interactions (Globi) is a large open-access dataset to find symbiotic/opportunistic (e.g.
predator-prey, pathogen-host or parasite-host) interactions between biological organisms [
            <xref ref-type="bibr" rid="ref10">10</xref>
            ].
Globi is a combination of diferent datasets and vocabularies that can be used to describe plants
and their characteristics relevant to permaculture. The TRY database [
            <xref ref-type="bibr" rid="ref11">11</xref>
            ] provides information
about plant traits (i.e. morphological, anatomical, physiological, biochemical and phenological
characteristics of plants) that help determine how plants respond to diferent environmental
and ecosystem factors. Companion planting aspects are missing and could be integrated as part
of the dataset, which is not formalised according to Semantic Web standards.
          </p>
        </sec>
      </sec>
      <sec id="sec-2-2">
        <title>Semantic Web Resources for Companion Planting. A number of semantic web initia</title>
        <p>
          tives exist for the agricultural domain. AgroPortal [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ] acts on an hub of semantic resources
(vocabularies, terminologies, etc.) for the agricultural domain. Agronomic Linked Data [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ] is
an integration efort to represent plant science data in a large KG. It includes aspects of plant
molecular interactions e.g. genes, proteins, metabolic pathways and plant trait associations, and
integrates resources and ontologies including the Ensembl plants, UniProtKB, and the Gene
Ontology Annotation. An overview of ontologies for the agricultural domain is given in [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ].
The multilingual vocabulary FAO [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ] allows data classification, interoperability and reuse
across applications. While these works do not focus directly on companion planting, they can
be useful to enhance plant information using schema and instance alignments.
        </p>
        <p>
          Plant and organism dynamics are also important concepts in biology and ecology. [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ]
provides an overview of ontologies for the ecology domain, such as the Extensible Observation
Ontology (OBOE), the Environmental Data Exchange (CEDEX) ontology and the Observations
Data Model (ODM). The OpenBiodiv [17] resource integrates biodiversity literature into a
knowledge graph, including an ontology based on the Global Biodiversity Information Facility
(GBIF) structure. Platforms to support KG constructions for biodiversity include [18] and [19],
including a knowledge graph to promote meta-analysis and research for soil ecology. Nutritional
values of fruits and vegetables can also be found in the FoodKG7 dataset.
        </p>
        <sec id="sec-2-2-1">
          <title>2https://www.thespruce.com/companion-planting-with-chart-5025124</title>
          <p>3https://www.permaculturenews.org/2010/07/30/companion-planting-guide/
4https://practicalplants.org/wiki/practical_plants/
5https://gd.eppo.int/taxon/CUUPE/pests
6https://www.nrcs.usda.gov/resources/guides-and-instructions/soil-taxonomy
7https://foodkg.github.io/
AI-based Planting Applications. A number of tools exist to support smart planting. The
Almanac Garden Planner8 is an application to help designing layouts of a garden, and provides
insights including planting/harvesting seasons and crop rotation warnings. As a proprietary
product, its reusability and interoperability are limited. Elzeard 9 is a crop planning and
management tool, designed to replace spreadsheet-based crop management methods. It features a Crop
Planification and Production Process Ontology (C3PO) that describes the agricultural production
process. The Planting Planner (10 provides more information on soil conditions, with a focus on
lfowers. Most of these and other existing applications (GrowIt, Garden Manager, etc.) mainly
focus on garden aesthetics rather than farming and sustainability aspects. Similarly, industrial
farming and farm managing applications focus on the optimisation of farming processes.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. The CoPla Ontology</title>
      <p>
        The main purpose of the ontology is to structure knowledge about companion planting and assist
garden planners in identifying potential companion relationships. Our development process
was guided by the METHONTOLOGY [20] methodology because of its focus on knowledge
elicitation from knowledge sources rather than4 domain experts. We started from a list of
requirements, for which we developed a core ontology ofering the main conceptualisation of
the ontology. This core ontology was extended with additional axioms that were generated
through automated data integration from openly available multi-modal sources.
Sources of Knowledge. The ontology creation process was informed by a combination of
books [21, 22, 23], scholarly articles [
        <xref ref-type="bibr" rid="ref3 ref6">3, 6</xref>
        ] and openly available companion planting charts11,12.
The core concepts involved in companion planting, including types of mechanisms that can
explain a certain companionship between two plants, were manually derived from books
on companion planting mechanisms. After understanding various types of companionship
mechanisms better, structured knowledge sources were used to automatically populate the
diferent types of companion relationships and their mechanics, as described further below.
      </p>
      <sec id="sec-3-1">
        <title>3.1. Ontology Requirements</title>
        <p>To determine how the knowledge should be used and organised we devised an informal list of
requirements, taking into account the use cases mentioned in Section 1. The ontology should:
R1: include the core concepts for the task of companion planting decision support;
R2: describe diferent types of companion and anti-companion relationship;
R3: define properties describing various mechanisms of companion planting;
R4: describe qualities of optimal and sub-optimal garden configurations;
R5: model specific plant species and their metadata (common and scientific names).</p>
        <sec id="sec-3-1-1">
          <title>8https://gardenplanner.almanac.com/</title>
          <p>9https://en.elzeard.co/
10https://www.plantingplanner.com/
11https://https://www.permaculturenews.org/2010/07/30/companion-planting-guide/
12https://www.permablitz.net/wp-content/uploads/2016/08/Poster_GDN_Com_Plant.pdf
Core Classes and Relationships
companionWith
Fauna
Predator</p>
          <p>predatorOf</p>
          <p>Flora
Polinator</p>
          <p>Pest
polinatedBy
companionWith
antiCompanionWith
repelerOf etraatpeCnrBoypFor attractorOf
physicalSupportFor
providesNutrientsFor
positiveHostingFor</p>
          <p>suppressesPestsFor
providesPotassiumFor
providesWindProtectionFor
providesCalciumFor</p>
          <p>recruitsPredatorsFor
providesShadeFor
providesPhosphorusFor</p>
          <p>recruitsPolinatorsFor
providesNitrogenFor
providesWaterFor</p>
        </sec>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Conceptualisation</title>
        <p>To address R1, the core ontology describes classes and relationships that capture the
companionship relations (see Figure 1):
Core Classes and Relationships. The core ontology consists of classes Flora, Fauna,
Predator, Pest, Pollinator. Fauna refers to the animals involved in companion planting
and has three core sub-classes based on the role animals play in determining companionship.
Derived from [22], the class Pollinator contains all animals that act as pollinator for a given
plant. The Pest class encompasses all animals that are considered harmful to the plants. These
classes are not disjoint: an animal can take on various roles, based on the role they play in a
companionship mechanism. Members of the Predator class represent animals that prey on
pests. The Flora class contains the diferent plants that are evaluated for companionship. All
lfora and fauna are then modelled as subclasses of these core classes.</p>
        <p>The core relationships connecting these classes are eatenBy, pollinatorOf, predatorOf,
attractorOf, repellerOf, trapCropFor, companionWith and antiCompanionWith.
The companionWith and antiCompanionWith relationships are defined to express the
companionship relation between members of the Flora class. To address R3 and R2 and expand
upon the specific companionship types, some additional relationships are added that describe
the interaction between the core class members. The attractorOf property is defined between
Flora and Fauna, expressing that some animals are particularly attracted by a specicfi plant.
The eatenBy relationship relates animals of type Pest to the Flora they consume.</p>
        <p>The repellerOf property describes that some plants prevent pests from feeding on their
target plants. predatorOf expresses the relationship between members of the Predator and
the corresponding Pest class they feed on. To reflect the interaction between diferent types
of animals that play a role in pollinating certain plants, pollinatorOf is used. Lastly, the
trapCropFor relationship expresses a special type of companion planting technique, which
utilises some plant to serve as a decoy and attract pests that can be then efectively exterminated.
Use-case Specific Classes and Relationships. For R4, we use classes and relationships
relating to the use-case of garden planning. This allows individual plants within the garden
to be connected with neighbour, companionNeighbour and incompatibleNeighbour
relationships, that define the garden configurations. Specific garden configurations are described
with the class Garden. Based on those properties, we introduce classes for plants that are
wellplaced or badly placed, and gardens that represent good configurations or bad configurations.</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.3. Data Integration</title>
        <p>
          Detailed plant classifications, and complex axioms describing them, were extracted from a
variety of multimodal sources, resulting in an ontology with 1405 classes and 5264 axioms,
enabling us to derive (anti-)companionships between a variety of plants, as well as explanations.
Companion Planting Charts. For R2, we retrieved companions and anti-companions
from an openly available planting chart13. The high-level relationships (companionWith
and anticompanionWith) were directly captured in the ontology. For a further understanding
of mechanisms of companion and anticompanion relationships, we extracted companionship
mechanisms from literature [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]. Those more complex mechanisms are modeled using property
chains over more fine-grained relationships (such as pollinatedBy or eatenBy). This allows
to derive and explain the diferent types of companionship relationships (Figure 1) also through
reasoning. Moreover, these axioms can be used to infer novel companionships.
Wikidata. We linked plants extracted from the companion planting chart to metadata found
on Wikidata14 (R5). From Wikidata, we extracted the taxon name, plant product, and common
name. These can be used to adapt an interface to diferent user types. Some users might
be interested in harvesting plant products (i.e. tomatos), while others might take a scientific
perspective (taxon name Solanum lycopersicum).
        </p>
        <p>
          Globi. The Global Biotic Interactions (GloBI) database [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ] integrates various existing open
datasets describing interactions, such as eats, visitedBy, parasiteOf, between species that inhabit
our planet, addressing R3. An example is: “Chelonia mydas eats Dictyota cervicornis”. Such
interaction data form a basis for certain companionship mechanisms, mainly submechanisms
of positiveHostingFor and supressesPestsFor. We therefore extracted relationships
between plants and pollinators, predators and pests using the Globi API,15 and integrated them
into our ontology by automatically turning them into class axioms such as:
        </p>
        <p>Tomato subClassOf flowersVisitedBy some Apis Melifera .</p>
        <p>These axioms served as the basis for the generation of property chains, such as:
visitedBy o eats o parasiteOf SubPropertyOf reqruitsPredatorsFor .
13https://www.permaculturenews.org/2010/07/30/companion-planting-guide/
14https://www.wikidata.org/wiki/Wikidata:Main_Page
15https://api.globalbioticinteractions.org/
(a) Justification-based explanation service (Protégé)
(b) Proof-based explanations (Evee)</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Use-Cases and Proof of Concept User Interface</title>
      <p>CoPla can be used to find (anti-)companionships, analyse and suggest garden configurations,
and provide explanations. To illustrate these functionalities, we implemented a simple web-front
end (Figure 3). First, let us discuss the three use cases previously introduced.</p>
      <sec id="sec-4-1">
        <title>4.1. Finding and Explaining (Anti-)Companions</title>
        <p>If we are interested in a specific plant and its (anti-)companions, we can use a
subclass query, e.g. in Protégé, using a class expression “companion some PLANT” (or
“anti_companion some PLANT”), where PLANT identifies the corresponding plant. For each
obtained (anti-)companionship, we can ask for explanations in form of justifications [ 24, 25],
using the functionality of Protégé (Figure 2a). All relevant axioms are in the fragment of OWL-EL
that is supported by the ELK reasoner[26], allowing us to use the advanced explanation services
based on proofs ELK. This includes the protege-proof-explanation plugin [27], Evee [28] and
Evonne [29], which gives a clearer explanation on why a companionship holds (see Figure 2b).</p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Analysing Garden Configurations</title>
        <p>We can also analyse specific garden configurations by representing them as knowledge graphs.
For this, we use an instance of the class Garden to which we link its plants. The property
neighbour models which plants are placed next to each other. To determine whether a plant
has a neighbour that is an (anti-)companion, CoPla contains axioms of the following form:
hasNeighbour some PLANT and companion some PLANT</p>
        <p>SubClassOf companionNeighbour some PLANT
hasNeighbour some PLANT and anti_companion some PLANT</p>
        <p>SubClassOf incompatibleNeighbour some PLANT</p>
        <p>Diferent concepts in the ontology define desirable properties of plants based on their
neighbourhood—e.g. having one or more companionNeighbours—and of the garden—having
at least 3 well-placed plants. For instance, the class BadGarden is defined as a garden in which
at least one plant is placed next to an anti-companion. Through reasoning on the Garden
individual, users can now determine which properties their garden possesses—whether it is
a bad garden or a particularly well-organised garden—and obtain detailed explanations—e.g.
which neighbours are currently anti-companions, and why.</p>
      </sec>
      <sec id="sec-4-3">
        <title>4.3. Suggesting Garden Configurations</title>
        <p>A lesser known reasoning service called ontology repair can be used to not only analyse existing
garden configurations, but also suggesting optimal placements of plants. The use case here is
that the user specifies what plants they want to have in their garden. Through reasoning, we
then determine which plants should be placed next to each other.</p>
        <p>Given an OWL knowledge base  and some undesired entailment  , a repair of that
knowledge base is a maximal subset of statements in  such that  is not entailed anymore, but the
properties maximising companionship  is preserved. Given a list of plants a naive approach
would be to start with a “maximal” knowledge graph in which instances of all of the plants are
placed next to each other using the neighbour property, and then use repair to remove those
neighbourhood relations that cause the garden to be a BadGarden. The resulting knowledge
graph is then a configuration in which no anti-companions are placed next to each other.</p>
        <p>This approach has two limitations: 1) the repair might remove statements other than the
neighbour-relation, for instance elements from the TBox such as axioms from the plant ontology,
and 2) we not only want to eliminate anti-companionships, but also maximise companionships.
We thus use a diferent type of repairs defined as follows:
Definition 1. Let ,  be knowledge bases s.t.  ⊆  and  ,  axioms s.t.  |=  and
 ̸|=  . A repair of  |=  preserving  |=  , with fixed  , is a knowledge base  s.t.
1.  ⊆   ⊆  ,
2.  ̸|=  , and
3.  |=  .</p>
        <p>Clearly, such a repair need not always exist. If it does, it can be computed similar to classical
repairs by using justifications [ 30]. In order to suggest a garden configuration for a given set
of plants, we construct a maximal garden configuration as described above, add all statements
except for the neighbourhood relations into the fixed component  , and repair the entailment
 |= garden Type BadGarden
preserving
 |= garden Type NiceGarden,
where BadGarden is the Garden class we aim to avoid (e.g. one with neighbouring
anticompanions) and NiceGarden is some Garden class that we would like to preserve (e.g. one
that has many companionship neighbours). In our implementation, we rank diferent such
preferable Garden-classes, and start with the highest ranked class when trying to compute
the repair, and then step-wise change to lower-ranked classes until a repair is found, this way
computing the best garden configuration that avoid anti-companionships.</p>
      </sec>
      <sec id="sec-4-4">
        <title>4.4. Our User Interface</title>
        <p>Using Protégé for the described use cases requires familiarity with Semantic Web technologies.
Therefore, we implemented some of these use cases with a proof-of-concept user interface using
JavaScript and Spring Boot [31], using the REST API for communication with the backend. The
backend was implemented in Java 17, using the OWL API 5 [32] (5.1.9) for all OWL related
services (including explanation services). The tool can be deployed using Docker Compose [33].
All code, including docker files, are available in our repository (see introduction), which also
includes instructions on how to run our tool.</p>
        <p>The frontend uses Javascript and Node.js. We made use of AnyChart16 to display simple but
interactive graphs to the user. The user interface provides three distinct functionalities: (1)
exploring companions of selected plants (2) Checking garden configurations (based on a list of
plants) and (3) Suggesting Placement of Plants. We describe the first functionality—the others
are described in the appendix.</p>
        <p>Figure 3 shows the output of the companion exploration after the user presses the “Explore
Companions” button. We use a simple network graph with coloured edges. Green signals a
companion relationship and red is for an anti-companion relationship. The presented graph is
interactive and the user can click on any nodes or edges, as well as drag the nodes around in
the graph canvas. The tooltips of the graph provide further information about the plants: the
scientific name, a wikidata link to the plant, and an image of the plant retrieved from wikiData.
In the future, we plan to additionally implement an explanation functionality when clicking on
edges, to explain in more detail why the connected plants are (anti-) companions.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Limitations and Future Work</title>
      <p>Provenance in the Ontology. The source knowledge on which we based our design may have
limitations: A lot of the knowledge regarding companion planting is anecdotal, and the resources
describing these relationships are not always supported by scientific claims. Future work could
address this issue by indicating and tracking the provenance of the sources for companionship
interactions, both to spot contradicting information and to highlight the relationships that are
verified by scientific evidence. Additional future work will aim at including additional factors
in the ontology, such as environmental factors and soil quality.</p>
      <p>Explanations in User interface. We want to integrate further explanation services into
our prototype. In the current version, we only show explanations for the analysis of the garden
configuration. Those are just displayed in OWL syntax but but not visualised further. In the
future, we would also like to provide explanations for companionships. We also plan to integrate
the interactive proof visualisations of Evonne [29], which is also based on Javascript, to allow
for a more user friendly and interactive explanations.</p>
      <p>Further Improving the User Interface. As the name suggests, we engineered a proof of
concept, which means that our tool is neither finished nor did we perform any evaluation with
users. For future work, we plan to elicit requirements for the user interface with domain experts
and hobby gardeners who are unfamiliar with ontologies to go the extra mile and make this
tool accessible. This also includes an evaluation of this interface to show its usefulness. Only by
making it usable by laymen can we fully overcome the challenge that companion planting is
currently facing in terms of heterogeneous and often inaccessible information.</p>
      <p>Evaluation with Human Users. We plan to conduct evaluations of the tool with human
users in real-world use cases. We will solicit feedback from domain experts and hobby gardeners
who are unfamiliar with ontologies to refine our user interface. This user-centered design
approach aims to ensure that our tool is accessible and practical, even for those without technical
expertise in ontologies. The evaluation will specifically aim to assess the tool’s usability and
efectiveness in supporting sustainable gardening practices.</p>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusions</title>
      <p>Companion planting is a key practice in sustainable agriculture and a way for laymen to
contribute with their own garden. However, the information on companion planting is scattered
and often inaccessible, which calls for integration and publication in a more digestible format.
Our contributions to this challenge are three-fold: (1) we engineered the semantically rich
companion planting ontology, integrating information from various sources on plants and
their efects on each other; (2) we leveraged various reasoning paradigms to infer additional
information as well as to check plant constellations against certain garden criteria; (3) we build
a simple yet useful decision support system which makes use of the ontology and reasoning
abilities for users unfamiliar with Semantic Web technologies. Through our contributions, we
showcase the usefulness of these technologies outside of research bounds and also bring them
closer to everyday users.
ontologies, Trends in ecology &amp; evolution 23 (2008) 159–168.
[17] L. Penev, M. Dimitrova, V. Senderov, G. Zhelezov, T. Georgiev, P. Stoev, K. Simov,
Openbiodiv: a knowledge graph for literature-extracted linked open data in biodiversity science,
Publications 7 (2019) 38.
[18] S. Babalou, E. Kleinsteuber, B. El Haouni, F. Zander, D. S. Costa, J. Kattge, B.
KönigRies, iKNOW-a knowledge graph management platform for the biodiversity domain, in:
proceedings of ISWC 2022, Springer, 2022.
[19] N. Le Guillarme, W. Thuiller, A practical approach to constructing a knowledge graph for
soil ecological research, European Journal of Soil Biology 117 (2023) 103497. doi:https:
//doi.org/10.1016/j.ejsobi.2023.103497.
[20] M. Fernández-López, A. Gómez-Pérez, N. Juristo, Methontology: From ontological art
towards ontological engineering, in: Proceedings of the Ontological Engineering AAAI-97
Spring Symposium Series, AAAI, 1997. URL: https://oa.upm.es/5484/.
[21] H. Philbrick, R. Gregg, Companion Plants and How to Use Them, Devin-Adair Publishers,
1966.
[22] A. Greer, Companion Planting for the Kitchen Gardener, Skyhorse Publishing, 2014.
[23] M. Jefreys, A Beginners Guide to Companion Planting: Companion Gardening with</p>
      <p>Flowers, Herbs &amp; Vegetables, 2013.
[24] S. Schlobach, R. Cornet, et al., Non-standard reasoning services for the debugging of
description logic terminologies, in: Ijcai, volume 3, 2003, pp. 355–362.
[25] M. Horridge, Justification based explanation in ontologies, Ph.D. thesis, University of</p>
      <p>Manchester UK, 2011.
[26] Y. Kazakov, M. Krötzsch, F. Simancik, The incredible ELK — from polynomial procedures
to eficient reasoning with ℰ ℒ ontologies, J. Autom. Reason. 53 (2014) 1–61. doi:10.1007/
s10817-013-9296-3.
[27] Y. Kazakov, P. Klinov, A. Stupnikov, Towards reusable explanation services in Protégé, in:
Description Logic Workshop, volume 1879 of CEUR Workshop Proceedings, CEUR-WS.org,
2017.
[28] C. Alrabbaa, S. Borgwardt, T. Friese, P. Koopmann, J. Méndez, A. Popovič, On the eve
of true explainability for owl ontologies: Description logic proofs with evee and evonne,
Proc. DL 22 (2022).
[29] J. Méndez, C. Alrabbaa, P. Koopmann, R. Langner, F. Baader, R. Dachselt, Evonne: A visual
tool for explaining reasoning with OWL ontologies and supporting interactive debugging,
Computer Graphics Forum (2023). doi:https://doi.org/10.1111/cgf.14730.
[30] B. Parsia, E. Sirin, A. Kalyanpur, Debugging OWL ontologies, in: A. Ellis, T. Hagino (Eds.),</p>
      <p>WWW-05, ACM, 2005, pp. 633–640.
[31] C. Walls, Spring Boot in action, Simon and Schuster, 2015.
[32] M. Horridge, S. Bechhofer, The OWL API: A Java API for OWL ontologies, Semantic web
2 (2011) 11–21.
[33] D. Merkel, Docker: lightweight linux containers for consistent development and
deployment, Linux Journal 2014 (2014) 2.</p>
    </sec>
    <sec id="sec-7">
      <title>A. Appendix</title>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>S.</given-names>
            <surname>Hirschfeld</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. V.</given-names>
            <surname>Acker</surname>
          </string-name>
          ,
          <article-title>Permaculture farmers consistently cultivate perennials, crop diversity, landscape heterogeneity and nature conservation</article-title>
          ,
          <source>Renewable Agriculture and Food Systems</source>
          <volume>35</volume>
          (
          <year>2020</year>
          )
          <fpage>342</fpage>
          -
          <lpage>351</lpage>
          . doi:
          <volume>10</volume>
          .1017/S1742170519000012.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>M. D.</given-names>
            <surname>Hathaway</surname>
          </string-name>
          ,
          <article-title>Agroecology and permaculture: addressing key ecological problems by rethinking and redesigning agricultural systems</article-title>
          ,
          <source>Journal of Environmental Studies and Sciences</source>
          <volume>6</volume>
          (
          <year>2016</year>
          )
          <fpage>239</fpage>
          -
          <lpage>250</lpage>
          . doi:
          <volume>10</volume>
          .1007/s13412-015-0254-8.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>P. P.</given-names>
            <surname>Reddy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. P.</given-names>
            <surname>Reddy</surname>
          </string-name>
          ,
          <article-title>Companion planting, Agro-ecological Approaches to Pest Management for Sustainable Agriculture (</article-title>
          <year>2017</year>
          )
          <fpage>149</fpage>
          -
          <lpage>164</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>J.</given-names>
            <surname>Grifiths-Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Nicholls</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Goulson</surname>
          </string-name>
          ,
          <article-title>Companion planting to attract pollinators increases the yield and quality of strawberry fruit in gardens and allotments</article-title>
          ,
          <source>Ecological Entomology</source>
          <volume>45</volume>
          (
          <year>2020</year>
          )
          <fpage>1025</fpage>
          -
          <lpage>1034</lpage>
          . doi:
          <volume>10</volume>
          .1111/een.12880.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>A.</given-names>
            <surname>Konkolewska</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Piechalak</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Ciszewska</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Antos-Krzemińska</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Skrzypczak</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Hanć</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Sitko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Małkowski</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Barałkiewicz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Małecka</surname>
          </string-name>
          ,
          <article-title>Combined use of companion planting and pgpr for the assisted phytoextraction of trace metals (zn, pb</article-title>
          , cd),
          <source>Environmental Science and Pollution Research</source>
          <volume>27</volume>
          (
          <year>2020</year>
          )
          <fpage>13809</fpage>
          -
          <lpage>13825</lpage>
          . doi:
          <volume>10</volume>
          .1007/s11356-020-07885-3.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>R.</given-names>
            <surname>Ben-Issa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Gomez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Gautier</surname>
          </string-name>
          ,
          <article-title>Companion plants for aphid pest management</article-title>
          ,
          <source>Insects</source>
          <volume>8</volume>
          (
          <year>2017</year>
          )
          <article-title>112</article-title>
          . doi:
          <volume>10</volume>
          .3390/insects8040112.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>J.</given-names>
            <surname>Gao</surname>
          </string-name>
          ,
          <string-name>
            <surname>F. Zhang,</surname>
          </string-name>
          <article-title>Influence of companion planting on microbial compositions and their symbiotic network in pepper continuous cropping soil</article-title>
          ,
          <source>Journal of Microbiology and Biotechnology</source>
          <volume>33</volume>
          (
          <year>2023</year>
          )
          <fpage>760</fpage>
          -
          <lpage>770</lpage>
          . doi:
          <volume>10</volume>
          .4014/jmb.2211.11032.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>C</surname>
          </string-name>
          .
          <article-title>-l.</article-title>
          <string-name>
            <surname>Chang</surname>
            ,
            <given-names>X.-p.</given-names>
          </string-name>
          <string-name>
            <surname>Fu</surname>
          </string-name>
          , X.-g. Zhou, M.
          <article-title>-y.</article-title>
          <string-name>
            <surname>Guo</surname>
          </string-name>
          , F.-z. Wu,
          <article-title>Efects of seven diferent companion plants on cucumber productivity, soil chemical characteristics and pseudomonas community</article-title>
          ,
          <source>Journal of Integrative Agriculture</source>
          <volume>16</volume>
          (
          <year>2017</year>
          )
          <fpage>2206</fpage>
          -
          <lpage>2214</lpage>
          . doi:https: //doi.org/10.1016/S2095-
          <volume>3119</volume>
          (
          <issue>17</issue>
          )
          <fpage>61698</fpage>
          -
          <lpage>8</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>G.</given-names>
            <surname>Franck</surname>
          </string-name>
          ,
          <article-title>Companion planting: successful gardening the organic way</article-title>
          , Thorsons Publishing Group,
          <year>1983</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>J. H.</given-names>
            <surname>Poelen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. D.</given-names>
            <surname>Simons</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. J.</given-names>
            <surname>Mungall</surname>
          </string-name>
          ,
          <article-title>Global biotic interactions: An open infrastructure to share and analyze species-interaction datasets</article-title>
          ,
          <source>Ecological Informatics</source>
          <volume>24</volume>
          (
          <year>2014</year>
          )
          <fpage>148</fpage>
          -
          <lpage>159</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>J.</given-names>
            <surname>Kattge</surname>
          </string-name>
          , G. Bönisch,
          <string-name>
            <given-names>S.</given-names>
            <surname>Díaz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Lavorel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I. C.</given-names>
            <surname>Prentice</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Leadley</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Tautenhahn</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G. D.</given-names>
            <surname>Werner</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Aakala</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Abedi</surname>
          </string-name>
          , et al.,
          <article-title>Try plant trait database-enhanced coverage and open access</article-title>
          ,
          <source>Global change biology 26</source>
          (
          <year>2020</year>
          )
          <fpage>119</fpage>
          -
          <lpage>188</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>C.</given-names>
            <surname>Jonquet</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Toulet</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Arnaud</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Aubin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E. D.</given-names>
            <surname>Yeumo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Emonet</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Graybeal</surname>
          </string-name>
          , M.
          <article-title>-</article-title>
          <string-name>
            <surname>A. Laporte</surname>
            ,
            <given-names>M. A.</given-names>
          </string-name>
          <string-name>
            <surname>Musen</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          <string-name>
            <surname>Pesce</surname>
          </string-name>
          , et al.,
          <article-title>Agroportal: A vocabulary and ontology repository for agronomy, Computers and Electronics in Agriculture 144 (</article-title>
          <year>2018</year>
          )
          <fpage>126</fpage>
          -
          <lpage>143</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>P.</given-names>
            <surname>Larmande</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Todorov</surname>
          </string-name>
          ,
          <article-title>Agrold: A knowledge graph for the plant sciences</article-title>
          ,
          <source>in: proceedings of ISWC</source>
          , Springer,
          <year>2021</year>
          , pp.
          <fpage>496</fpage>
          -
          <lpage>510</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>A.</given-names>
            <surname>Goldstein</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Fink</surname>
          </string-name>
          ,
          <string-name>
            <surname>G.</surname>
          </string-name>
          <article-title>Ravid, A framework for evaluating agricultural ontologies</article-title>
          ,
          <source>Sustainability</source>
          <volume>13</volume>
          (
          <year>2021</year>
          )
          <fpage>6387</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>I.</given-names>
            <surname>Subirats-Coll</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Kolshus</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Turbati</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Stellato</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Mietzsch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Martini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Zeng</surname>
          </string-name>
          ,
          <article-title>Agrovoc: The linked data concept hub for food and agriculture</article-title>
          ,
          <source>Computers and Electronics in Agriculture</source>
          <volume>196</volume>
          (
          <year>2022</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>J. S.</given-names>
            <surname>Madin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Bowers</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. P.</given-names>
            <surname>Schildhauer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. B.</given-names>
            <surname>Jones</surname>
          </string-name>
          , Advancing ecological research with
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>