<!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>Legal Rules Modelling Meets the Web</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Monica Palmirani</string-name>
          <email>monica.palmirani@unibo.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Luca Cervone</string-name>
          <email>luca.cervone@unibo.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Octavian Bujor</string-name>
          <email>octavian.bujor@unibo.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>CIRSFID, University of Bologna</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>1 ACE-Attempto Controlled English: http://attempto.ifi.uzh.ch/site/ 2 Euro-Lex from July 1st provides on the web the legal binding electronic publication of the Official Journal of the European Union: http://new.eur-lex.europa.eu/legal-content/EN/TXT/?qid=1374823435988&amp;uri=CELEX:32013R0216 3 http://www.geonames.org/ 4 http://www.w3.org/TR/vocab-org/ 5 http://sinatra.cirsfid.unibo.it/rawe/</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        This abstract presents RAWE, a Web editor for helping the legal knowledge engineer marking up
legal document’s using the Akoma Ntoso [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ][
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] XML standard, and also to model legal rules
using a logic formalism and convert them into LegalRuleML [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ][
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. The main goal of the RAWE
Web editor is to provide a tool capable of managing in an integrated way the legal source text and
the legal rules. It offers the advantages of the Akoma Ntoso and of LegalRuleML, applying the
isomorphism principle [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ][
        <xref ref-type="bibr" rid="ref6">6</xref>
        ][
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] to connect, as far as possible, legally binding textual provisions
with the logic formalism expressed using rules. AI&amp;Law tools [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] usually are too focused on the
task of applying a logic formalism to achieve isomorphism (e.g. often they use plain text,
paraphrase techniques or simplified English text—ACE 1), but the legal experts (judges, lawyers,
and administrators) are interested in verifying the results of the legal reasoning engine and in
finding evidence in the legally binding text that more and more, nowadays, is available on the web
in digital format2.
      </p>
      <p>
        Secondly, a legal text changes over time, and so the rules need to be updated accordingly. If
the isomorphism principle is not applied properly, it is quite difficult to determine whether those
rules need to be updated [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. The RAWE editor helps the legal knowledge engineers to maintain
text and rules aligned and to minimize manual mark-up activity during the lifecycle of the legal
documentation.
      </p>
      <p>Thirdly, the aim of the RAWE is also to meet the Semantic Web techniques, for so it converts
all the legal knowledge embedded in Akoma Ntoso and in LegalRuleML in RDF serialization to
favour Linked Open Data interoperability with other legal open resources available in the cloud
(e.g. geoNames 3, organizations 4, crowd-sourcing annotation, journalism, etc.).</p>
    </sec>
    <sec id="sec-2">
      <title>1. RAWE Functionality</title>
      <p>
        RAWE 5 is the web editor that permits the abovementioned mechanism and it provides the
following functionalities: i) Authentication of the end-user and customization of the environment
according with the personal profile (e.g., legal system, legal tradition, legal guidelines); ii)
Multilanguage interface and environment; iii) Customized interface and buttons on the basis of the
user profile and of JSON configuration files; iv) Mark-up of a legal text with Akoma Ntoso
standard using parsers to automatically detect the normative references, dates, metadata, and
structure of legal documents; v) Record of the XML files in the eXist repository [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]; vi) Tree of
the marked-up elements; vii) On-the-fly view in Akoma Ntoso and in LegalRuleML; viii)
Conversion and export in PDF, XML, ePub, or RDF format; ix) Web editor environment with
WYSIWIG interface; x) Contextual functionalities based on the XML tree and XML-schemas; xi)
Mouse-over for detecting the metadata of a portion of legal text and reuse for modelling legal
rules; xii) Toolbar for marking up the document’s structure; xiii) Toolbar for marking up legal
rules.
      </p>
      <p>There are some special functionalities that we have faced in the RAWE implementation using
HCI techniques for coping with the isomorphism mechanism.</p>
      <p>Contextual Composition of the Rules. In LegalRuleML we have five groups of statements:
PrescriptiveStatement, ConstitutiveStatement, PenaltyStatement ReprationStatement and
FactStatements. Each group allows some particular modeling following the legal logic theory (e.g.
Prescriptive rule is a sequence of deontic operators). For this reason RAWE is based on the
LegalRuleML prescriptive grammar constraints and it lead the end user to compose the rules
correctly.</p>
      <p>Reparation is a binary relationship between a penalty and a prescriptive rule or violation. So
we found a smart interface mechanism to select the two parts of the relationship and to connect
them to each other using drag and drop function.</p>
    </sec>
    <sec id="sec-3">
      <title>2. Future Work</title>
      <p>A first pilot case was marked up with RAWE (section 504, title 17, US code, 7 versions over time).
This pilot case, even if modest, has made evident some critical points:</p>
      <p>Metadata in Context. If we need to refine or readjust the context of the rule and the related
metadata, we need a new toolbar and panel.</p>
      <p>Extra isomorphism rules. Sometimes we need to include extra rules not directly linked to the
legal text.</p>
      <p>
        Ontology. Some elements of the rule modeling need to be enriched with the definitions of an
external vocabulary or ontology (e.g. LKIF [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]).
      </p>
      <p>Meta-Rules. Meta-rules (rules about other rules), need to find a mechanism for linking rules
as antecedents and consequents.</p>
      <p>
        Multiple interpretation. In this version of the editor is not possible to have multiple
