<!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>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Tool for Calculating Transparent Greenhouse Gas Emissions</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Milan Markovic</string-name>
          <email>milan.markovic@abdn.ac.uk</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Stefano Germano</string-name>
          <email>stefano.germano@cs.ox.ac.uk</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Daniel Garijo</string-name>
          <email>daniel.garijo@upm.es</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Peter Edwards</string-name>
          <email>p.edwards@abdn.ac.uk</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andy Li</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tewodros Alemu Ayall</string-name>
          <email>tewodrosalemu.ayall@abdn.ac.uk</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Rachael Ramsey</string-name>
          <email>rachael.ramsey@sac.co.uk</email>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Georgios Leontidis</string-name>
          <email>georgios.leontidis@abdn.ac.uk</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science, University of Oxford</institution>
          ,
          <country country="UK">United Kingdom</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Department of Computing Science, University of Aberdeen</institution>
          ,
          <country country="UK">United Kingdom</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Ontology Engineering Group, Universidad Politécnica de Madrid</institution>
          ,
          <country country="ES">Spain</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>SAC Consulting, Scotland's Rural College</institution>
          ,
          <country country="UK">United Kingdom</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <fpage>13</fpage>
      <lpage>15</lpage>
      <abstract>
        <p>This demo provides an overview of Farm Explorer, a tool designed to calculate greenhouse emissions on farms in a transparent manner. Farm Explorer uses semantic descriptions of emission calculation formulas by leveraging knowledge graphs containing static and dynamic information about the farm operation and emission conversion factors. To enhance the transparency of emissions calculations, the tool records the provenance of the calculation process using standards like W3C PROV and W3C SOSA. Demo: https://w3id.org/tec-toolkit/ISWC-2024-demo Source: https://github.com/eats-project/farm-explorer ∗Corresponding author.</p>
      </abstract>
      <kwd-group>
        <kwd>provenance</kwd>
        <kwd>carbon footprint</kwd>
        <kwd>transparency</kwd>
        <kwd>knowledge graph</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>CEUR
ceur-ws.org</p>
    </sec>
    <sec id="sec-2">
      <title>1. Introduction</title>
      <p>
        The agrifood systems, responsible for about a third of global anthropogenic greenhouse gas
