v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4327 TO-MULTILONTOLOGY & MPCO: A METHODOLOGY FOR DEVELOPING MULTILINGUAL ONTOLOGIES & A LEGAL ONTOLOGY OF THE PENAL CODE ISMAHANE KOURTIN1,2 1Bourgogne-Franche-Comté University, CRIT Laboratory, Besançon, France 2Ibn Tofail University, Faculty of Science, EDPAGS Laboratory, Kenitra, Morocco E-mail:
[email protected] ABSTRACT Ontologies are among the techniques introduced by artificial intelligence in the early 1990s to enable better organization and semantic representation of information. They have the potential to play a crucial role in the design of question-answering systems and content comprehension by organizing and structuring the data they present. Multilingual ontologies are both language-independent and capable of supporting multiple languages, offering significant potential for querying and understanding knowledge in multicultural and multilingual environments. Although several ontology development methodologies exist, they provide the necessary elements for ontology construction without clearly demonstrating how to implement them or specifying the models to guide the development process, particularly for multilingual ontologies. Indeed, existing methodologies summarize the development of ontologies as a mere enumeration of important terms, followed by the definition of classes and their hierarchy, the definition of properties and their facets, and finally the creation of instances—without showing users the approach or method that could guide them in choosing terms, defining classes, the hierarchy, and properties, or in demonstrating how to build multilingual ontologies. In addition, there is a lack of models that allow for representing ontology data in a way that guides its development and documentation. This article proposes a customized methodology, TO-MULTILONTOLOGY, which covers aspects from the specification phase to the validation and evaluation phase, offering a detailed implementation process with clearly defined steps to guide and simplify the task of building multilingual ontologies. The proposed methodology also addresses one of the main obstacles to effective knowledge sharing: the inadequate documentation of existing ontologies. It provides powerful tools and models that not only document the ontology but also guide its development. This methodology will be explained and applied in the development of a multilingual legal ontology, MPCO (Multilingual Penal Code Ontology), in French and Arabic, for the Moroccan government's Penal Code. The constructed ontology can play a significant role in information retrieval and in learning about the penal code. It can also serve as a reference for the development of similar penal law ontologies. Keywords: Legal Ontologies, Ontology Development, Ontology Design, Multilingual Ontologies, Knowledge Representation And Modeling, Ontology Construction And Development Methodologies. 1. INTRODUCTION The ever-growing mass of information has created a crucial need to organize and structure the contents of available documents, transforming them into an intelligent guide capable of providing comprehensive and immediate answers to natural language queries. Ontologies are a promising solution that continues to prove its effectiveness. They enable the structuring of data and the creation of meaningful links by leveraging semantic web technologies and standards. These ontological datasets can be queried using SPARQL. Ontologies were introduced by artificial intelligence in the early 1990s to enable better organization and semantic representation of information. They have the potential to play a critical role in the design of question-answering
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4328 systems and content comprehension by structuring and organizing data. Multilingual ontologies offer even greater potential for querying and understanding knowledge in multicultural and multilingual environments, thanks to their language independence and ability to support multiple languages and linguistic variations. Several methodologies have been proposed to guide the design and development of ontologies, but their implementation remains unclear and poorly suited for the development of multilingual ontologies. More specifically, these methodologies outline the steps necessary for building ontologies without showing how to implement them or specifying the models to guide their execution. Despite differences among methodologies in the order of steps and in the language used to define them, they all adopt conceptually similar stages and requirements, which can be defined as: specification, conceptualization, implementation, evaluation, and documentation. Conceptualization is the main operation, consisting of identifying terms, grouping them into semantic classes, and structuring them into a terminological network. However, all these methodologies reduce ontology development to an enumeration of important terms, followed by the definition of classes and their hierarchy, the specification of properties and their facets, and finally the creation of instances— without providing users with a clear approach or guidance to help them choose the terms, define the classes, hierarchy, and properties, or show them how to build multilingual ontologies. Added to this is the lack of models to represent ontology data in a way that supports its development and documentation. This article proposes a customized methodology, TO-MULTILONTOLOGY, which covers aspects from the specification phase to the validation and evaluation phase, with a detailed implementation process featuring clearly defined steps that guide and simplify the task of building multilingual ontologies. The proposed methodology also addresses one of the main obstacles to effective knowledge sharing: the inadequate documentation of existing ontologies. It provides powerful tools and models that document the ontology and guide its development. This methodology will be explained and applied in the development of a multilingual legal ontology, MPCO (Multilingual Penal Code Ontology), in French and Arabic, for the Moroccan government's Penal Code. The constructed ontology can play a significant role in information retrieval and in learning about the penal code. It can also serve as a reference for the development of similar penal law ontologies. The proposed methodology for the development of multilingual ontologies consists of seven steps: 1) Establishing the ontology charter — Specification; 2) Building the ontology skeleton; 3) Defining the basic properties between the core concepts of the ontology skeleton; 4) Conceptualizing and refining the ontology; 5) Identifying and creating individuals; 6) Verifying the ontology's consistency and simulating deductive reasoning; 7) Validating and evaluating the ontology. The tool used for the construction and development of the ontology is Protégé 5.6.4, a free and open-source tool for editing and managing ontologies. Michael DeBellis has created a detailed guide on using Protégé version 5.5 for ontology development [1]. The rest of this article is organized as follows: Section 2 provides an overview of ontologies, covering a general introduction to ontologies, legal ontologies, methodologies, modeling languages, and existing tools for their development. Section 3 presents the TO-MULTILONTOLOGY methodology proposed for ontology construction, as well as the development of the multilingual legal ontology of the Moroccan Penal Code (MPCO). Finally, Section 4 concludes this work. 2. CONTEXT OF ONTOLOGIES 2.1 Introduction The concept of ontology is a term borrowed from philosophy and repurposed as an IT object. For centuries, philosophers have attempted to classify things and analyze their properties to better understand the world around them. The Greek philosopher Plato (428-348 BCE) was already establishing categories based on fundamental questions about reality, existence, and the true nature of things. This branch of philosophy is now known as Ontology and is defined as "the study of being qua being," according to Aristotle's (384-322 BCE) definition, who was Plato's student [2]. Human reasoning is based on what can be called an ontology of the world, meaning a certain view of the world and the categories that organize it. The knowledge representation community
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4329 adopted the term ontology in the 1990s to refer to the object resulting from a knowledge modeling process. The most widely accepted definition of an ontology is the one introduced by Gruber [3, 4] and extended by Borst [5], who defines an ontology as "a formal explicit specification of a shared conceptualization," where conceptualization refers to the objects, concepts, and other entities believed to exist within a particular domain of interest (the universe of discourse) and the relationships that exist between these entities. Studer et al. [6] elaborate on this definition: a "conceptualization" refers to an abstract model of a phenomenon in the world, having identified the relevant concepts of that phenomenon; "explicit" means that the types of concepts used and the constraints on their usage are explicitly defined; "formal" refers to the fact that the ontology must be machine-readable; and "shared" reflects the idea that an ontology captures consensual knowledge, meaning it is not private to an individual but accepted by a group. Such an ontology consists of a set of concepts that are both hierarchically organized and structured by relationships linking these concepts. The article published in 1996 by Uschold and Gruninger [7] remains a foundational text on ontologies and the methodology for their construction, where ontology is defined as "a term used to refer to the shared understanding of a domain of interest that can be used as a unifying framework to solve problems of communication between people and interoperability between systems." McGuinness et al. [8] also contributed to the clarification and development of the ontology, which they define as a formal and explicit description of the concepts in a domain of discourse (classes, sometimes referred to as concepts), the properties of each concept describing various characteristics and attributes of the concept (attributes for slots, sometimes called roles or properties), and restrictions on the slots (facets, sometimes called role restrictions). Ontologies, along with the set of individual instances of the classes, form a knowledge base. An ontology as an IT artifact is therefore composed of concepts, the relationships between them, their definitions, their properties, constraints on the properties, and individuals. Figure 1 presents the constituent parts of an ontology. The set of concepts, their definitions, and the relationships between them, represented hierarchically, is what is called a taxonomy. A taxonomy is a method of classifying or categorizing a set of things using a hierarchical structure, that is, a tree structure, with the most general category as the root of the tree. Each node, including the root node, is an information entity representing a realworld object that is being modeled. Each link between two nodes in a taxonomy represents a subcategorization or supercategorization relationship. Figure 1: The constituent parts of an ontology It is possible to draw a parallel with the world of relational databases, where the schema of a database can be seen as an ontology, and the data as instances or assertions that use the vocabulary of that ontology. However, there is a fundamental difference: a relational database assumes a closed world, which is not the case with ontologies, meaning that all information is present in the database, and anything that is not asserted is considered false. Ontologies play an increasingly important role in knowledge management and are used as a standard representation of knowledge. Thanks to ontologies, users can understand each other by using a common understanding of a domain. This helps to understand the concepts of the domain, as well as enables the machine to interpret the definitions of concepts and their relationships. Ontologies primarily play a role in analyzing, modeling, and implementing domain knowledge, although they also influence knowledge related to problem-solving. 2.2 Legal Ontologies The modeling and formalization of legal knowledge are crucial aspects to implement in order to improve legal assistance systems such as question-answering systems or legal information extraction systems. Considering that the basic types
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4330 of entities that populate the legal domain are assumed to be clearly identifiable and reasonably intersubjective, most efforts in the early 2000s focused on modeling foundational ontologies (highlevel) and knowledge exchange formats that abstract legal denominators with a unifying vision of legal subdomains, enabling the reuse of ontologies and supporting their modeling in new legal subdomains. As a result, several ontologies have been proposed by researchers, whether foundational ontologies that define common concepts across all domains or core ontologies that define, for each relevant domain, a minimal set of generic and central concepts. Specifically, for the legal domain, the following can be found: DOLCE (Descriptive Ontology for Linguistic and Cognitive Engineering) [9][10]: is a foundational (high-level) ontology that provides a set of abstract concepts and relations to structure any domain, based on a fundamental distinction between enduring and perduring entities—two types of entities that do not exist in reality and have been subject to several criticisms. DOLCE+ is an extension of DOLCE that includes modules dedicated to core ontologies for time, space, plans, etc. I consider the taxonomy, especially concepts such as "enduring" and "perduring," less relevant for legal terms, as they do not represent any legal reality. LRI-Core [11][12]: is a core legal ontology that supports the development of ontologies in criminal law across various European countries within the e-Court project. It uses a different approach from other foundational ontologies: it does not distinguish between enduring and perduring entities, as in DOLCE, by considering all concepts as enduring (i.e., timeless) and all instances as perduring. Mental concepts are not treated as non-physical concepts, as in DOLCE, but rather the mental world is considered an analog of the physical world with an intentional perspective. The top of LRI-Core consists of five main categories: physical and mental concepts, roles, abstract concepts, and terms for events. CLO (Core Legal Ontology) [13]: extends DOLCE+, which is an extension of DOLCE, and defines legal concepts and relations based on its formal properties. CLO views the legal world as a description of social reality and relies on the distinction between descriptions, which encompass laws, norms, regulations, types of crimes, etc., and situations, which encompass facts and legal cases. It offers a more extensive classification of legal actions, including concepts such as legal facts, legal acts, intentional legal facts, etc. However, the classification of these actions as situations and the lack of distinction between individual actions and organizational actions remain subject to criticism. LKIF (Legal Knowledge Interchange Format) [14][15]: is a knowledge representation formalism that allows the translation of legal knowledge bases written in different representation formats and formalisms. It can be used as a central knowledge component for legal knowledge management systems. The LKIF core ontology consists of several modules, each describing a set of closely related concepts from legal and common-sense domains. For LKIF, the only concept that defines a legal action is the "act of law," defined as a public act by a legislative body that creates an action with legal status. Despres and Szulman [16] provided a detailed comparison of core ontologies to help select an ontology suited to reuse constraints. From the second decade of this century, efforts regarding the representation of legal knowledge shifted towards modeling specific legal subdomains, reflecting a growing awareness of the particularities that characterize them. These specificities led to a proliferation of ontologies and modeling vocabularies for different legal subdomains, making the reuse of legal knowledge more difficult, as it requires a broad understanding of the resources already available. As a result, several researchers found it valuable to conduct a state-of-the-art review and comparative analysis of existing legal ontologies and vocabularies. Casellas [17] proposed a comprehensive survey of legal ontologies covering a period of about fifteen years, from the 1990s to 2011. The characteristics of the ontologies she considered in her analysis mainly relate to the intended use of the ontology, its level of generality, its degree of formalization, the methodology used to build and evaluate the ontology, as well as its availability for reuse. De Oliveira Rodrigues et al. [18] extended the period of their literature review and analyzed legal ontologies proposed from the late 1990s to 2017. Their work presents various classification studies aimed at grouping ontologies based on different dimensions, some of which are similar to those already proposed by Casellas [17]. Leone et al. [19] focused their attention on recently published legal ontologies from the second
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4331 decade of this century, providing a state-of-the-art review and a practical information source to consult in order to make an informed and conscious decision about the knowledge already modeled and reusable from other ontologies. They analyzed a set of ontologies, which they grouped into five legal subdomains: Policies (ODRL [20], LDR [21]); Licenses (ccREL [22], L4LOD [23]); Tenders and procurements (LOTED2 [24], PPROC [25]); Privacy (Data Protection Ontology [26], GDPRtEXT [27], PrivOnto [28], PrOnto [29]); and Cross-domain Ontologies (Eurovoc [30], LegalRuleML [31][32], ELI [33], NRV [34]). To model the criminal code targeted by this work, it is necessary to include concepts related to agents, actions, organizations, offenses, etc. As a result, several researchers have based their development of legal ontologies on foundational ontologies and core legal ontologies, which seem to be indispensable above an ontology of legal terms. Dhouib and Gargouri [35] described the construction of an application ontology for the legal domain, specifically for the modules of legal actions and agents. They adopted a multi-layered approach with three levels of abstraction for the ontology's conceptualization: the most abstract level was based on the foundational (top-level) ontology DOLCE, which provides a set of abstract concepts and relations to structure any domain; the intermediate level was based on core legal ontologies CLO and LKIF, which define a minimal set of generic and central concepts for the legal domain; and finally, at the most specific level, the intermediate-level concepts were further refined by domain-specific concepts (e.g., sales contract, lawyer, decision, etc.). To conceptualize legal actions, which are actions carried out by actors in a legal context, they adopted the view that actions are perdurants controlled by at least one intention and distinguishable from events that lack intentional cause. Among the actions, deliberate actions, which are premeditated, were included. To conceptualize legal agents, who are actors capable of interacting in a legal context, they adopted the view that these are agentive entities that are endurants and encompass entities with the ability to carry out actions. They identified three types of legal agents: Legal Organizations, which represent agents performing legal acts, such as courts and tribunals; Professional Legal Agents, which represent agents in the legal profession, such as judges, lawyers, etc.; and Social Legal Agents, which represent agents who can interact in a legal context but are not part Figure 2: The Taxonomy Of Legal Agents And Actions Presented In [35]
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4332 of the legal profession, such as witnesses, heirs, parties, etc. Figure 2 shows the taxonomy they presented for legal agents and actions. Breuker et al. [36] developed an ontology, OCL.NL, that covers Dutch criminal law, based at the most abstract level on the concepts from the LRI-Core ontology. This Dutch ontology was intended to serve as a reference for developing similar ontologies for Italian and Polish criminal law. In OCL.NL, a distinction is made between agents as entities that act and the roles that an agent can fulfill. Agents include individuals, legal entities, and groups of people. Roles cover most social concepts: social organizations, where we find legal organizations such as ministries and courts; social roles, where we find legal roles such as judges and lawyers; and social functions, where we find jurisdictions. Figure 3 shows the taxonomy they presented for legal agents and roles. Corcho et al. [37] constructed an ontology of legal entities within the context of Spanish law, based on a class taxonomy proposed by Breuker. They represented a taxonomy of legal entities by distinguishing between individuals and organizations. Individuals are further divided into natural persons, representing both adults and minors, and legal persons, representing companies (both public and private), associations, and foundations. Organizations represent ministries and courts. Figure 4 shows the taxonomy they presented for legal entities. The consultation and analysis of these existing ontologies related to the area of interest provide an idea of the legal concepts already studied and help select relevant concepts for reuse. However, their organization and most of the concepts they define are not compatible with the specifics of the Moroccan Penal Code and do not cover its typical concepts very well. They also have strong common-sense appeal, but legal professionals, who are the primary target users, are mainly interested in the legal aspects as defined by the laws. For the ontology by Dhouib and Gargouri [35], they used two types of offenses: the legal fact, which is an event likely to produce legal effects— either an intentional fact such as a murder or theft, or an unintentional fact such as a death or accident; and the legal act, which is the manifestation of will aimed at producing legal effects. They distinguish the legal fact from the legal act by intent, whereas in the Moroccan Penal Code, an offense is an act contrary to the law, which can be an act or an omission. However, I find the use of the concepts "legal organization," "professional legal person," and "social legal person" interesting. For the ontology by Breuker et al. [36], I do not agree with the idea of introducing the role as a concept, as I consider it more of a property that a legal entity can have. However, I do agree with the idea of introducing an agent as a concept representing any entity that acts and is concerned with the law, but without specializing it into a "person" concept, as "person" could also represent a legal person who is rather supposed to enforce the law and is not, therefore, represented by "agent." Figure 4: The taxonomy of legal entities presented in [37]
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4333 For the ontology by Corcho et al. [37], I do not agree with representing all types of people as legal entities, as I believe a distinction should be made between individuals who are supposed to enforce and uphold the law and individuals who are subject to the law, such as offenders, who I do not consider to be legal entities. Additionally, a specificity of the Moroccan Penal Code is that it distinguishes between minors under 12 years old and minors between 12 and 18 years old, who are treated and judged differently. LKIF-Core presents the concept "legal_source," which represents most legal sources, such as legal documents, represented by the concept "legal_document," which is further specialized into several concepts {code, code_of_conduct, contract, decree, directive, regulation, statute, treaty}, representing most legal documents. CLO has the concept "legal document" without specialization. The grouping proposed in LKIF-Core better matches the reality and nature of the objects, which is why I selected this group of concepts as relevant for reuse. 2.3 Methodologies for Building Ontologies The construction of an ontology for a particular domain requires an in-depth analysis to reveal the relevant concepts, attributes, relationships, constraints, instances, and axioms of that domain. Such knowledge analysis typically results in a taxonomy (is-a hierarchy) of concepts with their attributes, values, and relationships. At the beginning of their emergence, the construction of ontologies was done in a rather ad hoc manner. In the meantime, several methodologies have been proposed to guide the ontology development process. I would like to mention six methodologies that I find the most representative, which have emerged to guide the ontology development process. Table 1 shows the most representative ontology construction methodologies along with the steps they define. The methodologies that were presented with well-defined steps to guide developers in the ontology construction process are "METHONTOLOGY" and "Simple KnowledgeEngineering." A detailed example of the use of the "METHONTOLOGY" methodology was presented in the paper [43], where the authors demonstrated the use of METHONTOLOGY and ODE to construct an ontology of chemicals. Unlike other methodologies, the "Simple Knowledge-Engineering" methodology [8], presented by Noy and McGuinness, who developed an initial ontology development guide, has a detailed implementation process that specifies several elements to guide an ontology developer. This methodology includes more steps that simplify the construction task for the developer. It includes the following elements: 1) Determine the domain and scope of the ontology: This step involves determining the domain, source, purpose, and scope of the ontology. The questions to address include: what domain will the ontology cover? What is the purpose of the ontology? What types of questions should the ontology help answer? Table 1: The Most Representative Ontology Construction Methodologies Year Methodology Ontology Development Process 1995 « TOVE » (Toronto Virtual Enterprise) [38] (1) Identify motivating scenarios; (2) Define informal competency questions; (3) Define the ontology terminology; (4) Define formal competency questions; (5) Specify definitions and constraints on the terminology; (6) Test the competency of the ontology. 1996 « Skeletal Methodology » [39, 7] (1) Identify the goal; (2) Build the ontology (Capture the ontology, Code the ontology, and Integrate existing ontologies); (3) Evaluation; (4) Documentation; and Guidelines for each phase. 1996 « knowledge conceptualization » [40] (1) Capture knowledge; (2) Develop a requirements specification document; (3) Conceptualize the ontology; (4) Implement the conceptual model; and (5) Evaluation at each phase. 1997 « METHONTOLOGY » [41] (1) Specification; (2) Knowledge acquisition; (3) Conceptualization; (4) Integration; (5) Implementation; (6) Evaluation; (7) Documentation. Knowledge acquisition, evaluation, and documentation are tasks carried out throughout the ontology lifecycle. 2001 « Knowledge Meta Process » [42] (1) Feasibility study, (2) Ontology development launch, (3) Refinement, (4) Evaluation, (5) Maintenance. 2001 « Simple KnowledgeEngineering » [8] (1) Determine the domain and scope of the ontology; (2) Consider the reuse of existing ontologies; (3) List the important terms of the ontology; (4) Define the classes and the class hierarchy; (5) Define the properties of the classes (slots); (6) Define the facets of the slots; (7) Create instances.
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4334 Who will use and maintain the ontology? 2) Consider reusing existing ontologies: This involves checking whether an ontology has already been developed in the same domain. If such an ontology exists, it is easier to modify the existing ontology to meet specific needs than to create a new one from scratch. 3) Enumerate important terms in the ontology: This step is considered the first step in the actual construction of the ontology. It involves creating a list of the expected terms that will be used in the construction of the ontology without worrying about overlaps between the concepts they represent or the relationships between them. 4) Define the classes and the class hierarchy: This step involves organizing the relevant terms identified hierarchically, using a top-down development approach, bottom-up development approach, or a hybrid (middleout) approach that combines both top-down and bottom-up approaches. 5) Define the properties of class-slots: This involves identifying the properties (slots) of the classes in the remaining list of terms, indicating which class each property describes. 6) Define the facets of the slots: This step involves adding facets to the properties, which are restrictions on the properties, such as the type of value, allowed values, number of values (cardinality), and other characteristics of the values the slot can take. 7) Create instances: This step involves creating instances of the classes, referred to as individuals, and filling in the slot values. This final "Simple KnowledgeEngineering" methodology has been widely used by several researchers who adapted it to their needs. Boyce and Pahl [44] used this methodology with some adaptations for constructing an ontology of course subjects. Alfaifi [45] demonstrated the use of this methodology for the development of an ontology for information technologies at the University of Tabuk. Despite the differences between methodologies in the order of steps and the language used to define the steps, they all adopt conceptually similar steps and requirements, which can be defined as: specification, conceptualization, implementation, evaluation, and documentation. Conceptualization is the main operation, which involves identifying terms, grouping them into semantic classes, and structuring them into a terminological network. However, all these methodologies summarize ontology development as a mere enumeration of important terms, followed by the definition of classes and their hierarchy, the specification of properties and their facets, and finally the creation of instances—without showing users the approach or method that could guide them in selecting terms, defining classes, hierarchy, and properties, or in showing them how to build multilingual ontologies. In addition, there is a lack of models to represent ontology data in a way that supports its development and documentation. 2.4 Non-manual Methods for Ontology Construction The construction of an ontology is not a simple task. It requires time, effort, and expertise in the domain in which we wish to build the ontology. Normally, a team of individuals, such as domain experts and ontology engineers, are responsible for the development of the ontology. As a result, researchers have turned to non-manual methods for constructing ontologies from texts. The non-manual construction of ontologies from texts is a subfield of ontology engineering in its own right. The use of texts is justified by linguistic research, whose main hypothesis is that texts carry stabilized knowledge shared by communities. Moreover, even though they do not completely replace experts, texts are more readily available than experts, who often lack the time to participate in the construction process. A four-step methodological framework is common to most non-manual methods for constructing ontologies from texts: 1) constructing a document corpus; 2) linguistic and statistical analysis of the corpus; 3) conceptualization; and 4) operationalizing the ontology. These relatively independent steps perform a dual movement, transitioning from informal to formal, moving from the textual level where knowledge is described in corpora to the conceptual level where knowledge is described through concepts denoted by linguistic entities and the relationships between these concepts. In the preparatory phase of conceptualization, three main operations can be distinguished: Identifying terms; Grouping terms into semantic classes; and Structuring the classes into a terminological network. There are three types of ontology construction systems where the conceptualization is carried out automatically, semiautomatically, or manually assisted [46]: Automatic Ontology Construction Systems: These systems enable the fully automatic construction of ontologies from texts, such as
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4335 Text2Onto [47], which extracts concepts, relationships between these concepts (equivalence relations, hierarchical relations, etc.), and instances of concepts from texts. Semi-automatic Ontology Construction Systems: These systems allow for interactive ontology construction from texts, such as OntoGen [48], which suggests concepts to the domain expert in the form of document classes, proposes a designation, and automatically associates instances (documents) with them. Assisted Manual Ontology Construction Systems: These systems support interactive ontology construction from texts, such as Terminae [49], which guides the ontologist through the ontology design process. In general, methods for identifying terms and relationships between them from texts rely on natural language processing (NLP) techniques, which use linguistic methods, statistical methods, or a combination of both (hybrid): Linguistic methods: These involve performing a syntactic analysis on texts, identifying nouns, verbs, adjectives, and adverbs, as well as the syntactic dependencies between them (subject of the verb, object of the verb, etc.). By applying a set of syntactic rules, it is possible to identify complex terms such as noun phrases, verb phrases, adjective phrases, etc. There are several tools available for constructing and applying linguistic rules to texts, such as NooJ [50]. Statistical methods: These involve performing statistical calculations using statistical measures to identify terms, such as: tf (Term Frequency): Refers to the number of times a given term appears in the corpus. idf (Inverse Document Frequency): Establishes the distribution of terms within a corpus, based on the principle that the importance of a term is inversely proportional to the number of documents in the corpus in which the given term appears. tf-idf (Term Frequency-Inverse Document Frequency): Combines tf and idf with the idea of distinguishing terms that, although appearing in a small number of documents in the corpus, also have a high-frequency rate within the corpus. Entropy: Used to measure disorder, based on the ratio between the frequency of a term in a document and the total frequency of the term in the corpus. Lame [51] presented a method that relies on natural language processing (NLP) techniques by combining syntactic analysis and statistical analysis to extract concepts and the relationships between them to build a legal domain ontology dedicated to information retrieval. The author used the "Syntex" parser, which allows for syntactic analysis of texts by identifying nouns, verbs, adjectives, adverbs, and syntactic dependencies between them (subject of the verb, object of the verb, etc.). He then applied statistical methods to identify in the list of extracted terms those that could be classified as legal terms and those that could not. He only considered terms belonging to a single syntactic category: nouns and noun phrases, assuming that most concepts are encapsulated in nouns. He also removed terms containing nonalphabetic characters from the initial list, considering that numbers are not critical when the ontology is dedicated to information retrieval rather than reasoning. Then, he used statistical methods such as tf, idf, tf-idf, and entropy to weight the terms and determine which ones are legal and which are not. However, the results he obtained did not allow for the identification of legal terms without manual intervention. In conclusion, despite advancements in the field of natural language processing, their use remains unsatisfactory because they allow for the identification of certain terms without enabling a strict identification of all terms within the study domain, while still requiring manual intervention to validate the relevance of the identified terms. This can be explained by the fact that, on one hand, linguistic methods, while capable of developing rules to identify domain terms, can also identify terms outside the domain due to the lack of specific linguistic structures for domain terms. On the other hand, statistical methods can identify terms that are unrelated to the domain despite their high or low frequencies. As a result, the various methods proposed and developed for term extraction and the identification of conceptual vocabulary from texts cannot be fully automated, as the results from extractors are noisy, and terminological judgment is partly subjective, especially in complex domains like the legal field. 2.5 Ontology Modeling Languages To build an effective ontology, a modeling language for ontologies is used to describe explicit and formal conceptualizations of a given domain.
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4342 Once the editing of the core concepts dictionary is completed, we proceed to the creation of the ontology skeleton by implementing the dictionary data using the Protégé tool. The concepts from the dictionary will become classes in the ontology and serve as anchor points in the class hierarchy. For each concept, we define a class with an IRI carrying the concept code, and then we add the properties of the concept (labels and descriptions) as annotation properties. Labels are represented by the annotation property rdfs:label, which allows us to attach a label to the concept, specifying the corresponding language for the annotation. We then add a label for the concept's name in French and a label for its name in Arabic. Multiple labels in the same language can also be added if the concept has several terms in the same language. Descriptions are represented by the annotation property rdfs:comment, which allows us to attach a comment to the concept, specifying the corresponding language for the annotation. We add a comment for the concept description in French and a comment for its description in Arabic. If the available annotation properties are insufficient to represent the concepts’ properties, we add others. The knowledge thus acquired, expressed in natural language, is encoded and stored in the ontology by creating the first basic architecture that represents the skeleton of the ontology. Figure 11 shows the tree visualization of the ontology skeleton hierarchy in French on the left and in Arabic on the right, and Figure 12 shows its graphical visualization in French on the left and in Arabic on the right. Figure 11: The tree visualization of the ontology skeleton Figure 12: The graphical visualization of the ontology skeleton 3.3 Define the basic properties between the core concepts of the ontology skeleton A crucial step in ontology construction is properly defining the properties (relations) that link the concepts in the ontology. This step essentially involves defining the properties between the core concepts of the ontology skeleton, which were identified in the previous step. There are three types of properties: Table 2: Dictionary of Core Concepts of the Ontology Concept code Label Fr Label Ar Label En AGENT agent ﻞﻣﺎع agent ENTITE_JURIDIQUE entité juridique ينونﺎق نﺎيك legal entity INFRACTION infraction ةميرج offense CONDAMNATION condamnation مكح / ةنادإ conviction CAUSE_ARRET_CONDAMNATION cause d’arrêt de condamnation ءﺎضقنا بﺎبسأ ةنادﻹا cause of termination of conviction LIEU_CONDAMNATION lieu de condamnation ةنادﻹا نﺎكﻣ place of conviction CIBLE_INFRACTION cible d'infraction ةميرجلا فده target of offense SOURCES_JURIDIQUE source juridique ينونﺎق ردصﻣ legal source ACTION_JURIDIQUE action juridique ينونﺎق ءارجإ legal action
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4343 Annotation properties: These are relations between an entity and a value of a given type, such as a string ("xsd:string") or an integer ("xsd:integer"). They typically represent metadata, such as "rdfs:label" and "rdfs:comment," which link string-type values ("xsd:string") to an entity. Object properties: These are relations between two individuals. Data properties: These are relations between an individual and a value of a given type, such as a string ("xsd:string") or an integer ("xsd:integer"). In OWL, only individuals can have values for object and data properties, but any entity can have a value for an annotation property since metadata applies to all entities. Annotation properties generally cannot be used for reasoning and can be assigned to classes, individuals, or even properties. This is the case for annotation properties like "rdfs:label," which assigns a label (xsd:string value) to an entity, and "rdfs:comment," which assigns a comment (xsd:string value) to an entity. These are used to assign linguistic data to the objects in the ontology, whether they are classes, individuals, or properties. Identifying object properties that represent the relationships between core concepts and their restrictions can be done through the analysis of textual structures that link the concepts. For example, for "condamnations" [sentences] and "infractions" [offenses], among the structures that have been identified are: the structure "des peines prévues pour réprimer les faits constituant des infractions" [penalties provided to repress actions constituting offenses] which allows identifying the "réprime" [represses] object property linking "condamnations" [sentences] and "infractions" [offenses], and which is restricted to the domain (subject type) "condamnation" [sentence] and the range (object type) "infraction" [offense]; and the structure "l'attentat contre la vie ou la personne du Roi est puni de mort" [an attack on the life or person of the King is punishable by death] which allows identifying the "est puni de" [is punished by] object property linking "infractions" [offenses] and "condamnations" [sentences], and which is restricted to the domain "infraction" [offense] and the range "condamnation" [sentence]. Additional restrictions and characteristics can also be added to properties, such as "inverse property," "transitivity," "reflexivity," etc. In the previous example, the "réprime" [represses] property is the inverse of the "est puni de" [is punished by] property. These restrictions aim to limit the operations of a class or a property. Figure 13 shows a simplified conceptual graph of the two concepts "infraction" [offense] and "condamnation" [sentence] and their relationships. The linguistic data for classes and properties are described using annotation properties. Figure 13: The simplified conceptual graph of the two concepts "infraction" [offense] and "condamnation" [sentence] and their relationships
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4344 This study must be accompanied by what can be referred to as the object properties dictionary, which allows for recording information about the properties, such as: the property code, a label for each language targeted by the ontology (in this case, French and Arabic), the domain, the range, the inverse property, transitivity, reflexivity, etc. Linguistic variations (synonyms and acronyms) representing a property in the same language can also be added. I included an Excel sheet in the ontology workbook for the object properties dictionary, which I named "PROPRIETES_OBJETS." I started with 14 object properties that link the core concepts of the ontology's skeleton, representing relationships between them. Table 3 shows an excerpt from the ontology's object properties dictionary. For example, the class #INFRACTION (offense) is linked to the class #CONDAMNATION (sentence) through the object property #PUNI_DE (is punished by). This object property #PUNI_DE has multiple labels, represented using the annotation property "rdfs:label." In French, the labels capture linguistic variations of this property: "est puni de" and "est réprimé par." In Arabic, the labels reflect linguistic variations in that language: "ب بقﺎعي" and " هيلع بقﺎعي ب." Once the editing of the relations dictionary is complete, the properties and their restrictions are implemented by adding them to the ontology skeleton using Protégé. Figure 14 shows the hierarchical visualization of a subset of the ontology's object properties. Figure 14: The hierarchical visualization of a subset of the ontology's object properties Table 3: The ontology's object properties dictionary Property code Label Fr Label Ar Domain Range Inverse property CONTRE contre دﺿ INFRACTION CIBLE_INFRACTI ON VISE_PAR VISE_PAR est visé par ب فدهتسا CIBLE_INFRACTI ON INFRACTION CONTRE PUNI_DE est puni de est réprimé par ب بقﺎعي ب هيلع بقﺎعي INFRACTION CONDAMNATION REPRIME REPRIME réprime est édicté pour est prononcé pour بقﺎعي ل ررقﻣ هب مكحي ل CONDAMNATION INFRACTION PUNI_DE EDICTEE_PAR est édicté par est établi par نﻣ ررقﻣ ﻞبق CONDAMNATION ENTITE_JURIDIQ UE PRONONCE PRONONCE prononce édicte ordonne prescrit يضقي ىلع صني مكحي ددحي ENTITE_JURIDIQ UE CONDAMNATION EDICTEE_PAR APPLIQUEE_A est appliqué à ىلع ﻖبﻄﺗ CONDAMNATION AGENT CONDAMNEE_A CONDAMNEE_ A est condamné à est soumis à ب بقﺎعي AGENT CONDAMNATION APPLIQUEE_A COMMET commet réalise بكﺗري AGENT INFRACTION COMMISE_PAR COMMISE_PAR est commise par ﺎهبكﺗري INFRACTION AGENT COMMET SEXECUTE_DA NS s'exécute dans ﻞخاد ذفنﺗ CONDAMNATION LIEU_CONDAMN ATION OU_SEXECUTE OU_SEXECUTE où s'exécute ذفنﺗ نيا LIEU_CONDAMN ATION CONDAMNATION SEXECUTE_DAN S CAUSER_ARRE T cause l’arrêt de arrête فقوي ءﺎضقنا يف ببستي CAUSE_ARRET_C ONDAMNATION CONDAMNATION EST_ARRETE EST_ARRETE est arrêté par متيب هفﺎقيإ CONDAMNATION CAUSE_ARRET_C ONDAMNATION CAUSER_ARRET
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4345 3.4 Conceptualize and refine the ontology This step involves conceptualizing the knowledge acquired from informal and unstructured knowledge sources by organizing and structuring it into a hierarchical taxonomy. Before proceeding with conceptualization, dictionaries of specific concepts are created, similar to the dictionary of core concepts. For each core concept, a dictionary of specific concepts is created to document information about the specific concepts derived from the core concept. The information includes the code of the specific concept, the code of the parent concept from which the specific concept directly derives, and a label for each language targeted by the ontology (in this case, French and Arabic). Additional attributes such as concept descriptions may also be added if available. For instance, for the core concept "condamnation" (sentence), a dictionary of specific concepts is created to record information about the specific concepts derived from this core concept. I added an Excel sheet for each dictionary of specific concepts to the ontology workbook. For example, for the dictionary of specific concepts for the core concept "condamnation," I created an Excel sheet named "CONDAMNATIONS." During the phase of extracting specific concepts and organizing them hierarchically, another reading and analysis of the penal code was conducted to study the core concepts in greater detail and extract the specific concepts for each core concept, along with their hierarchical organization. Throughout the analysis of the penal code, terms, their associated concepts, and their hierarchical positions within the ontology framework were identified. Concepts were organized into a hierarchical taxonomy by asking whether being an instance of one class would necessarily make the object an instance of another class. In other words, if class A is a superclass of class B (B is a subclass of A), then every instance of B is also an instance of A. For example: The statement "Les peines et mesures de sûreté édictées au présent code sont applicables aux majeurs" [The penalties and security measures prescribed in this code apply to adults] identifies two types of "condamnations" [sentences]: "les peines" [penalties] and "les mesures de sûreté" [security measures], which are subclasses (subClassOf) of the class "condamnation" [sentence]. The statement "Les peines sont principales ou accessoires" [Penalties are either principal or accessory] identifies two types of "peines" [penalties] : "Les peines principales" [principal penalties] and "Les peines accessoires" [accessory penalties], which are subclasses of the class "peine" [penalty]. The statement "Les infractions sont qualifiées crime, délit correctionnel, délit de police ou contravention" [Offenses are categorized as crimes, correctional offenses, police offenses, or infractions] identifies four types of "infractions" [offenses]: "crimes" [crimes], "délits correctionnels" [correctional offenses], "délits de police" [police offenses], and "contraventions" [infractions]. It is important to note that all subclasses of a class inherit the object and data properties of the superclass. The conceptualization and refinement of the ontology follow a hybrid development process that combines both top-down and bottom-up approaches, explored iteratively as needed. The process begins with a top-down approach, aiming to detail the hierarchy by progressively specializing core concepts into more specific ones. As the hierarchy evolves, it may shift to a bottom-up approach, grouping concepts with common features into more general concepts. For example, I grouped the concepts "délit correctionnel" [correctional offense] and "délit de police" [police offense] into a more general concept called "délit" [misdemeanor], which is then directly positioned as a subclass of the class "infraction" [offense]. This class is further specialized into three types of "infractions" [offenses]: "crime" [crime], "délit" [misdemeanor], and "contravention" [infraction]. The class "délit" [misdemeanor] itself is further specialized into two subclasses: "délit correctionnel" [correctional offense] and "délit de police" [police offense]. Indeed, the conceptualization phase resembles assembling a puzzle from the pieces provided during knowledge acquisition, which is why much of the knowledge acquisition takes place during conceptualization. Table 4 shows an excerpt from the dictionary of specific concepts for the core concept “condemnation” [sentence]. It is preferable to progressively integrate specific concepts into the ontology skeleton using Protégé, which provides a clear visualization of the hierarchy.
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4346 Figure 15 shows the visualization of the hierarchy of specific concepts for the core concept "condamnation" [sentence]. During the study aimed at refining the ontology concepts, relationships between concepts are also refined if new properties emerge. For object properties, the same object properties dictionary is used. For data properties, a separate data properties dictionary is created similarly to provide information about this type of property. The information includes the property code, a label for each language targeted by the ontology (in this case, French and Arabic), the domain, the value type, cardinality, and so on. I added an Excel sheet to the ontology workbook for the data properties dictionary, which I named "DATA_PROPERTIES." Figure 15: The Visualization Of The Hierarchy Of Specific Concepts For The Core Concept "Condamnation" [Sentence] Regarding agents, they can be natural persons, legal entities, or groups of individuals. Figure 16 shows the taxonomy of agents, which represent entities within society that must adhere to a code of conduct and may be responsible for offenses. Table 4: The Dictionary Of Specific Concepts For The Core Concept Sentence Code Super-classe Label Fr Label Ar Label En CONDAMNATION condamnation ةنادإ conviction PEINE CONDAMNATION P eine ةبوقع sentence MESURE_SURETE CONDAMNATION mesure de sûreté يئﺎقو ريبدﺗ security measure CONDAMNATION_ACCESSOIRE CONDAMNATION condamnation accessoire ةيفﺎﺿإ ةنادإ ancillary conviction PEINE_PRINCIPALE PEINE peine principale ةيلصأ ةبوقع principal sentence PEINE_ACCESSOIRE PEINE peine accessoire ةيفﺎﺿإ ةبوقع ancillary sentence PEINE_CRIMINELLE PEINE_PRINCIPALE peine criminelle principale ةيئﺎنج ةبوقع ةيلصأ principal criminal sentence PEINE_DELICTUELLE PEINE_PRINCIPALE peine délictuelle principale ةيحنج ةبوقع ةيلصأ principal misdemeanor sentence PEINE_CONTRAVENTIONNELLE PEINE_PRINCIPALE peine contraventionnelle ةيﻄبﺿ ةبوقع ةيلصأ principal infraction sentence MORT PEINE_CRIMINELLE mort مادعﻹا death RECLUSION PEINE_CRIMINELLE réclusion نجسلا imprisonment RECLUSION_PERPETUELLE RECLUSION réclusion perpétuelle دبؤملا نجسلا life imprisonment RECLUSION_TEMPS RECLUSION réclusion à temps تقؤملا نجسلا fixed-term imprisonment
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4347 Figure 16: The Taxonomy Of Agents The characteristics of agents that impact convictions are represented by properties. When a property has only a few possible values, it is useful to create an enumerated class (enumeration) to represent these values and explicitly define the class by listing each possible value, which allows the creation of an enumeration. The possible values of an enumerated class are defined as individuals of that class. The following properties are included: "Gender" property: represents the gender of the individual and determines whether the person is male or female. Its value is one of the values from the "gender" enumeration {male, female}; "Age" property: represents the age of the individual and determines whether they are of legal age, or a minor under 12 years old or between 12 and 18 years old. Its value is an integer; "Mental state" property: represents the mental state of the individual and determines whether the person is responsible, irresponsible, or partially irresponsible. Its value is one of the values from the "mental state" enumeration {mental impairment, capable of discernment, sane, mental disorder}; "Pregnant" property: represents the number of months the woman is pregnant. Its value is an integer; "Postpartum" property: represents the number of days since the woman gave birth. Its value is an integer; "Nationality" property: represents the nationality of the individual and determines whether they are national or not. Its value is one of the values from the "nationality" enumeration {national, binational, foreigner, stateless}; A dictionary of enumerations must be created to fill in the information about the enumerations. I have added an Excel sheet to the ontology workbook for the enumeration dictionary, which I named "ENUMS." Table 5 shows an excerpt from the enumeration dictionary. The enumerated classes are in bold, and the rest are the possible values of the enumerations (individuals). It is important to note that axioms and rules in ontologies are two complementary concepts used to structure and enrich knowledge bases. Axioms, based on Description Logics (DL), are Table 5: Excerpt From The Enumeration Dictionary Code Type Label Fr Label Ar Label En NATIONALITE ENUM nationalité ةيسنجلا nationality NATIONAL NATIONALITE national ينطو national BINATIONAL NATIONALITE binational ةيسنجلا يئﺎنث binational ETRANGER NATIONALITE étranger يبنجأ foreigner APATRIDE NATIONALITE apatride ةيسنجلا ميدع stateless GENRE ENUM genre سنجلا gender HOMME GENRE homme ﻞجر man FEMME GENRE femme ةأرﻣ woman ETAT_MENTAL ENUM état mental ةيلقعلا ةلاحلا mental state ESPRIT_SAIN ETAT_MENTAL sain d'esprit ﻞقعلا ميلس sane CAPABLE_DISCERNEMENT ETAT_MENTAL capable de discernement زييمتلا ىلع ردﺎق capable of discernment TROUBLE_MENTAL ETAT_MENTAL trouble mental / trouble des facultés mentales يلقع ﻞلخ / اوقلا يف ﻞلخ ةيلقعلا mental disorder / impairment of mental faculties AFAIBLISSEMENT_MENTAL ETAT_MENTAL affaiblissement des facultés mentales اوقلا يف فعﺿ ةيلقعلا weakening of mental faculties
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4348 formal logical statements that define relationships, concepts, and constraints in an ontology, while rules, based on Conditional Logics, express conditional relationships or logical actions that are used to infer new knowledge or capture behaviors. Similarly, two other dictionaries need to be created, one for axioms and another for rules. Therefore, I have added an Excel sheet to the ontology workbook for the axiom dictionary, which I named "AXIOMS," and another sheet for the rule dictionary, which I named "RULES." The enumerations and a set of concepts have been defined with axioms. Table 6 shows an excerpt from the axiom dictionary, where the axioms representing the agents are defined. Regarding legal entities, which are supposed to represent the law, they can be legal organizations, professional legal persons, and social legal persons. Figure 17 shows the taxonomy of legal entities. 3.5 Identify and create individuals This step involves identifying and creating instances of the classes, which are called individuals. This can always be done through the analysis of knowledge sources and their textual structures. Instances are the final specification or the most basic form of the classes in the ontology. Just like for specific concepts, we begin by building dictionaries for individuals, which are somewhat similar to the dictionaries for specific concepts. For each core concept, we create a dictionary of individuals that represent instances of the specific concepts derived from the core concept in question. The individual dictionary allows us to fill in information about the individuals, namely: the individual code, which helps identify the Table 6: Excerpt from the axiom dictionary Axiom code Concepts Description En Expression AXIOM_GENRE GENRE The possible values of the "gender" enumerated class are: male or female. {homme, femme} AXIOM_ETAT_MENT AL ETAT_MENTA L The possible values of the "mental state" enumerated class are: mental impairment, capable of discernment, sane, mental disorder. {'affaiblissement des facultés mentales’, 'capable de discernement’, 'sain d\'esprit' , 'trouble mental'} AXIOM_NATIONALI TE NATIONALITE The possible values of the "nationality" enumerated class are: national, binational, foreigner, stateless. {national, binational, étranger, apatride} AXIOM_FEMME FEMME Women are individuals whose gender value is female. A_GENRE value FEMME AXIOM_HOMME HOMME Men are individuals whose gender value is male. A_GENRE value HOMME AXIOM_MINEUR MINEUR Minors are individuals whose age is under 18. AGE some xsd:integer[< 18] AXIOM_MAJEUR MAJEUR Adults are individuals whose age is 18 or older. AGE some xsd:integer[>=18] AXIOM_MINEUR_IN F_12 MINEUR_INF_ 12 Minors under 12 are individuals whose age is under 12. AGE some xsd:integer[<12] AXIOM_MINEUR_12_ 18 MINEUR_12_18 Minors between 12 and 18 are individuals whose age is between 12 and 18, exclusive. (AGE some xsd:integer[>=12]) and (AGE some xsd:integer[>18]) AXIOM_IRRESPONS ABLE IRRESPONSAB LE Irresponsible persons are those with mental disorders and minors under 12 years old. ((A_ETAT_MENTAL value TROUBLE_MENTAL) or (AGE some xsd:integer[<12] )) AXIOM_IRRESPONS ABLE_PARTIEL IRRESPONSAB LE_PARTIEL Partially irresponsible persons are those with mental impairment and minors between 12 and 18 years old. ((AGE some xsd:integer[>=12]) and (AGE some xsd:integer[<18])) or (A_ETAT_MENTAL value AFAIBLISSEMENT_MENTAL) AXIOM_RESPONSAB LE RESPONSABL E Responsible persons are those who are sane and capable of discernment, and who are adults. ((A_ETAT_MENTAL value CAPABLE_DISCERNEMENT) or (A_ETAT_MENTAL value ESPRIT_SAIN)) and (AGE some xsd:integer[>=18])
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4349 individual regardless of language; the code of the concept from which the individual is instantiated; a label that defines its linguistic term in each language targeted by the ontology (here French and Arabic); a comment (description) in each language if necessary; and finally, the properties that link the individual to other entities and their values. Figure 17: The Taxonomy Of Legal Entities For example, for the core concept "infraction" [offense] we create a dictionary of individuals where we fill in the information for the instances of the specific concepts derived from this core concept "infraction" [offense]. I used an Excel sheet for each individual dictionary in the same ontology workbook. For example, for the dictionary of individuals for the specific concepts of the core concept "infraction" [offense], I created an Excel sheet that I named "INFRACTIONS_INSTANCES." In the case of the penal code, we are dealing with individuals whose property value depends on the value of another. For example, in the case of the offense "attentat" [assault], we have: "l’attentat est puni de la réclusion perpétuelle s’il est contre le régime" [The assault is punishable by life imprisonment if it is against the regime] which gives the following two triples: ● ("attentat", "contre", "régime") [("assault", "against", "regime")] ● ("attentat", "puni de", "réclusion perpétuelle") [("assault", "punished by", "life imprisonment")] "l’attentat est puni de mort s’il est contre la personne du roi avec résultats" [The assault is punishable by death if it is against the king's person with results], which gives the following three triples: ● ("attentat", "contre la personne de", "roi") [("assault","against the person of", "king")] ● ("attentat", "résultat", "oui") [("assault", "result", "yes")] ● ("attentat", "puni de", "mort") [("assault", "punished by", "death")] "l’attentat est puni de la réclusion perpétuelle s’il est contre la personne du roi sans résultats" [The assault is punishable by life imprisonment if it is against the king's person without results], which gives the following three triples: ● ("attentat", "contre la personne de", "roi") [("assault","against the person of", "king")] ● ("attentat", "résultat", "non") [("assault", "result", "no")] ● ("attentat", "puni de", "réclusion perpétuelle") [("assault", "punished by", "life imprisonment")] "l’attentat est puni de la réclusion perpétuelle s’il est contre la personne de l’héritier du trône avec résultats" [The assault is punishable by life imprisonment if it is against the person of the heir to the throne with results], which gives the following three triples: ● ("attentat", "contre la personne de", "héritier du trône") [("assault", "against the person of", "heir to the throne")] ● ("attentat", "résultat", "oui") [("assault", "result", "yes")] ● ("attentat", "puni de", "réclusion perpétuelle") [("assault", "punished by", "life imprisonment")] "l’attentat est puni de la réclusion à temps de 20 à 30 ans s’il est contre la personne de l’héritier du trône sans résultats" [The assault is punishable by a prison sentence of 20 to 30 years if it is against the person of the heir to the throne without results], which gives the following three triples: ● ("attentat", "contre la personne de", "héritier du trône") [("assault", "against the person of", "heir to the throne")] ● ("attentat", "résultat", "non") [("assault", "result", "no")] ● ("attentat", "puni de", "réclusion à temps de 20 à 30 ans") [("assault", "punished by", "prison sentence of 20 to 30 years")]
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4350 Thanks to the independence of the concepts in the language ontology, we can represent these different cases of assault with different individuals and unique codes, even if they share the same linguistic term, which is represented by labels for each language. Thus, I created an individual for each case with a unique code, a label for each language, and a comment that helps recognize the individual, as the label is the same, which is "attentat" in French and "ءادتعﻻا" in Arabic. We then define the properties for each individual and therefore for each case. Table 7 shows an excerpt from the dictionary of individuals for the specific concepts of the core concept "infraction" [offense] particularly the individuals that represent the cases of the offense "attentat" [assault]. The labels and comments in Arabic are not included in this table to keep its content concise. It is important to keep in mind that it is sufficient to assign the value of one property among two inverse properties. The deduction of the second property will be made automatically by the reasoner. For example, if we assign the value "death" to the property "is punished by" for the individual "assault," then we do not need to assign the value "assault" to the property "punishes" for the individual "death," as it will be automatically inferred by the reasoner, since the two properties "is punished by" and "punishes" are defined as inverse properties. Therefore, if we decide to specify the values of the property "is punished by" for the offenses, we do not need to specify the values of the property "punishes" for the convictions. Table 7: The Dictionary Of Individuals For The Specific Concepts Of The Core Concept "Infraction" [Offense] Instance code Type Label En Comment En Property Value ATTENTAT_VIE _ROI ATTENTA T_CRIMIN ELLE assault Assault on the life of the king CONTRE_VIE PUNI_DE ROI MORT ATTENTAT_PER SONNE_ROI ATTENTA T_CRIMIN ELLE assault Assault on the person of the king CONTRE_PERSONNE RESULTAT PUNI_DE ROI OUI MORT ATTENTAT_PER SONNE_ROI_EC HEC ATTENTA T_CRIMIN ELLE assault Assault on the person of the king without result CONTRE_PERSONNE RESULTAT PUNI_DE ROI NON RECLUSION_PERPETU ELLE ATTENTAT_VIE _HERITIER ATTENTA T_CRIMIN ELLE assault Assault on the life of the heir to the throne CONTRE_VIE PUNI_DE HERITIER_TRONE MORT ATTENTAT_PER SONNE_HERITI ER ATTENTA T_CRIMIN ELLE assault Assault on the person of the heir to the throne CONTRE_PERSONNE RESULTAT PUNI_DE HERITIER_TRONE OUI RECLUSION_PERPETU ELLE ATTENTAT_PER SONNE_HERITI ER_ECHEC ATTENTA T_CRIMIN ELLE assault Assault on the person of the heir to the throne without result CONTRE_PERSONNE RESULTAT PUNI_DE HERITIER_TRONE NON RECLUSION_TEMPS_2 0_30 ATTENTAT_VIE _ROI_FAMILLE ATTENTA T_CRIMIN ELLE assault Assault on the life of a member of the royal family CONTRE_VIE PUNI_DE ROI_FAMILLE_MEMB RE MORT ATTENTAT_PER SONNE_ROI_FA MILLE ATTENTA T_CRIMIN ELLE assault Assault on the person of a member of the royal family CONTRE_PERSONNE RESULTAT PUNI_DE ROI_FAMILLE_MEMB RE OUI RECLUSION_TEMPS_5 _20 ATTENTAT_PER SONNE_ROI_FA MILLE_ECHEC ATTENTA T_DELICT UELLE assault Assault on the person of a member of the royal family without result CONTRE_PERSONNE RESULTAT PUNI_DE ROI_FAMILLE_MEMB RE NON EMPRISONNEMENT_2 _5 ATTENTAT_RE GIME ATTENTA T_CRIMIN ELLE assault Assault on the regime CONTRE PUNI_DE REGIME RECLUSION_PERPETU ELLE
v Journal of Theoretical and Applied Information Technology 31st May 2025. Vol.103. No.10 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4351 We can revisit previous steps and refine the concepts and properties. For example, for the offense "assault," we have cases that are classified as crimes and are punished by criminal penalties, and others classified as misdemeanors and are punished by misdemeanor penalties. As a result, I created two new concepts: “attentat criminal” [criminal assault] as a subclass of the concept “crime” [crime], and “attentat délictuel” [misdemeanor assault] as a subclass of the concept “délit” [misdemeanor]. The individuals "assault" are instances of either "criminal assault" or "misdemeanor assault." Once the editing of the individual dictionaries is complete, we proceed to integrate them into the ontology with Protégé. Figure 18 shows an excerpt from the individuals of the type “correctional offense against state security.” The display for this excerpt uses the codes (IRIs) of the individuals and not the labels, which may appear similar for some individuals, as explained earlier. Figure 18: Excerpt Of The Individuals From The Ontology 3.6 Verify the consistency of the ontology and simulate deductive reasoning The main advantage of using Protégé is the ability to check whether the created ontology contains contradictory definitions, thanks to the inference engine, also called the ontology reasoner. This engine allows for verifying the consistency of the ontology and performing reasoning based on the ontology's knowledge to infer new facts. It can identify various types of ontological relationships, such as transitive, symmetric, inverse, and functional properties, and use them to add new facts. Therefore, it is important to apply an ontology reasoner on both the ontology and RDF data. This allows for verifying whether all statements and definitions in the ontology are mutually consistent, such as checking that an element is not simultaneously an instance of two classes in a disjoint decomposition. The reasoner also helps deduce additional information. For example, if two properties are inverses and the domain and range of one property are defined, the reasoner knows that the domain of one is the range of the other, and vice versa. This allows the reasoner to infer the domain and range of the inverse property without the user having to define them manually for both properties. For instance, by defining the property "is punished by" with "offense" as the domain and "conviction" as the range, and the property "punishes" as the inverse of "is punished by," the reasoner infers that the domain of "punishes" is "conviction" and its range is "offense." Also, if two properties are inverses, the user only needs to assert the value of one of the properties, and the inverse value will be automatically inferred by the reasoner. For example, when specifying the triple ("terrorist attack", "is punished by", "death") and knowing that "punishes" is the inverse of "is punished by," the reasoner infers the triple ("death", "punishes", "terrorist attack"). This feature significantly reduces the effort required to populate an ontology, especially with individual data, and that's why running the reasoner frequently can save time and help maintain a valid model. Any information provided by the reasoner instead of the user is highlighted in yellow. For my part, I used the HermiT reasoner, which must be selected, run, and synchronized through the Reasoner menu in Protégé. To ensure everything is consistent, there should be no errors, otherwise, they need to be corrected. It’s important to keep in mind that SPARQL ignores information inferred by the reasoner. However, the information inferred by the reasoner can be saved and reloaded so that it is treated the same as user-defined data. This is the solution to use to ensure that the inferred information is not ignored by SPARQL. This solution is described in the article [68]. 3.7 Validate and evaluate the ontology The involvement of experts, whether through their opinions, websites, courses, or videos, helps clarify data that is not well-defined in the knowledge sources. For example, the penal code does not provide information on the Moroccan judicial organization, which was defined and clarified through legal professionals. Protégé also makes it feasible and easy to communicate and exchange with legal professionals and domain experts who are not necessarily ontologists or developers, thanks to its various hierarchical and graphical visualizations that make the ontology