interpretations of the same legal textual document fragment [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. It is a crucial feature for guarantee
the multiple annotation.
      </p>
      <p>Granularity. For now the granularity of the isomorphism is on the rule. In the future we will
be able to also manage the same functionality on the body, head, and atom.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Athan</surname>
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boley</surname>
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Governatori</surname>
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Palmirani</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Paschke</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wyner</surname>
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>OASIS LegalRuleML</article-title>
          . In Bart Verheij, ed,
          <source>Proceedings of 14th International Conference on Artificial Intelligence and Law (ICAIL</source>
          <year>2013</year>
          ). ACM,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Barabucci</surname>
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cervone</surname>
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Palmirani</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Peroni</surname>
            <given-names>S.</given-names>
          </string-name>
          , Vitali F.
          <article-title>: Multi-layer Markup and Ontological Structures in Akoma Ntoso</article-title>
          . In: LNCS 6237/
          <year>2010</year>
          , pp.
          <fpage>133</fpage>
          -
          <lpage>149</lpage>
          , Springer,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Bench-Capon</surname>
            <given-names>T.</given-names>
          </string-name>
          and Coenen F.:
          <article-title>Isomorphism and legal knowledge based systems</article-title>
          .
          <source>Artificial Intelligence and Law</source>
          ,
          <volume>1</volume>
          (
          <issue>1</issue>
          ):
          <fpage>65</fpage>
          -
          <lpage>86</lpage>
          ,
          <year>1992</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Boella</surname>
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Governatori</surname>
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rotolo</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Torre L.V.D.</surname>
          </string-name>
          :
          <article-title>A Formal Study on Legal Compliance and Interpretation</article-title>
          . ;In AICOL Workshops(
          <year>2009</year>
          ), Springer,
          <fpage>162</fpage>
          -
          <lpage>183</lpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Breuker</surname>
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boer</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hoekstra</surname>
            <given-names>R</given-names>
          </string-name>
          ., Van Den Berg C.
          <article-title>: Developing Content for LKIF: Ontologies and Framework for Legal Reasoning</article-title>
          ,
          <source>in Legal Knowledge and Information Systems, JURIX 2006</source>
          , pp.
          <fpage>41</fpage>
          -
          <lpage>50</lpage>
          , ISO Press, Amsterdam,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Gordon</surname>
            <given-names>T. F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Governatori</surname>
            <given-names>G.</given-names>
          </string-name>
          ,
          <article-title>Rotolo A.: Rules and Norms: Requirements for Rule Interchange Languages in the Legal Domain</article-title>
          .
          <source>RuleML</source>
          <year>2009</year>
          : pp.
          <fpage>282</fpage>
          -
          <lpage>296</lpage>
          , Springer,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Gordon</surname>
            <given-names>T. F.</given-names>
          </string-name>
          :
          <article-title>Constructing Legal Arguments with Rules in the Legal Knowledge Interchange Format (LKIF)</article-title>
          .
          <source>In: Computable Models of the Law, Languages</source>
          , Dialogues, Games, Ontologies (
          <year>2008</year>
          ), pp.
          <fpage>162</fpage>
          -
          <lpage>184</lpage>
          , Springer,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Gordon</surname>
            ,
            <given-names>T. F.</given-names>
          </string-name>
          :
          <article-title>The Carneades web service</article-title>
          .
          <source>In Computational Models of Argument - Proceedings of COMMA</source>
          <year>2012</year>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Verheij</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Szeider</surname>
          </string-name>
          , and S. Woltran, Eds., IOS Press, pp.
          <fpage>517</fpage>
          -
          <lpage>518</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Palmirani</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cervone</surname>
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Legal Change Management with a Native XML Repository. A cura di G. Governatori. Legal Knowledge and Information Systems</article-title>
          .
          <source>JURIX</source>
          <year>2009</year>
          .
          <article-title>The Twenty-Second Annual Conference</article-title>
          .
          <source>Rotterdam. 16th18th December</source>
          <year>2009</year>
          ,pp.
          <fpage>146</fpage>
          -
          <lpage>156</lpage>
          , Amsterdam: ISO press,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Palmirani</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Contissa</surname>
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rubino</surname>
            <given-names>R</given-names>
          </string-name>
          :
          <article-title>Fill the Gap in the Legal Knowledge Modelling</article-title>
          .
          <source>In Proceedings of RuleML</source>
          <year>2009</year>
          , pp.
          <fpage>305</fpage>
          -
          <lpage>314</lpage>
          , Springer,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Palmirani</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Governatori</surname>
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rotolo</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tabet</surname>
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boley</surname>
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Paschke</surname>
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Legal-RuleML: XML-Based Rules and Norms</article-title>
          .
          <source>RuleML America</source>
          , Springer,
          <year>2011</year>
          , pp.
          <fpage>298</fpage>
          -
          <lpage>312</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Palmirani</surname>
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Legislative Change Management with Akoma-Ntoso, in Legislative XML for the Semantic Web</article-title>
          , Springer, Law,
          <source>Governance and Technology Series</source>
          Volume
          <volume>4</volume>
          ,
          <year>2011</year>
          , pp
          <fpage>101</fpage>
          -
          <lpage>130</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>Vitali</surname>
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Palmirani</surname>
            <given-names>M.</given-names>
          </string-name>
          : Akoma Ntoso Release Notes. [http://www.akomantoso.org].
          <source>Accessed 5 July</source>
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>