emissions [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], heavily rely on commercial carbon calculator tools [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Such tools aggregate
results calculated using various emission methodologies, data sources (e.g., GFLI for feeds [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ])
and carbon standards (e.g., GHG Protocol [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]) applied to specific aspects of agrifood activities
(e.g., primary production on farms). Businesses provide data inputs that often need to be
laboriously extracted from heterogeneous sources (e.g., sensors, manual records, machinery
logs, etc.). For example, to estimate emissions on a farm, a calculator may consider the electricity
required to operate heavy machinery, use of fertilisers, amount of manure produced, and
other logistics. Here, a typical emission calculation would estimate the amount of
emissionsgenerating resources (i.e., activity data) and multiply them by their corresponding emission
conversion factor. We argue that semantic web technologies are ideally positioned to provide
the technological backbone for a fine-grained “smart data” layer enabling such calculations by
integrating heterogeneous data (e.g., manually extracted data, automated sensor measurements,
etc.) into an integrated framework. Furthermore, data provenance models may support an
understanding of the assumptions, parameters, and data interdependencies within the applied
emissions calculation methods, which is crucial to ensure trustworthy estimates and enables
their comparison at scale (e.g., across the food supply chain).
      </p>
    </sec>
    <sec id="sec-3">
      <title>2. Demo: Transparent KG-driven Emissions Calculations Guided by Semantic Plans</title>
      <p>We present Farm Explorer , a web-based application designed to capture and browse transparent
emissions calculations based on semantic technologies. Our tool addresses the following aspects
of the emissions calculation process:</p>
      <p>a. farm assets linked to emissions, by describing farm assets generating carbon footprint
such as agricultural land and crop area and machinery use; b. farm operation logs, by
describing observations related to farm assets generated by sensors and humans; c. emission
calculation methods, by creating semantic representations of carbon footprint executable
formulas (leveraging farm assets and their associated observations); d. transparent footprint
calculation, by capturing formula execution in a provenance trace with rich metadata to
enhance the transparency of the calculation process.</p>
      <p>Farm Explorer represents calculation formulas as semantic plans and uses SPARQL CONSTRUCT
queries to generate a provenance trace recording the calculation process for increased
transFarm</p>
      <p>Assets 
Observations
Emission
Conversion
Factors</p>
      <p>Queries</p>
      <p>Produces triples to describe provenance trace element 
CONSTRUCT {
  ?result qudt:value ?output.
  ?result ep-plan:correspondsToVariable ?var.
  ....}
{SWEHLEERCET{(MAX(?rv) - MIN(?rv) AS ?output) 
WHERE {
?obs  sosa:hasResult ?result.
?result qudt:value ?rv.
...}
 BIND (IRI(...)) AS ?result)
}</p>
      <p>Electricity Usage
ep-plan:Variable
Emission Conversion Factor</p>
      <p>ep-plan:Variable
isInputVariableOf
Estimate Electricity Footprint 
ep-plan:Step
hasOutputVariable
corresponds
ToVariable</p>
      <p>Irrigation Rig Electricity Usage
peco:EmissionCalculationEntity,</p>
      <p>ep-plan:Entity
cToorrVeasrpiaobnldes UeKcfEol:eEcmtriiscsiitoynCCoonnvveerrssiioonnFaFcatcotro,r</p>
      <p>ep-plan:Entitiy
corTroeSspteopnds Epsetcimo:EatmeisIrsriiognauCtsiaoelncduRlaigtioFnoAocttpivritiyn,t
ep-plan:Activity
used
hasConstraintImplementation
Retrieve and Describe Electricity Usage</p>
      <p>ep-plan:Constraint
Representing Formula: Electricity Usage * Emission Conversion Factor = Carbon Footprint Estimate
constraints</p>
      <p>Carbon Footprint Estimate
ep-plan:Variable
corresponds
ToVariable
Object Property</p>
      <p>Component Interaction</p>
      <p>
        wasGeneratedBy
Irrigation Rig Footprint
peco:EmissionScore,
ep-plan:Entity
Provenance Trace 
parency. Our approach thus aligns several existing ontology models (PROV [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], SOSA [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ],
EP-Plan [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], OpenMath [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], ECFO [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], PECO [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]) and aims to decouple the application code
from the calculation logic for emissions calculations. The overall data model for describing
farm data is based on the Agriculture Information Model (AIM) [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] and the W3C Semantic
Sensor Network Ontology (SSN) [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
    </sec>
    <sec id="sec-4">
      <title>3. System Overview</title>
      <p>
        Let us consider a scenario where a series of daily smart meter readings capture fine-grained
electricity usage of the irrigation rig for a particular season. Fig. 1 illustrates the main data
elements of the Farm Explorer tool: a. description of the emissions calculation method (EP-Plan,
OpenMath); b. Knowledge Graphs describing the farm operation (AIM, SOSA and SSN) and
emission conversion factors (ECFO); c. emission calculation provenance trace (EP-Plan, ECFO,
PECO). Farm Explorer captures a mixture of static and dynamic data. The static data describes
the farm (smart:AgriFarm) and the farm assets such as a polytunnel (smart:ArgiParcel)
and diferent pieces of machinery such as an electricity smart meter ( sosa:Sensor) and an
irrigation rig (sosa:Actuator). The dynamic part of the farm operation is represented as a
series of observation results (sosa:Observation, sosa:Result). At its core, EP-Plan models
provenance plans as acyclic graphs consisting of steps, input and output variables, and step
constraints (see the calculation formula box in Fig. 1). We use EP-Plan to model emission
calculation formulas, for example, inputs describing amount of kWh of electricity used by an
irrigation rig (ep-plan:Variable) multiplied (ep-plan:Step, openmath:Times) by a specific
electricity emission conversion factor (ep-plan:Variable) results in an output describing a
CO2e emissions estimate (ep-plan:Variable). We use step constraints (ep-plan:Constraint)
to define SPARQL CONSTRUCT queries to create an executable plan of the calculation method. The
construct queries retrieve the corresponding variable values and create additional provenance
descriptions in the execution trace (ep-plan:ExecutionTraceBundle) when the calculation
method is executed on the farm data. For example, Fig. 1 describes a query that retrieves
ifne-grained electricity usage sensor readings and generates relevant description in a
provenance trace recording the total energy usage for the period of interest as an input of the
emissions calculation. Additional queries are defined for the remaining input and output
variables.1 PECO and ECFO ontologies [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] are used to describe the individual parts of the
provenance trace (i.e., peco:EmissionCalculationEntitiy, ecfo:EmissionConversionFactor,
peco:EmissionCalculationActivity, peco:EmissionScore) corresponding to the emissions
calculation plan. Figure 2 shows these concepts in the Farm Explorer demo, depicting the step
and details of inputs and outputs involved in calculating the CO2e emissions from electricity
consumption in an irrigation rig.
1https://github.com/eats-project/farm-explorer/blob/main/src/main/resources/static/data/examples/exampleQueries.
txt
      </p>
    </sec>
    <sec id="sec-5">
      <title>4. Conclusions &amp; Future Work</title>
      <p>
        We have briefly described Farm Explorer , our progress towards achieving transparent emissions
calculation pipelines. Our ultimate future goal is to achieve full automation of emissions
calculations and their comparisons across complex business networks. Further unresolved challenges
include: automatic alignment of appropriate conversion factors to specific assets/activities,
descriptions and the integration of process-based and machine learning components for
emissions estimates within semantic pipelines, automatic generation of data processing queries and
calculation explanation from provenance traces (e.g., using Large Language Models [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]).
      </p>
    </sec>
    <sec id="sec-6">
      <title>5. Acknowledgments</title>
      <p>This work was supported by the UK Engineering and Physical Sciences Research Council [grant
numbers EP/V042270/1, EP/V050869/1, EP/S019111/1].</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>M.</given-names>
            <surname>Crippa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Solazzo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Guizzardi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Monforti-Ferrario</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F. N.</given-names>
            <surname>Tubiello</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Leip</surname>
          </string-name>
          ,
          <article-title>Food systems are responsible for a third of global anthropogenic GHG emissions</article-title>
          ,
          <source>Nature food 2</source>
          (
          <year>2021</year>
          )
          <fpage>198</fpage>
          -
          <lpage>209</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>A.</given-names>
            <surname>Acampora</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Ruini</surname>
          </string-name>
          , G. Mattia,
          <string-name>
            <given-names>C. A.</given-names>
            <surname>Pratesi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. C.</given-names>
            <surname>Lucchetti</surname>
          </string-name>
          ,
          <article-title>Towards carbon neutrality in the agri-food sector: drivers and barriers</article-title>
          , Resources,
          <source>Conservation and Recycling</source>
          <volume>189</volume>
          (
          <year>2023</year>
          )
          <fpage>106755</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>G. F. L. I.</surname>
          </string-name>
          (GFLI),
          <source>GFLI Database</source>
          ,
          <year>2021</year>
          . URL: https://globalfeedlca.org/gfli-database/, accessed:
          <fpage>2024</fpage>
          -07-03.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>World</given-names>
            <surname>Resources</surname>
          </string-name>
          <string-name>
            <surname>Institute</surname>
          </string-name>
          ,
          <source>World Business Council for Sustainable Development</source>
          ,
          <source>The Greenhouse Gas Protocol: A Corporate Accounting and Reporting Standard (Revised Edition)</source>
          ,
          <year>2004</year>
          . URL: https://ghgprotocol.org/corporate-standard, accessed:
          <fpage>2024</fpage>
          -07-03.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>T.</given-names>
            <surname>Lebo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Sahoo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>McGuinness</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Belhajjame</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Cheney</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Corsar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Garijo</surname>
          </string-name>
          , S. SoilandReyes, S. Zednik,
          <string-name>
            <given-names>J.</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <surname>PROV-O: The</surname>
            <given-names>PROV</given-names>
          </string-name>
          ontology,
          <source>W3C recommendation 30</source>
          (
          <year>2013</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>K.</given-names>
            <surname>Taylor</surname>
          </string-name>
          , A. Haller,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lefrançois</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. J. D.</given-names>
            <surname>Cox</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Janowicz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Garcia-Castro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. L.</given-names>
            <surname>Phuoc</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Lieberman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Atkinson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Stadler</surname>
          </string-name>
          ,
          <article-title>The Semantic Sensor Network Ontology, Revamped</article-title>
          , in: C.
          <string-name>
            <surname>d'Amato</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          Kagal (Eds.),
          <source>Proceedings of the Journal Track co-located with the 18th International Semantic Web Conference (ISWC</source>
          <year>2019</year>
          ), Auckland, New Zealand,
          <source>October</source>
          <volume>26</volume>
          ,
          <year>2019</year>
          , volume
          <volume>2576</volume>
          <source>of CEUR Workshop Proceedings, CEUR-WS.org</source>
          ,
          <year>2019</year>
          . URL: https://ceur-ws.
          <source>org/</source>
          Vol-
          <volume>2576</volume>
          /paper11.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>M.</given-names>
            <surname>Markovic</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Garijo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Edwards</surname>
          </string-name>
          , W. Vasconcelos,
          <article-title>Semantic modelling of plans and execution traces for enhancing transparency of IoT systems</article-title>
          , in: 2019
          <source>Sixth International Conference on Internet of Things: Systems, Management and Security (IOTSMS)</source>
          , IEEE,
          <year>2019</year>
          , pp.
          <fpage>110</fpage>
          -
          <lpage>115</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>S.</given-names>
            <surname>Buswell</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Caprotti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Carlisle</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Dewar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Gaëtano</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Kohlhase</surname>
          </string-name>
          ,
          <source>The OpenMath Standard The OpenMath Society</source>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>M.</given-names>
            <surname>Markovic</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Garijo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Germano</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Naja</surname>
          </string-name>
          , TEC: Transparent Emissions Calculation Toolkit, in: International Semantic Web Conference, Springer,
          <year>2023</year>
          , pp.
          <fpage>76</fpage>
          -
          <lpage>93</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>R.</given-names>
            <surname>Palma</surname>
          </string-name>
          , I. Roussaki,
          <string-name>
            <given-names>T.</given-names>
            <surname>Döhmen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Atkinson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Brahma</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Lange</surname>
          </string-name>
          , G. Routis,
          <string-name>
            <given-names>M.</given-names>
            <surname>Plociennik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Mueller</surname>
          </string-name>
          ,
          <article-title>Agricultural information model</article-title>
          , in: Information and Communication Technologies for
          <string-name>
            <surname>Agriculture-Theme</surname>
            <given-names>III</given-names>
          </string-name>
          : Decision, Springer,
          <year>2022</year>
          , pp.
          <fpage>3</fpage>
          -
          <lpage>36</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>L.</given-names>
            <surname>Floridi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Chiriatti</surname>
          </string-name>
          , Gpt-3
          <article-title>: Its nature, scope, limits, and consequences</article-title>
          ,
          <source>Minds and Machines</source>
          <volume>30</volume>
          (
          <year>2020</year>
          )
          <fpage>681</fpage>
          -
          <lpage>694</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>