Abstract
Building legal domain ontologies is a prominent challenge in the ontology engineering community. The ontology builders confront issues such as the complexity of the legal domain, the difficulty of applying existing ontology engineering approaches, and the intention of developing legal models faithful to realities. In this paper, we discuss constructing a well-founded legal domain ontology, named CargO-S, for the traceability of goods in logistic sea corridors. For building CargO-S, a pattern-oriented approach is applied, supported by ontology-driven conceptual modeling, ontology layering, and ontology reuse processes. CargO-S is grounded in the unified foundational ontology UFO by using the ontology-driven conceptual modeling language OntoUML. Besides, ontology layering is proposed to simplify the development process by dividing CargO-S into three layers located at different granularity levels: upper, core, and domain. For building the upper and core layers, conceptual ontology patterns are reused from the foundational ontology UFO and the legal core ontology UFO-L. These patterns are applied, either by extension or analogy with legal rules, for building the domain layer. CargO-S is then validated by implementing the ontology as OWL and SWRL rules. Finally, the performance and the semantic accuracy of CargO-S are evaluated using a dual evaluation approach.
Keywords
Introduction and motivation
Legal ontologies are generalized conceptual models of specific parts of the legal domain (Mommers, 2003). They provide stable foundations for knowledge representation in this domain (Mommers, 2003). They have been developed and used for legal knowledge management and as knowledge bases in legal knowledge systems (Benjamins et al., 2005). Legal ontologies have been useful in several applications to support semantic indexing, information retrieval, semantic integration, reasoning, and problem-solving (Breuker et al., 2004; Wyner, 2009; Ashley, 2009; Wyner and Hoekstra, 2010). Legal domain ontologies differ from ontologies in other fields of practice, like medicine or engineering. For Breuker et al. (2004), the law is aimed at social activities, which are generally described in common sense terms. Thus, legal ontologies have to cover a wide range of common-sense concepts that are part of physical, abstract, mental, and social worlds (Benjamins et al., 2005). Besides social activities, legal domains share complex and varied notions of norm and responsibility representing the legal core notions (Benjamins et al., 2005). Examples of legal core notions are norm, contract, agent, role, normative position (e.g., duties, rights, etc.), responsibility, provision, sanction, and legal document. The combination of world and normative knowledge makes up the resource for reasoning in legal domains (Breuker et al., 2004). In the ontology engineering domain, the legal knowledge complexity causes some difficulties for building “factual” legal domain ontologies. Legal conceptual knowledge is closely related to the use of language (utilized in legal documents) that is too complicated (Francesconi and Tiscornia, 2008). Legal rules and standards are written, for the most part, in ordinary language containing ambiguities (Dove, 1996). Specifically, we cite the incomplete definition of many legal concepts of the law that Gardner (1987) originally addressed. Therefore, extracting semantic knowledge from juridical textual resources such as regulations and codes is a time-consuming and challenging task.
In CLASSE21
To achieve our goal, reusing foundational and/or core ontologies is recognized as a promising approach (Falbo et al., 2013a). Foundational ontologies such as UFO (Guizzardi, 2005), and DOLCE (Borgo and Masolo, 2010), define a range of top-level domain-independent ontological categories that form a general foundation for more elaborated domain-specific ontologies. Core ontologies such as UFO-L (Griffo, 2018), and LKIF-CORE (Hoekstra et al., 2009) in the legal domain provide a precise definition of structural knowledge in a specific field that spans across different domain applications. Ontology reuse can also be accomplished using modeling solutions such as ontology patterns (Falbo, 2014). Ontology Patterns (OPs), which favor reuse of encoded experiences and good practices, can help to solve recurrent ontology development problems (Presutti et al., 2009). They describe particular recurring modeling problems that arise in specific ontology development contexts, and present well-proven solutions for the problems (Guizzardi, 2005; Falbo et al., 2013a). Conceptual OPs are small fragments of conceptual ontology models that address a specific modeling issue and can be directly reused by importing them into the ontology under development. These patterns are to be used during the ontology conceptual modeling activity. Conceptual OP can extract a fragment of either a foundational or a core reference ontology, which constitutes its background (Gangemi, 2005). Reference ontologies are a particular kind of conceptual model developed to make the best possible description of the domain in reality (Guizzardi, 2007). The implementation of these models as machine-readable ontologies are named operational ontologies (Falbo et al., 2013b). The reference ontologies provide the taxonomic and axiomatic context of the extracted patterns. Thus, the extracted conceptual ontology patterns inherit the axiomatization (and the related reasoning service) that existed in the reference ontologies (Gangemi, 2005). In the ontology engineering community, OPs have been addressed mainly in the works of Presutti et al. (2009); Gangemi and Presutti (2009); Blomqvist et al. (2009); Gangemi (2005). Recently, this approach has gained more attention, especially in Falbo et al. (2013a); Ruy et al. (2015, 2017), where its primary goal is to support the building of more consistent ontologies in a reuse-centered process.
The main contribution of this study is to develop and evaluate a well-founded legal domain ontology, named CargO-S, for representing the domain of carriage of goods by sea. For building CargO-S, a pattern-oriented approach is applied, supported by ontology-driven conceptual modeling, ontology layering, and ontology reuse processes. CargO-S is grounded in the unified foundational ontology UFO by applying the ontology-driven conceptual modeling language OntoUML. Besides, the structure of CargO-S is divided into three layers located at different granularity levels: upper, core, and domain. For building the upper and core layers, conceptual ontology patterns are reused from the foundational ontology UFO (Guizzardi, 2005) and the legal core ontology UFO-L (Griffo, 2018). These patterns are applied either by extension or analogy with the legal rules to build the domain layer. CargO-S is then validated by implementing the ontology model as OWL and SWRL rules. Finally, a dual evaluation approach is implemented to assess the performance and the semantic accuracy of CargO-S. The remainder of this article is organized as follows. Section 2 outlines UFO and UFO-L as this study’s background. The methodology of building CargO-S is presented in Section 3. Section 4 discusses the building process of CargO-S. In Section 5, the implementation of CargO-S is introduced. The evaluation of CargO-S is presented in Section 6. In Section 7, the related work is overviewed. Finally, Section 8 and Section 9 discuss and conclude this study respectively.
In this section, we outline the background of this work: the Unified Foundational Ontology (UFO) and the legal core ontology UFO-L.
The unified foundational ontology (UFO)
The Unified Foundational Ontology (Guizzardi, 2005) is a reference foundational ontology that employs results from formal ontology, cognitive psychology, linguistics, and philosophical logic. UFO makes a fundamental distinction between Individuals and Universals. Individuals are entities that exist in reality and obey a unique and determinate principle of identity, while Universals are abstract patterns of features that can be realized in several different individuals (Guizzardi, 2005). In UFO, two main kinds of Individuals are distinguished: Endurants and Perdurants. Endurants are wholly present whenever they are present, i.e., they do not have temporal parts (Guizzardi et al., 2016). They can be further specialized into Substantials (Objects) and Moments (Tropes) (Guizzardi and Wagner, 2010). Substantials are existentially-independent Endurants (e.g., a ship, a person). Moments, or Tropes, in contrast, are individuals that can only exist by inhering in other individuals (Guizzardi and Wagner, 2010). Two main types of Moments are distinguished in UFO: Intrinsic Moments and Relators. Intrinsic moments are moments that inhere in one individual. An example of an intrinsic moment is a Mode (e.g., intention, duty). Relators are moments that depend on two or more Endurants (e.g., a business contract). Perdurants (Events) are individuals composed of temporal parts and are existentially dependent on Endurants (Guizzardi, 2013). Examples of Perdurants are a war, a strike, etc. Thereby, UFO is composed of three main layers: UFO-A (Guizzardi et al., 2008b) (ontology of endurants), UFO-B (Guizzardi, 2013) (ontology of events), and UFO-C (Guizzardi et al., 2008b) (ontology of social entities). In Fig. 1, a fragment of UFO-C is depicted. UFO has been employed in the design of the ontologically well-founded conceptual modeling language OntoUML. OntoUML is proposed by Guizzardi (Guizzardi, 2005) based on the need for an ontology-based language that would provide the necessary semantics to construct conceptual models using concepts faithful to reality (Benevides et al., 2009). OntoUML uses the ontological constraints of UFO as modeling primitives and is specified above the UML2.0 meta-model (Guizzardi, 2005). Examples of some OntoUML’s modeling primitives are: kind, subkind, mode, relator etc. Over the years, OntoUML has been adopted by many research, industrial and government institutions worldwide (Guizzardi et al., 2015). This language has been successfully employed in several industrial projects in several domains such as Petroleum and Gas, News Information Management, E-Government and Telecommunication (Guerson et al., 2014). To build, evaluate, and implement OntoUML models, a model-based environment is needed, such as OLED2
OntoUML Lightweight Editor,

A fragment of UFO-C (adapted from Guizzardi et al., 2008b).
UFO-L (Griffo, 2018) is a legal core ontology that uses the domain-independent concepts, relations and properties existing in UFO to represent essential concepts of law based on Alexy’s theory of fundamental rights (Alexy, 2009). UFO-L defines a variety of basic legal core concepts, such as legal norm, legal agent, legal relator, legal moment, and legal normative description (Fig. 2). In UFO-L, legal roles, which are prescribed by legal norms, are assigned to agents and played within the scope of legal relations. These relations are represented based on Alexy’s theory and reified using legal relators, which are relational entities existentially dependent on legal roles (Griffo et al., 2016a,b, 2018). In UFO-L, different legal roles are defined, such as

Excerpt of UFO-L (adapted from Griffo et al., 2016b).



In UFO-L, various modeling patterns for the legal relators are defined (Griffo, 2018) (e.g.,
Which legal roles are involved in the legal relationship?
What are the legal moments that make up the legal relationship?
Who are the holders of each legal moment?
On whom is each legal moment externally dependent?
What is the event that grounds the legal relationship?
Is there a legal rule that defines the legal relationship?
In our work, we have selected UFO and UFO-L as foundations for ontology reuse and grounding processes. Concerning UFO, its is considered as a foundational ontology that comprises a rich theory of relations and complex relational properties that are absent in other foundational ontologies (Guizzardi, 2006; Guizzardi et al., 2015). UFO has been successfully applied in a large number of domains ranging from natural science domains such as Petroleum and Gas to social domains such as organizations, services, and software (Falbo et al., 2010). Besides, the availability of the conceptual modeling language OntoUML that is founded on this ontology which permits the building of ontologies by reusing the modeling primitives of UFO as generic concepts (e.g. kind, subkind, relator, role, role mixin) (Griffo et al., 2016b). The ontologist can represent the categories of a given domain using these primitives without the need to rebuild them (Griffo et al., 2016b).
UFO-L is a legal core ontology developed based on UFO to represent Alexy’s theory of fundamental rights (Alexy, 2009). Alexy’s theory, which classifies norms as rules and principles (Griffo et al., 2016b, 2018), is based on an analysis of constitutional rights as principles, which are considered fundamentally different from rules (Klatt, 2012). Norms are classified as deontological norms and axiological norms. Deontological norms are, in turn, classified as rules and principles (Griffo et al., 2016b). Alexy’s theory, in contrast to other approaches in the literature such as Kelsen’s theory (Kelsen, 2005), include modern concepts of Law introduced by the explicit countenance of a social reality (Griffo et al., 2016b, 2018). On the other side, Kelsen’s theory sees Law as a set of norms (Raz, 1974). Kelsen assumes that the existence of basic norms is necessary to explain the unity and normativity of legal systems. Norms exist only if authorized and entailed by other norms forming chains of validity. Besides the classification of norms, Alexy’s theory considers legal positions which are defined as situations in which a subject, in a legal relation, has a right against other subject (Griffo et al., 2016b). Legal positions divide rights in rights to something, liberties, and competences (Griffo et al., 2016b; Griffo, 2018; Griffo et al., 2018).
Methodology
Inspired by SABiO (Falbo, 2014), a methodology for building well-founded domain ontologies, we have defined six phases for building CargO-S: (1) ontology specification, (2) ontology requirements, (3) architectural design, (4) conceptualization, (5) implementation, and (6) evaluation. The development process of CargO-S is supported by ontology layering, ontology reuse, and ontology-driven conceptual modeling processes. This approach is performed under the supervision of the domain experts.3
The ontology specification designates the scope and purpose of the intended ontology. CargO-S aims to represent the international maritime law, specifically Hague-Visby (Hague-Visby, 1968) and Hamburg (Hamburg, 1978) conventions. This study concerns Hague-Visby Rules composed of legal norms that govern the rights, duties, liabilities, and responsibilities of shippers and carriers of marine cargo. For instance, Fig. 6 depicts Article I that defines the basic concepts of the carriage of goods by sea (Carrier, Contract of carriage, Goods, Ship, and Carriage of Goods) and Article IV that discusses the liability of the carrier and the shipper in case of loss or damage of goods.

Excerpt of Hague-Visby Rules.
Concerning the purpose, Cargo-S will be used as a knowledge base in a system intended for the traceability of goods in logistic sea corridors. Traceability is a procedure that is increasingly demanded in the logistics area.4
www.stocklogistic.com, last visited July 31, 2020.
Querying data: requesting information related to the transportation of goods, such as the origin and destination of goods, the contracts established between the legal agents, and the events that occurred during transportation.
Decision support: specifying the rights, duties, liabilities, and responsibilities of the different legal agents involved in the transportation of goods. For instance, in case of loss or damage of goods while carriage, there is a need to detect the liable agent (e.g., carrier, shipper, etc.) who will be punishable by indemnities. In this context, generally, a claimant of damage or loss of goods could be the consignee, the shipper, or the carrier of the goods (Hague-Visby Rules (Hague-Visby, 1968), Hamburg Rules (Hamburg, 1978)). Thus, the relations of liabilities could be maintained using different scenarios depending on whether it is explicitly or implicitly defined in the legal rules. For example, Article III (5), defines the liability’s relation in case of inaccuracies explicitly using the verb “indemnify”. Thereby, a claim of the carrier, which is considered a right holder, is maintained against the shipper, which is seen as a duty holder. Besides, this legal rule also limits the responsibility and liability of the carrier under the contract of carriage to any person other than the shipper.
Article III. (5) […] the shipper shall indemnify the carrier against all loss, damages and expenses arising or resulting from inaccuracies […] The right of the carrier to such indemnity shall in no way limit his responsibility and liability under the contract of carriage to any person other than the shipper.
However, in legal rules such as Article IV (1), the claimant is not defined explicitly in case of unseaworthiness. In this case, we refer to Article I specifically (a) and (b) that defines the contract of carriage of goods, which is covered by a bill of lading, to regulate the relations between the carrier and the shipper. Thereby, any infringement or violation of obligations will expose a liability’s relation between these two agents.
Article IV. (1) Neither the carrier nor the ship shall be liable for loss or damage arising from unseaworthiness […]
Article I. (a) ‘Carrier’ […] who enters into a contract of carriage with a shipper […]
Article I. (b) […] bill of lading relates to the carriage of goods by sea […] such bill of lading regulates the relations between a carrier and a holder of the same.
The liability of the carrier and the shipper towards the consignee is out of this work’s scope because the latter is not defined explicitly in Hague-Visby Rules, neither his rights, duties, or responsibilities.
In this section, we discuss the main ontological requirements that CargO-S should satisfy. As in software engineering domain, ontology requirements are divided into functional and non-functional (Mylopoulos et al., 2007). The functional requirements, which can also be seen as content-specific requirements, define what needs to be expressed by the ontology model. Meanwhile, the non-functional requirements specify how an ontology needs to be designed in order to be applicable. Concerning the functional requirements, they are defined based on the Hague-Visby Rules. In the following, the main functional requirements of CargO-S are introduced:
FR1 – To represent the main agents and objects as well as their hierarchical structure: the ontology should represent the different kinds of agents (e.g., carrier, shipper) and objects (e.g., goods, vessel, legal document), and their mereological structure (e.g., carrier is a legal agent, vessel is a physical object).
FR2 – To describe the legal events and their mereological and causal structure: in the ontology, a description of legally defined events (e.g., carriage of goods, loss of goods) and their mereological and causal structure is required. The ontology model should distinguish between the complex events and the atomic events. Besides, the causal events, or situations, that cause other events should also be characterized (e.g., the fire on the vessel caused the damage of goods).
FR3 – To define the legal relationships and their hierarchical and mereological structure explicitly: in CargO-S, it is mandatory to represent the legal relationships such as contract of carriage of goods by sea, and their hierarchical and mereological structure (e.g., contract of carriage of goods by sea is a right-duty legal relationship).
FR4 – To state precisely the participation of legal agents and legal objects in the legal relationships: the ontology should be able to represent how agents and objects are involved in legal relationships (e.g., the participation of the carrier and the shipper in the contract of carriage of goods).
FR5 – To define the legal moments and their mereological structure: by establishing the legal relationships, such as the contract of carriage of goods, different legal moments are defined, such as right, duty, responsibility, etc. In the ontology model, these legal moments should be represented as well as their mereological structure.
FR6 – To designate the legal moments that make up the legal relationships in which the agents are involved: the ontology must describe the legal moments (e.g., right to carry and duty to carry) that compose the legal relationships (e.g., contract of carriage of goods) in which the legal agents have participated (e.g., carrier and shipper).
In the other hand, the non-functional requirements comprise four main aspects:
NFR1 – The modularity of the ontology structure to decrease the complexity of the building process and encourage its reusability. NFR2 – The ontology model should distinguish between the reference and the operational versions of CargO-S. NFR3 – The ontology model needs to provide a clear separation of the structural knowledge from the domain knowledge. NFR4 – The ontology should be shareable and applicable for building (semi-) automated applications. NFR5 – The extensibility of the ontology to include future aspects.
Architectural design
In this phase, we present the architectural design of CargO-S which aims to fulfill the non-functional requirement NFR1. To simplify the building process of CargO-S, we propose applying ontology layering that divides the ontology structure into three layers located at different granularity levels (Fig. 7): upper, core, and domain. The upper layer, which is located at the most high level, contains abstract, or domain-independent, categories (e.g.,
Conceptualization
The conceptualization phase permits the building of the reference model of CargO-S in order to fulfill the non-functional requirement NFR2. Thus, a pattern-oriented top-down approach is applied, supported by ontology-driven conceptual modeling and ontology reuse processes. The building process starts by building the upper and core layers independently. Furthermore, the domain layer is developed based on the upper and core layers’ content and structure.
The ontology-driven conceptual modeling (ODCM) process is described as the application of ontological analysis based on foundational ontologies to improve the theory and practice of conceptual modeling (Guizzardi et al., 2008a). In our work, ODCM is applied, aiming to ground the ontology model of CargO-S in the foundational ontology UFO (El Ghosh and Abdulrab, 2019). Thereby, the concepts and relations of each layer are analyzed and represented using the modeling primitives of UFO in OntoUML (e.g.,

The layered structure of CargO-S.
The ontology reuse process aims to simplify the building process by selecting and reusing conceptual ontology patterns (COPs) from UFO and UFO-L. To fulfill the non-functional requirement NFR3, we have defined two main perspectives to specify the intended patterns: content perspective and structure perspective.
For the content perspective: domain-independent ontology patterns (DIOP) are extracted from UFO for constructing the upper layer and domain-dependent ontology patterns (DDOP) are extracted from UFO-L for building the core layer. For the structure perspective, two main types of ontology patterns are specified: recognition and template. The recognition pattern represents a recurring set of concepts and relations (Gangemi and Presutti, 2009). Meanwhile, the template pattern represents a common perspective on how to solve a specific problem (Gangemi, 2007). This pattern, which facilitates the modelling of legal norms, could be reused in many cases representing some notion of best practices to solve modeling problems (Gangemi, 2007).
In the following, the main activities of the conceptualization process are introduced:
Selection and reuse of conceptual ontology patterns: the derivation of the conceptual ontology patterns is performed for each layer independently. Thus, a fragmentation process is performed to extract sub-ontologies as ontology modules from UFO and UFO-L for building the upper and core layers, respectively. The selection process is guided mainly by a list of Competency Questions (CQs) to define the scope of patterns based on the functional requirements. The conceptual ontology patterns are represented and verified syntactically within OLED to assess if they are built correctly. The verification is performed automatically according to the formal constraints defined in UFO.
Composition of conceptual ontology patterns: the extracted conceptual ontology patterns need to be organized and consolidated in order to build the complete structure of each layer. For this purpose, a composition process is applied within OLED to relate the patterns within the same layer. Thereby, the consistency of the composition process is verified in the light of UFO.
Integration of upper and core layers: the upper and core layers are integrated mainly using inheritance links. This integration could be accomplished and verified within OLED during the conceptualization process. Thus, generalization links are added to relate concepts from upper and core layers (e.g.,
Building the conceptual model of the domain layer: for building the conceptual model of the domain layer, the conceptual ontology patterns of the upper and core layers are applied either by extension or by analogy depending on their types. The recognition patterns are applied by extension for developing the static content of the domain layer. Meanwhile, the patterns as templates are applied by analogy with the legal rules for modeling the dynamic content of the domain layer. Furthermore, the domain layer’s content is checked in OLED to verify if it is built correctly.
To validate the conceptual model and fulfill the non-functional requirements NFR3 and NFR4, CargO-S is implemented in OWL5
The last phase of the ontology building process is ontology evaluation, which aims to: (1) evaluate the performance of CargO-S by employing the operational ontology in a practical application and (2) assess its semantic accuracy by computing the structural properties of the ontology.
Building the reference model of CargO-S
For building the reference model of CargO-S, the pattern-oriented top-down approach (see Section 3.4) is applied. In the following, we present the conceptual ontology patterns selected and reused from UFO and UFO-L for building the upper, core, and domain layers. The concepts, relations and axioms of the conceptual ontology patterns are represented in OntoUML using the modeling primitives of UFO.
Upper layer
For building the upper layer, the conceptual ontology patterns are selected and reused from UFO, mainly UFO-C and UFO-B. The upper layer is composed of three main DIOPs defined as pattern recognition:



For building the core layer, the conceptual ontology patterns are selected and reused from UFO-L (Griffo, 2018). In this layer, the ontology patterns implement the requirements at the domain-dependent level (legal domain). Thus, different DDOPs are defined as recognition and template patterns.
Recognition patterns



In

In the core layer, three legal relators patterns are reused from UFO-L as template patterns (Griffo, 2018):
Domain layer
The domain layer is the result of applying the conceptual ontology patterns of the upper and core layers. It is composed of static and dynamic content. The static content represents the definition of the basic concepts of the domain of discourse and their structure. The dynamic content represents the procedural aspect of the legal relationships among the different agents. The recognition ontology patterns of the upper and core layers are applied by extension for building the static content. Meanwhile, the template patterns of the core layer are applied by analogy with the legal rules for building the dynamic content. In the domain layer, the ontological requirements are implemented at the domain-dependent field-dependent level, which is represented by the Hague-Visby Rules.
Building the static content
Extension of
Based on Article I and Article IV, three main physical objects in the domain of carriage of goods by sea are defined:
Article I. (c) ‘Goods’ includes goods, wares, merchandise, and articles of every kind whatsoever […]
Article I. (d) ‘Ship’ means any vessel used for the carriage of goods by sea.
Article IV. (5)(c) […] a container, pallet or similar article of transport is used to consolidate goods […]

The physical objects in the domain layer of CargO-S.
Extension of
In the conventions of carriage of goods by sea such as Hague-Visby Rules, different rules regulate the legal agents, legal objects, and legal relations. Thereby, these conventions is considered as a specification of
Article I. (b) […] bill of lading relates to the carriage of goods by sea […] such bill of lading regulates the relations between a carrier and a holder of the same.

Extension of
Extension of
The
Article I. (a) ‘Carrier’ who enters into a contract of carriage with a shipper […]

The legal roles in the domain layer of CargO-S.

The
Extension of
Article I. (e) ‘Carriage of Goods’ covers the period from the time when the goods are loaded on to the time they are discharged from the ship.
Article II. […] under every contract of carriage of goods by sea the carrier in relation to the loading, handling, carriage and discharge of such goods […]
Extension of
Article IV. (2) […] loss or damage arising or resulting from: […] fire, strikes, act of War […]

The
Extension of

Extension of
Besides causal events, situations may trigger the occurrence of loss or damage of goods (Article III and Article IV). In the domain layer, three main legally defined situations have been identified (Fig. 20): (1)
Article III. (5) […] loss, damages or expenses arising or resulting from inaccuracies […]
Article IV. (1). […] loss or damage arising or resulting from unseaworthiness […]
Article III. (8) […] loss or damage […] arising from negligence, fault, or failure in the duties and obligations […]
Extension of legal relators. For fulfilling the functional requirement FR3, it is necessary to specify the legal relationships and their hierarchical and mereological structure in the domain layer. For this purpose, the following CQs are proposed: (CQ1) what are the main relations in the domain of carriage of goods by sea? (CQ2) How are these relations structured?

Extension of
The following legal relators are specified in the domain layer (Fig. 21).
Article I. (b) ‘Contract of carriage’ applied only to contracts of carriage covered by bill of lading […] regulates the relations between a carrier and a holder of the same.
Article III. (5) The shipper shall be deemed to have guaranteed to the carrier the accuracy at the time of shipment […]
Article III. (1) The carrier shall be bound before and at the beginning of the voyage to […] make the ship seaworthy […]
Article III. (2) […] the carrier shall properly and carefully load, handle, stow, carry, keep, care for, and discharge the goods carried.
Article III. (5) […] the shipper shall indemnify the carrier against all loss, damages and expenses arising or resulting from inaccuracies […]
Article IV. (1) Neither the carrier nor the ship shall be liable for loss or damage arising or resulting from unseaworthiness unless caused by want of due diligence on the part of the carrier to make the ship seaworthy.
The dynamic content of the domain layer aims to represent the procedural aspect of the Hague-Visby Rules. These rules argue mainly the rights, duties, liabilities, and immunities of legal agents. Thus, the following legal relators are described:

The procedural modeling of
Article II. […] under every contract of carriage of goods by sea the carrier in relation to the loading, handling, carriage and discharge of such goods shall be subject to responsibilities and entitled to the rights […]
In this model, a material relation, named has a right to carriage against, is derived from the

The procedural modeling of
The causation of
Article III. (5) […] the shipper shall indemnify the carrier against all loss, damages and expenses arising or resulting from inaccuracies […]

The procedural modeling of
Loss or damage of goods resulting from unseaworthiness (Article IV (1)): the carrier is not liable if he was not a participant.
Article IV. (1) Neither the carrier nor the ship shall be liable for loss or damage arising or resulting from unseaworthiness unless caused by want of due diligence on the part of the carrier to make the ship seaworthy.
Loss or damage of goods resulting from unanticipated causal events Article IV (2): the carrier is exempted from any responsibility.
Article IV. (2) Neither the carrier nor the ship shall be responsible for loss or damage arising or resulting from: […] fire, strikes, act of God, act of War […]
Loss or damage of goods arising from any cause without the act, fault, or neglect of the shipper Article IV (3): the shipper is exempted from liability if the damage is not a result of fault or negligence of obligations.
Article IV. (3). The shipper shall not be responsible for loss or damage sustained by the carrier or the ship arising or resulting from any cause without the act, fault or neglect of the shipper […]
In Fig. 25, the conceptual model of

The procedural modeling of
The implementation phase aims to validate the reference ontology by producing an operational version of CargO-S. The ontology environment OLED (Guerson et al., 2015) provides the transformation from reference to operational ontology by generating the OWL code. The code generator maps OntoUML classes, associations, and attributes to OWL classes, object properties, and data properties. It considers generalization sets and its disjointness properties plus model cardinalities. Although the code generator considers the domain constraints, cardinalities, transitivity of material and parthood relations as SWRL rules. Besides, we present a list of formal rules describing the procedural aspect of the legal relators representing the legal rules. To formalize the rules, we have used SWRL as a formal rule language. The SWRL rules will be employed as a rule base for decision support purposes. For the metrics, CargO-S comprises 122 classes, 209 SubClassOf relations, and 412 object properties. In this section, we present an excerpt of the operational version of CargO-S, which is accessible and manageable by ontology editors such as Protégé.7


Object properties. In CargO-S, object properties are defined based on the relations specified in OntoUML. Different types of relations have been used such as,

SWRL rules. For decision support purposes, there is a need to formalize, based on CargO-S, the procedural aspect of the legal rules of the Hague-Visby convention. To achieve the goal, two main requirements are identified (Gordon et al., 2009): (1) a rule language based on a precise and rigorous semantics, which allows for correctly computing the legal effects that should follow from a set of legal rules; (2) the application of the isomorphism principle, stated by Bench-Capon (Bench-Capon and Coenen, 1992), to create a well-defined correspondence between the rules in the formal model and the units of natural language text that express the rules in the original legal sources as sections of the legislation. Regarding the rule language, we choose SWRL, a rule interchange format that combines ontologies represented in OWL with RuleML. SWRL extends OWL axioms to include (monotonic) Horn-like rules. It is the only approach that gathers ontology and rules in product development (Fiorentini et al., 2010). Users are permitted to write rules that can be expressed in terms of OWL concepts and reason about OWL individuals (O’Connor et al., 2008).
In CargO-S, SWRL rules are generated either automatically or manually. They are represented by obligation rules in the following form: IF condition (operative facts) THEN conclusion (legal effect). Concerning the automatically generated rules, they are obtained based on the material relations defined in the procedural conceptual models of the legal relators. As example, we consider the following SWRL rule generated from the conceptual model of
Concerning the formal rules that are implemented manually, we have followed the isomorphism principle for connecting the textual rules with formalized rules. The formalization process is performed based on the dynamic modeling of the legal rules in CargO-S. As example, we consider the following SWRL rule generated from the conceptual model of
As a result, we obtained for
In the literature, the most commonly known approaches for the evaluation of ontologies are (Brank et al., 2005; Fernandez et al., 2009): (1) gold standard-based which aims to compare the developed ontology with a previously created reference ontology, (2) task-based which evaluates ontologies, that are intended for particular applications, according to their performance, and (3) structure-based which computes structure-based properties such as the size and the complexity of a given ontology. Since CargO-S is an application-based ontology, it is evaluated using a dual evaluation approach: task-based that evaluates the usability of CargO-S in a practical application and structure-based that assesses the semantic accuracy of CargO-S. The latter approach is recommended as an efficient approach for evaluating the developed ontologies (Dellschaft and Staab, 2008). We eliminated the gold standard-based approach due to the difficulty of finding a reference ontology that should be created under similar conditions with similar goals of CargO-S.
Task-based evaluation: Practical application
This section evaluates CargO-S being an application-based ontology by embedding it in a practical application. Seeking the traceability of goods, two main tasks are identified: (1) data retrieval using basic SPARQL queries and (2) decision support using SWRL rules. To achieve the goal, CargO-S is enriched with a set of instances provided by the domain experts.
Data retrieval using SPARQL queries
A set of basic SPARQL queries are specified and executed aiming to answer the set of competency questions. These queries tend to retrieve data related to the carriage of goods, such as the origin and destination of goods, the contracts of carriage of goods and the involved legal agents, and the events and situation occurred during transportation. In the following, examples of basic SPARQL queries are introduced.

The SPARQL query

Excerpt of

The SPARQL query

Excerpt of

The SPARQL query

Excerpt of
During the transportation of goods, loss or damage of goods may result from causal events or triggering situations. In this context, there is a need to define the liability and responsibility of the involved legal agents. This task is performed, based on the SWRL rules, as a lightweight decision support task. The reasoner

The inference process.
Triggering situation: Negligence in the care and custody of cargo. Given an event of carriage of lychees operated by the carrier
As a result, we obtained that the shipper

Excerpt of the given facts represented in Protégé.

Excerpt of the generated legal effects (

Excerpt of the generated legal effects (
Legally defined causal events: Strikes. Given an event of carriage of books operated by the carrier
As a result, we obtained that the carrier

Excerpt of the given facts represented in Protégé.

Excerpt of the generated legal effects (

Excerpt of the generated legal effects (
The structure-based evaluation is an automatic ontology evaluation which aims to assess the structural quality of CargO-S. Several measures have been recognized in the literature, such as Knowledge coverage and popularity measures (e.g., number of classes and number of properties) and structural measures (e.g., maximum depth, average depth, depth variance, etc.) (Fernandez et al., 2009). The application of these measures relies on the assumption that is a richly populated ontology, with high depth and breadth variance is more likely to provide reliable semantic content. The Knowledge coverage and popularity measures, which are commonly used in the ontology evaluation literature, do not show a significant relationship with the ontological accuracy (Sanchez et al., 2015). However, the structural measures are positively correlated with the semantic accuracy of the knowledge modeled in the ontology (Sanchez et al., 2015).
In CargO-S, we quantified some structural measures, which can be used to predict the ontologies with the best reliability (Sanchez et al., 2015), by considering the taxonomic structure of the ontology graph:
Maximum depth: represents the length of the longest taxonomic branch in the ontology. It is measured as the number of concepts from the root node to the leaves of the taxonomy. In CargO-S, An example of a taxonomic long path is: Average depth: is the average length of all the taxonomic branches. In CargO-S, Depth variance: is the dispersion with respect to the average depth, computed as the application of the standard mathematical variance to the depths of ontology nodes (see Equation (1)). In CargO-S, Maximum breadth: represents the width of the taxonomic level of the ontology with the largest number of concepts. In CargO-S, Average breadth: is the average breadth of all the ontology levels. In CargO-S, Breadth variance: is the dispersion with respect to the average breadth, computed as the application of the standard mathematical variance to the breadths of ontology levels (see Equation (2)). In CargO-S,
Based on the assessed structural properties, we conclude that the depth and breadth variance, which are limited by the maximum depth and breadth of the taxonomy, are considered high values regarding the average depth and breadth values. Thereby, CargO-S is considered a richly populated ontology where the concepts are dispersed in an unbalanced taxonomy.
Related work: LKIF-core
In this section, we outline LKIF-Core, a legal core ontology proposed by Hoekstra and his colleagues (Hoekstra et al., 2009). LKIF-Core is an operational ontology implemented in OWL.9
LKIF-Core has been reused for building different legal domain ontologies such as OPJK (Ontology of Professional Judicial Knowledge) (Casellas, 2008) and a domain ontology to fill the gap between legal texts and rules (Palmirani et al., 2012). OPJK is a legal ontology developed to map junior judges’ questions to a set of stored frequently asked questions. The purpose of OPJK is to search and index for a web-based application. The ontology contains domain-specific knowledge and professional knowledge, gathered by experience from the practice during on-call periods with semi-structured interviews. The main top classes of OPJK are Role, Agent, Document, Process, and Act. In (Palmirani et al., 2012), to fill the gap between legal texts and rules, an ontology for modeling and defining macro-concepts specific for the legal domain is developed and expressed in LKIF-Core. The approach is applied to a fragment of the legal norms of the US copyright domain. In such ontologies, the structural representation of the legal domain is maintained. However, there is a lack in a representation of the procedural aspect of the legal rules. This is because the existent approaches have failed to support legal relations and capture the legal roles played in the context of these relations (Griffo et al., 2018).
This study’s main contribution is the development of a well-founded legal domain ontology named CargO-S, representing the domain of carriage of goods by sea. CargO-S is targeted to be used as a knowledge base for the traceability of goods in logistic corridors. We applied a pattern-oriented approach supported by ontology reuse, layering, and grounding processes. To simplify the building process, the structure of CargO-S is divided into three layers: upper, core, and domain. For building upper and core, conceptual ontology patterns are selected and reused from the unified foundational ontology UFO and the legal core ontology UFO-L. Furthermore, these patterns are applied, either by extension or analogy, depending on their types, for building the domain layer.
The second contribution is that we differentiated between the reference model and the operational version of CargO-S. The proposed approach aimed first to develop the conceptual model of CargO-S by reusing and applying conceptual ontology patterns from UFO and UFO-L. Furthermore, the conceptual model is implemented in OWL and SWRL as an operational ontology. Besides, we separated the structural knowledge from the domain knowledge. In CargO-S, the representation of the hierarchy of concepts is distinguished from modeling the legal rules’ procedural aspects. This distinction will support the extensibility of the ontology to include future aspects.
Finally, we assume that by reusing UFO-L’s legal relators’ patterns and applying them by analogy with the legal rules, we obtained a richly populated ontology representing the procedural aspects of these rules. This result is considerable for employing our ontology in decision support purposes and is difficult to achieve by reusing other legal core ontologies such as LKIF-Core. Our assumption is based on the deficiency of representing “legal procedures” in LKIF-Core where concepts such as Change, Process, Action, Creation, and Reaction are used for this purpose. The notion of “legal relators” describing “legal procedures” is only specified in UFO-L. This lack has been recognized in the ontology engineering community, specifically in (Visser and Bench-Capon, 1997) where the authors affirm that most ontologies did not have an adequate solution for legal procedures mainly because of the difficulty to find a language to express knowledge in a declarative way.
Despite the contributions, this study has two principal limitations in (1) conceptualization and (2) decision support. Concerning the conceptualization, CargO-S does not cover the full range of core legal concepts. It focuses on modeling legal positions and relations and requires a representation of the normative knowledge considered in LKIF-Core. This deficiency is due to the purpose of CargO-S, which is mainly the definition of liabilities and responsibilities. Besides, essential legal roles such as consignee, master, and agent of the carrier are not represented due to the application domain’s limitation. In Hague-Visby Rules, the mentioned legal roles are not defined explicitly. Meanwhile, they are inherent in the definition of liabilities in the loss or damage of goods (Hamburg Rules). The second limitation is related to the use of SWRL for decision support. SWRL suffers from a lack of non-monotonic features (since it works under the Open-World Assumption (OWA)) (Fiorentini et al., 2010); Thus, it does not support the negation as failure. Besides, using SWRL makes difficult the representation of complex rules (i.e., contain exceptions or contradictions) (Fortineau et al., 2012) using conjunctions (∧). Disjunctions (∨) and defeasible logic, which are unsupported in SWRL, are required.
Conclusion
Building legal domain ontologies is a challenging task in the ontology engineering domain. Ontology builders face obstacles such as the complexity of the legal knowledge, the implicit definition of essential legal concepts, and the difficulty of applying existent ontology engineering methodologies. Besides, the legal ontologies are specific since they have to cover a wide range of common-sense concepts.
This work demonstrated that reusing ontology patterns from existent validated ontologies, sustained by ontology-driven conceptual modeling, is a practical approach that helps overcome the difficulties of building well-founded legal domain ontologies. This study applied a pattern-oriented approach supported by ontology reuse, grounding, and layering processes. The approach is based mainly on reusing conceptual ontology patterns from the foundational ontology UFO and the legal core ontology UFO-L. The main benefit of ontology layering and reuse processes is that they simplified the development process and enriched the ontology with axiomatizations inherited from UFO and UFO-L. The ontologically-driven conceptual modeling language OntoUML is applied for representing the categories of the targeted ontology in the light of UFO. As a result, we obtained CargO-S, a well-founded legal domain ontology with a significant ontological expressiveness. The validation and evaluation of CargO-S proved the ontology’s effectiveness in data querying and (lightweight) decision support purposes. Besides, the assessment of the semantic properties of CargO-S verified its semantic accuracy and richness.
In future work, we will extend the scope of the current version of CargO-S to cover other conventions of carriage of goods by sea, such as the Hamburg Rules (Hamburg, 1978) aiming to enrich the domain layer. Thereby, we will consider additional legal roles, such as the consignee and relationships, such as the delivery of goods and the associated responsibilities. The enrichment process requires a definition of an ontology re-engineering phase. In this study, we gave a lightweight, practical application for the validation of CargO-S. We will enhance the framework to include more detailed scenarios provided by the domain experts in further works. For this purpose, a specification task is needed to enable an interactive validation with the domain experts. Finally, to overcome the limitations of SWRL in decision support, Logic Programming (Kowalski, 1974) will be envisaged.
Footnotes
Acknowledgements
This work is supported by the European Regional Development Fund (ERDF; Grant No: HN0002134). The authors gratefully acknowledge Tatyana Poletaeva for the valuable discussions, especially in UFO. We are also thankful to the Institute of International Transport Law (IDIT) for the support.
