Full text
id188457 CONTRACT-BASED DATA VALIDATION FRAMEWORK ACHRAF HMIMOU HAM MAN Thesis supervisor ANNAQUERALTCALAFAT(DepartmentofServiceandInformationSystemEngineering) Thesis co-supervisor OSCARROMEROMORAL(DepartmentofServiceandInformationSystemEngineering) ALBERTOGUTIÉRREZTORRE Degree Master'sDegreeinDataScience Master's thesis Facultat d'Informàtica de Barcelona (FIB) Universitat Politècnica de Catalunya (UPC) - BarcelonaTech 26/06/2024
Acknowledgements I am deeply thankful to my supervisors Anna Queralt, Oscar Romero and Alberto Guti´errez for allowing me to work on these fascinating projects. Their guidance and support over the past months have been crucial in helping me reach this stage. This master thesis is a continuation of a journey I began in discovering the complex world of federated data. Looking back, it is incredible to assimilate the amount of things I learned during this time. I want to express my gratitude to Aniol for being such a wonderful companion during this period. My gratitude and appreciation also go to all the people I met during the last six years at university. This time was filled with amazing people, moments and lessons. Finally, I would like to extend my heartfelt thanks to my beloved family and friends. Their support and companionship shaped me in all aspects of my life. i
ii
Abstract In the era of big data, privacy concerns have shifted the paradigm from centralized data management to federated data ecosystems or data spaces, where data ownership and control are decentralized. These ecosystems are structured around data-sharing contracts that specify access, usage, quality, and privacy requirements between organizations. Current frameworks primarily focus on data usage and lack robust mechanisms for data validation, which is critical for maintaining data quality and integrity across federated environments. To address this gap, this master thesis introduces a knowledge graph-based framework to automate data validation in line with data-sharing contracts. The framework introduces policy checkers, which represent data validation workflows that can be dynamically translated into user-defined functions (UDFs) for compliance checking. This method enhances the flexibility and transparency of data validation processes, enabling the accommodation of various data formats. The overall contributions of this master thesis include (1) the design of an advanced architectural framework for federated data management (2) a derived data governance mechanism for automated data validation based on data-sharing contracts and, (3) a proof of concept implementation that demonstrates the practical applicability of the solution. This work aims to address critical gaps in current data ecosystems by describing flexible and robust data governance mechanisms. Keywords— Data Validation, Federated Data, Data Spaces, Knowledge Graphs iii
Table of Contents Acknowledgements i Abstract iii Table of Contents iii List of Figures vi List of Tables viii List of Symbols 1 Chapter 1 Introduction 2 1.1 Motivation ......................... 2 1.2 Context and Topic . . . . . . . . . . . . . . . . . . . . . 3 1.3 Research Question . . . . . . . . . . . . . . . . . . . . . 4 1.4 Method and Contributions . . . . . . . . . . . . . . . . . 4 1.5 Outline ........................... 6 Chapter 2 Background 7 2.1 Running example: Health Data Study . . . . . . . . . . . 7 2.2 Federated Database Systems . . . . . . . . . . . . . . . . 8 2.3 DataSpaces ........................ 10 2.4 Data validation . . . . . . . . . . . . . . . . . . . . . . . 13 Chapter 3 Related Work 15 3.1 Automated Data Validation . . . . . . . . . . . . . . . . 15 3.2 Policy-based enforcement . . . . . . . . . . . . . . . . . 16 3.3 ResearchGaps ....................... 17 Chapter 4 Data Federation 18 4.1 Federation Guidelines . . . . . . . . . . . . . . . . . . . . 19 4.2 Semantic Data Model . . . . . . . . . . . . . . . . . . . 21 4.3 DataPolicies........................ 23 4.4 Problem Definition . . . . . . . . . . . . . . . . . . . . . 26 Chapter 5 Contract Validation 27 5.1 Framework Overview . . . . . . . . . . . . . . . . . . . . 27 5.2 Parser............................ 29 5.2.1 Policy Checkers . . . . . . . . . . . . . . . . . . . 30 5.2.2 Graph rewriting . . . . . . . . . . . . . . . . . . . 31 5.3 Translator.......................... 33 5.3.1 Code Metadata . . . . . . . . . . . . . . . . . . . 34 5.3.2 Dynamic code generation . . . . . . . . . . . . . . 34 Chapter 6 Experimentation 36 iv
List of Figures v 6.1 ProofofConcept...................... 36 6.1.1 Semantic Data Model population . . . . . . . . . 37 6.1.2 Parser Implementation . . . . . . . . . . . . . . . 37 6.1.3 Translator Implementation . . . . . . . . . . . . . 38 6.1.4 Contract validation example . . . . . . . . . . . . 39 6.2 Data Quality Vocabulary support . . . . . . . . . . . . . 40 6.3 Framework Analysis . . . . . . . . . . . . . . . . . . . . 41 6.3.1 Effectiveness and Fitness for Use . . . . . . . . . . 43 6.3.2 Connectivity and Efficiency . . . . . . . . . . . . . 44 6.3.3 Simplicity and Clarity . . . . . . . . . . . . . . . . 45 Chapter 7 Conclusion and Future Work 46 7.1 Ethics and Biases . . . . . . . . . . . . . . . . . . . . . . 47 7.2 FutureWork ........................ 47 Appendix A Rewrite Rules 49 Appendix B Policy Checkers Output 50 B.1 Policy 1 - Data Product 1 (Tabular) . . . . . . . . . . . . 50 B.2 Policy 1 - Data Product 2 (DICOM) . . . . . . . . . . . . 51 B.3 Policy 2 - Data Product 1 (Tabular) . . . . . . . . . . . . 51 References 53
List of Figures 1.1 Contract Validation Framework Overview . . . . . . . . . . . . . . . . 5 2.1 Graph-based FDBS proposed by [18]................... 8 2.2 An example integration graph of DAAfor Hospital A . . . . . . . . . . 9 2.3 Conceptual view of data spaces [23]................... 10 2.4 ODRL vocabulary simplified (extracted from footnote) . . . . . . . . . 11 2.5 Connector role in a data exchange [34] ................. 12 2.6 Data Quality Dimensions [36] ...................... 13 4.1 Healthmesh architectural framework overview . . . . . . . . . . . . . . 19 4.2 Guidelines definition representation . . . . . . . . . . . . . . . . . . . . 20 4.3 Semantic Data Model ∆representation . . . . . . . . . . . . . . . . . 21 4.4 Registration process representation . . . . . . . . . . . . . . . . . . . . 23 4.5 Detailed ODRL language model (see footnote) . . . . . . . . . . . . . 24 4.6 Duty Rule life-cycle for an ODRL evaluator (see footnote) . . . . . . . 24 5.1 Contract Validation Framework Ωoverview ............... 28 5.2 Data Product DP1 subgraph that is used as an input for validation . . . 29 5.3 Parser representation . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 5.4 Graph rewriting illustration [55] ..................... 31 5.5 Generated Policy Checker (pc1) by Parser component . . . . . . . . . . 32 5.6 Translator representation . . . . . . . . . . . . . . . . . . . . . . . . . 33 5.7 Implementation subgraphs example using python ............ 35 6.1 Subgraph for DP1after validation . . . . . . . . . . . . . . . . . . . . 40 6.2 Data Quality Vocabulary [32]....................... 41 6.3 Policy Checker pc for a Data Quality Policy. This pc validates p 2 according to DP1............................. 42 vi
Listings 2.1 Privacy Policy expressed in machine-readable way using ODRL . . . . . 12 4.1 Policy p1extended with agreement class . . . . . . . . . . . . . . . . 25 6.1 Rewrite Rule using SPARQL CONSTRUCT template . . . . . . . . . . 38 6.2 Example Jinja code template for an operation . . . . . . . . . . . . . . 39 6.3 Data Quality Policy p2usingODRL................... 43 B.1 Example Policy checker extracted for validating DP1 in Relation to P1 50 B.2 Example Policy checker extracted for validating DP2 in relation to P1 . 51 B.3 Example Policy checker for validating DP1 in relation to P2 . . . . . . 52 vii
List of Tables 2.1 Hospital A - Tabular data asset DAA.................. 7 2.2 Hospital B - DICOM Image data asset (Header Metadata) DAB.... 7 4.1 Data Product DP Abstract Syntax . . . . . . . . . . . . . . . . . . . 22 5.1 Policy Checker pc AbstractSyntax.................... 30 6.1 Proof of concept main files overview . . . . . . . . . . . . . . . . . . . 37 6.2 Framework Current Support based on [37] classification . . . . . . . . . 43 viii
2 Background In this chapter, the background concepts and definitions are presented. Section 2.1 presents the running example, that will be used for explaining the subsequent sections and chapters. Section 2.2 presents the concepts and definitions of federated database systems. Section 2.3 presents the roles, concepts and definitions related to data spaces. Finally, Section 2.4 presents the concepts related to data validation. 2.1 Running example: Health Data Study Consider a scenario where two hospitals want to collaborate in a joint study to enhance patient care and advance medical research. Both Hospital A and Hospital B possess valuable datasets that can contribute to a study on patient outcomes. Hospital A has a tabular data asset DAA (Table 2.1) containing demographic information, while Hospital B has a data asset in the form of DICOM images DAB , a widely used standard for medical imaging [17]. Table 2.2 presents a subset of DICOM header metadata. ID Age Gender Survival 218 42 Non-binary 34 219 35 Female 30 Table 2.1: Hospital A - Tabular data asset DAA PatientID ImageType ContentTime HighBit 218 PRIMARY 164833 11 Table 2.2: Hospital B - DICOM Image data asset (Header Metadata) DAB To collaborate effectively in a federated context, both hospitals must ensure interoperability by aligning their datasets (schema) and referring to the same concepts (semantics) consistently [17]. However, direct integration is not possible due to the heterogeneity of data formats (syntactics). 7
8 Chapter 2 - Background Figure 2.1: Graph-based FDBS proposed by [18] To solve this issue, a federated data system can be used, providing semantic layers to harmonize and integrate the data from both hospitals. 2.2 Federated Database Systems In this section, the core concepts and definitions for understanding FDBS will be presented. To explain the core building blocks of an FDBS, we adapt the graph-based framework proposed by [18]. Figure 2.1 presents all the components that participate in an integrated FDBS. An FDBS is composed of Component Database Systems (Component DBS) where each retains its own processing, storage, and management systems but is designed to participate in the federation by exposing its schema Rvia wrappers W. Definition: Schema Rand Wrappers W A schema R can be seen as a set of attributes A . Wrappers W are software components that allow retrieval of data from a subset of attributes A. In this framework, each Component Database System (DBS) utilizes graph structures to represent all metadata derived from schemas and wrappers. This representation includes source graphs S that detail the metadata specific to each component DBS, and global graphs G , which integrate these individual views into a comprehensive, federated overview. Definition: Source Graph Sand Global Graph G Asource graph S encodes R and its wrappers W in a graph representation. S can be mapped to a global graph Gusing a mapping graph M. By mapping source graphs to a global graph, FDBS offer a consistent data model to users, hiding the underlying complexity and heterogeneity of individual databases.
2.2 Federated Database Systems 9 Figure 2.2: An example integration graph of DAAfor Hospital A Definition: External Graph ϵ An external graph ϵ encodes views V together with the semantics of the expressions to compute derived features. Finally, an external graph ϵ can be used to include derived features in the G . This allows for computing features using expressions. The above-mentioned components are usually also preserved in Ontology-based data access (OBDA) paradigm, denoted by P = ( O, M, S )where O is an Ontology (typically in OWL 2) functioning as a common data model, S is a data source graph and M represent mappings from S to O . Current OBDA systems can integrate a variety of data sources and typically use SPARQL 1 and query rewriting mechanisms for accessing data [19]. ODIN [20] is an example of a largely automated bottom-up data integration system with OBDA mechanisms. Running example: Hospital A Integration Hospital A data asset (Table 2.1) results from the integration of various local data sources, each contributing unique demographic information. Figure 2.2 outlines the integration graph. DAA represents a G , including features ID, Age, Gender and Survival. The feature survival is derived from a view V that uses attribute T and an expression (1-T). Tools such as ODIN can automate the integration of all relevant data sources, automatically generating the integration graph. 1https://www.w3.org/TR/rdf-sparql-query/
10 Chapter 2 - Background Figure 2.3: Conceptual view of data spaces [23] 2.3 Data Spaces The concept of data spaces [21] initially emerged as a strategy for managing multiple data sources in a ”pay-as-you-go” integration approach, allowing for the coexistence of multiple schemas within an organization context [22]. Recently, it has evolved into a strategy to build collaborative federated data ecosystems that enable data sharing among multiple organizations, driven by the desire to achieve shared goals. This exchange occurs directly between data providers and data consumers without intermediate data storage [14]. The federator (Figure 2.3) plays a critical role in designing data spaces, acting as data intermediary and shaping the range of services offered to ensure secure and trustworthy data exchanges. The federator role also aids both providers and consumers with essential operations, including the registration of participants and data sources, as well as authorization processes. Furthermore, the role is tasked with logging data exchanges to maintain transparency and enforcing data policies to regulate interactions. This arrangement provides a balance of autonomy for providers and consumers, while still fostering trustworthy data exchanges. Definition: Federator The federator role provides all essential services such as cataloguing data sources, ensuring trust between participants, and offering data sovereignty services. Major organizations such as The International Data Space 2 and Gaia-X 3 are at the forefront of proposing reference architectures that prioritize data sovereignty and secure data sharing mechanisms. These architectures are fundamental in supporting 2https://internationaldataspaces.org/ 3https://gaia-x.eu/
2.3 Data Spaces 11 Figure 2.4: ODRL vocabulary simplified (extracted from footnote) the federation among multiple stakeholders, necessitating an open infrastructure that adheres to commonly agreed-upon policies, rules, and standards [14]. In this context, the Semantic Web [24] of Linked Data plays a crucial role by providing the necessary technologies and methodologies that enable these diverse systems to understand and integrate data in a meaningful way. Definition: Semantic Web Semantic Web is an initiative that emphasizes linking data across web resources with the vision where data is represented in both human and machineunderstandable ways. Using Semantic Web, knowledge is represented using Ontologies, semantically enriched data (i.e. linked data) is described in RDF as the universal data format, and HTTP(S) URIs are used to identify entities [22]. The World Wide Web Consortium (W3C) 4 develops standards and guidelines to facilitate a web that adheres to principles of accessibility, internationalization, privacy, and security. This includes a broad set of recommended protocols for interacting with linked data (e.g., SPARQL 5 , SHACL 6 ) and a set of recommended vocabularies for describing data-sharing contracts, messages, and data resources. Knowledge graphs play a vital role in data spaces [25,26], offering a flexible and extensible way to store, organize, and represent data. Additionally, they have the potential to enhance data spaces by providing a unified and semantically grounded structured representation of multimodal data [27]. A standard vocabulary commonly used in data space implementations is the Open Digital Rights Language (ODRL) [28]. ODRL is a standard vocabulary for describing agreements and data usage between data providers and consumers. Figure 2.4 7 shows a simplified version of the ODRL vocabulary. A Policy in ODRL is composed of a set of Rules, each of which govern an Action that is performed by a Party over an Asset [29]. Though ODRL is currently the most used language in data space implementations, a variety of policy languages can describe data usage control [30], privacy and security [31], and quality requirements [32]. The diversity of these languages and their lack of formal semantics poses challenges in integrating and automating their enforcement[33]. 4https://www.w3.org/ 5https://www.w3.org/TR/rdf-sparql-query/ 6https://www.w3.org/TR/shacl/ 7https://www.w3.org/TR/odrl-model/
12 Chapter 2 - Background Figure 2.5: Connector role in a data exchange [34] Definition: Connector A data space connector acts as a logical gatekeeper, enabling connection, contract negotiation, and policy enforcement for data transfers. In data spaces, policies are typically enforced by connectors. Figure 2.5 depicts a data exchange where data is sent alongside the usage policies, which are then interpreted and enforced by the data consumer connector. Though current data space connector implementations present limitations [28], the cost of enforcing usage policies is predicted to become reasonable in the near future. The main challenge relies on maintaining trust between participants, where data owners (i.e. providers) cannot verify and address misuse of their data. Successfully combining technically enforceable usage control with usage transparency will be key to success in data ecosystems, as observed by [13]. High data quality is a crucial prerequisite for successful data ecosystems. Without it, sharing substandard data can lead to adverse business outcomes, as decisions and services based on this data may be inaccurate or lead to fraudulent results. This challenge of ensuring data quality remains a significant issue in current data ecosystem implementations, as observed by [16]. Thus, the development of extensive and robust data validation mechanisms can be essential to address these challenges effectively. 1" @id ": "ab :p1 ", 2" @type ": " odrl : Privacy ", 3" odrl :duty ": [ 4{ 5" @id ": "ab: AnonDuty ", 6" @type ": " odrl : Duty ", 7" odrl : target ": " ab: Subject " 8" odrl : action ": " odrl : anonymize " 9} 10 ] Listing 2.1: Privacy Policy expressed in machine-readable way using ODRL
2.4 Data validation 13 Figure 2.6: Data Quality Dimensions [36] Running example: Privacy policy p1 Consider that both Hospital A and Hospital B are part of a healthcare data space. In this context, the federator argue that preserving patient data privacy is crucial. Thus, an example privacy policy p1 could be expressed in a human-readable way as follows: Data assets about patient data must have their patient identifiers anonymized The ODRL vocabulary can be used to define p1 in a machine-readable way, as shown in Listing 2.1. In this scenario, both hospitals must adhere to this policy to perform any data sharing in the data space. A data governance mechanism could be employed for validating data, ensuring that both hospitals adhere to this policy. 2.4 Data validation Data validation is intrinsically linked to data quality, an extensively explored area within the database management system (DBMS) community and that still plays a crucial role in data science projects. Wang et al. [35] presented a conceptual framework (Figure 2.6) categorizing data quality dimensions into four categories : • Intrinsic: Focuses on the extent to which data values conform to reality, including accuracy, reputation, and objectivity. • Contextual Emphasizes the relevance and applicability of data in specific contexts, addressing aspects such as completeness, timeliness, and relevancy. • Representational: Concerns the extent to which data is presented in a clear, understandable manner, emphasizing interpretability and consistency. • Accessibility: Pertains to the ease with which data can be accessed or obtained.
14 Chapter 2 - Background This categorization has influenced many organizations to adopt a comprehensive approach to data quality, focusing not only on accuracy and completeness but also on the specific contexts in which data is used, how it is represented, and its accessibility. Recently, with advances in ML systems, data validation has become increasingly critical. Ensuring data integrity and quality is fundamental to the performance and reliability of ML models. Automated solutions in ML pipelines range from simple to highly sophisticated approaches. Biessmann et al. [37] classify these solutions into the following categories: • Schema Validation: Involves validating the syntactic correctness of data, including ensuring data does not violate type constraints. • Data Correctness and Consistency: Encompasses rule-based systems such as automatic discovery of functional dependencies between table columns. • Statistical Properties: Includes applying statistical rules, such as profiling tests and anomaly detection methods. • Fairness: Refers to traceability and explainability in pipelines to ensure outputs are unbiased and equitable across different groups. • Privacy: Ensures compliance with privacy requirements in data handling and model predictions. Furthermore, in the realm of data ecosystems, [16] highlights new requirements for data quality solutions that are required to adapt to several key challenges. Firstly, there is an increasing need for data transparency to enhance trust and interpretability within these ecosystems. Secondly, the issue of data repurposing is critical, as data is often used for purposes not initially intended by the providers. Lastly, there is a significant shift in responsibility for data quality management from a centralized approach to one that empowers data providers. Running example: Data Privacy Validation In our running example, Let’s assume Hospital A prepares DAA for sharing with Hospital B. A data validation process should automatically scan the dataset for compliance with p1 . If any patient identifier is detected, the system should flag the dataset and prevents it from being shared until the issue is resolved. A detailed report should be generated, documenting the validation process and why DAAis not compliant with p1.
3 Related Work This master thesis focuses on automating data validation within federated data ecosystems, using data-sharing contracts and associated policies that stipulate data-related conditions. This research primarily intersects two significant areas: Automated Data Validation and Policy-Based Enforcement. Automated Data Validation is discussed in Section 3.1, while Policy-Based Enforcement frameworks are covered in Section 3.2. The identified research gaps are presented in Section 3.3. 3.1 Automated Data Validation Automated data validation technologies currently range from data profiling to quality measurement and monitoring. These tools often feature declarative APIs, which allow users to define arbitrary data constraints [38], and are integrated within machine learning platforms to facilitate statistical validation, thus enhancing the robustness of downstream models [39]. Recent studies underscore the necessity for augmented automation and improved explainability of the algorithms and parameters these tools utilize [40]. In the context of Internet of Things (IoT) data sharing, [36] underscore the critical importance of improving data quality through trust-based frameworks, pointing out the shortcomings of traditional data quality assessment methods that do not accommodate the dynamic and heterogeneous nature of IoT data. They argue for a holistic approach to data quality, ensuring integrity and transparency throughout the data transfer process. Cross-organizational automatic validation often relies on open protocols such as SHACL, primarily for schema or pattern validation [41]. However, these protocols require supplementary frameworks to address other data characteristics, such as outliers or duplicates and often depend on proprietary libraries or necessitate data migration to centralized validation systems for effective validation [16]. The novel GraphGuard framework employs a knowledge graph-based approach for automating data quality validation within Knowledge Graph pipelines [41]. It utilizes several W3C vocabularies and introduces QualityContracts and Guards as software 15
16 Chapter 3 - Related Work agents designed to validate data sources prior to their system integration. Validated empirically at a German airport, this framework’s primary limitation is its limited support of data formats including Tabular, JSON schema, and SHACL shapes. This highlights a potential area for expansion to include a wider variety of data types and structures. 3.2 Policy-based enforcement Policies have been extensively studied and applied within the realms of data access and security. Policy-Based Access Control includes the widely adopted Extensible Access Control Markup Language (XACML) and its architectures, which incorporate multiple layers of policy decision-making and refinement [42]. In this context, Peneque et al. [43] have introduced an ontology-based framework designed to enforce security policies over graph databases like Neo4J and OrientDB. The solution is also integrated within the TITAN framework to support complex data science workflows. This main limitation is its specific design for graph databases. Efforts to model and enforce regulatory policies include the modelling of GDPR privacy policies using ODRL and the development of an intermediate language, InstAL, which translates into ASP rules for automatic compliance checking [29]. MO- SAICrOWN’s policy engine aligns user SQL requests with ODRL policies to validate data requests [44]. Similarly, [45] presents SAVE policy language and a method for its translation into SHACL shapes for data request validation. Although these approaches are important, they primarily validate access control (i.e. data requests) rather than providing extensive data validation (i.e. support for multiple algorithms and data formats) at a source level. In the context of data ecosystems, current policy-based solutions usually tackle data usage, falling under the distributed usage control research field. [30] work presents a survey on current policy specifications and enforcement for data usage. Additionally, [46] work reviews policy patterns encountered in the data spaces field. The Solid Data Space (SDS) initiative [22], utilizes Semantic Web technologies to create a framework for distributed data storage. This initiative offers significant advantages, such as standardization and interoperability across systems. However, a key limitation is the requirement for data to be transformed into RDF, which is mandated as the common data format. This requirement can restrict the initiative’s flexibility and applicability to diverse data types that may not naturally fit into RDF structures. The MyData framework [47], developed under the IDS (International Data Spaces) initiative, leverages ODRL to map policies to an intermediate policy language. This allows for the enforcement of technology-dependent policies over data. Despite its capabilities, MyData’s major drawback is that it supports only JSON-formatted data and does not include data validation mechanisms. In the realm of data quality within data ecosystems, [16] proposes a design theory for data quality tools, derived from a comprehensive multi-case study. This study analyzes the development of MCo’s Data Quality framework, which is integrated within
4.3 Data Policies 23 Figure 4.4: Registration process representation Running Example: Data Asset Registration In our ongoing example, Hospitals engage in the registration process. During this process, a data discovery service supports data owners in finding common data models for generating their data. In this context, both DAA and DAB can be federated mapping to CDMpd. Once data owners have identified the potential federability, they engage with the federated team for integration, negotiating the respective data contracts DCA and DCB. Consequently, Hospital A produces a DC1 containing the mappings →S1 ( IDDA1, SubjectCDMpd )and Hospital B produces a DC2 with →S2 ( PatientIDDA2, SubjectCDMpd ). Both institutions agree to adhere to policy p1 , hence p 1 ∈DC1 , DC2 . The process ends with DAA integrated as DP1 and DABintegrated as DP2. 4.3 Data Policies Data policies encompass regulations, industry standards, and requirements. Various vocabularies are utilized to articulate these policies. Some, like XACML, offer formal semantics that facilitate automatic enforcement, while others, such as ODRL, lack formal semantics and require interpretation. ODRL has evolved from a simple digital rights expression language to a flexible and interoperable language, making it the most used language in current data ecosystems implementations [28]. It uses Linked Data principles for its model, but its semantics are described informally without a formal specification [50]. The diagram in Figure 4.5 shows a detailed version of the language. In ODRL 2 , an Asset refers to a digital resource that is subject to specific rules. A Party can be an individual, organization, or group involved in a rule. The Action class outlines operations on assets, linked through an action property in a rule. Constraints specify conditions for an action or rule, using operands and operators to determine satisfaction. Additionally, constraints can take the form of refinements to better specify an action. The Rule class includes the shared attributes of permissions,prohibitions, and duties 2https://www.w3.org/TR/odrl-model/
24 Chapter 4 - Data Federation Figure 4.5: Detailed ODRL language model (see footnote) Figure 4.6: Duty Rule life-cycle for an ODRL evaluator (see footnote) associated with an action. It contains a target property that specifies the affected asset and can be linked to assignee and assigner properties. Permissions allow actions on an asset if certain conditions are met and duties are fulfilled. Prohibitions, on the other hand, prevent actions if certain conditions are met and provide remedies for violations. Duties entail specific actions to be carried out, with potential additional duties (consequences) in case of non-compliance. APolicy is a collection of multiple rules, each identified by a unique ID and a profile property that is consistent with an ODRL profile, allowing for the extension of the vocabulary [29]. Sets represent general rules, Offers enable the sharing of rules without granting them, and Agreements grant rule-based terms between parties, specifying both the assigner and the assignee. As previously said, ODRL takes an open design approach, allowing applications to interpret its semantics according to their specific needs [33]. It is currently relying on English language specifications, introducing potential ambiguities. This has raised multiple research on its semantics and critiques [50–52]. Given the interpretation problem, the ODRL Community Group is starting to work
4.3 Data Policies 25 on the formal semantics of the language 3 . The community group proposes the concept of ODRL Evaluator in two perspectives: (1) access control where the evaluator determines the access by users or software agents to digital resources and (2) Policy monitoring or compliance checking where given a set of policies and the description of the state of the world that includes the performed actions, the evaluator has to determine whether obligations or prohibitions have been fulfilled or violated by the performance of certain actions. Figure 4.6 presents a diagram example of the life-cycle of duty regarding an ODRL evaluator. To solve the issue of interpretation, current solutions utilize intermediate languages for interpreting both in access control [29,45] and usage control [47], as seen in Section 3. As an example, MyData, for IDS, maps constraints, actions, and refinements to its proprietary policy language 4. However, none of the existing solutions includes extensive data validation. Flexible data validation mechanisms should be embedded in current policy-based solutions. This can help to ensure that policies that specify data conditions can be effectively verified. 1" @id ": "ab :p1 ", 2" @type ": " odrl : Agreement ", 3" odrl : permission ": [ 4" odrl : assigner ": "ab : FederatedTeam ", 5" odrl : assignee ": "ab : HospitalB " 6" odrl :duty ": [ 7{ 8" @id ": "ab: AnonDuty ", 9" @type ": " odrl : Duty ", 10 " odrl : target ": "ab : Subject " 11 " odrl : action ": " odrl : anonymize " 12 } 13 ] 14 ] 15 } Listing 4.1: Policy p1extended with agreement class Running Example: Policy p1as an agreement Listing 4.1 shows an example of p 1as an ODRL Agreement class. In this context, the Federated Team and Hospital B have agreed that Hospital B must act on the anonymization of its patient identifiers. The transformation of this policy into an agreement can be part of the data product registration process. Thus, an ODRL evaluator for compliance checking should ensure that Hospital B is adhering to its duty. A robust method to verify this compliance is to perform data validation at a source level. Thus, the ODRL evaluator should be able to interpret ODRL semantics to validate DP2which is in DICOM format. 3https://w3c.github.io/odrl/formal-semantics/ 4https://developer.mydata-control.de/language/
26 Chapter 4 - Data Federation 4.4 Problem Definition The core objective of this thesis is to develop an automated method for validating data by the stipulated policies Pin data contracts DC. The problem domain assumes the following: • Full integration of DP with access to all pertinent metadata artefacts is available. • All DP instances are accessible, allowing for retrieval and validation of DP data. In a complex federated context, data policies ( P ) utilize standardized vocabularies to encapsulate a variety of conditions. The diversity of these vocabularies and their lack of formal semantics require interpretation as stipulated in Section 4.3. Moreover, the inherent variety in data formats (e.g. DICOM), introduces another significant challenge. There may be potential restrictions on data movement or transformation, requiring a flexible validation mechanism capable of validating at a source level. As previously defined, a DC contains a set of Policies P that guarantee DP compliance. Policy Checkers pc validates a specific DP concerning a specific policy p . Thus, the main problem is how to automate the generation of pc using DP metadata. Formally, find a framework Ωsuch as Ω(DP ) = pc Given these conditions, Ωshould be able to address these critical sub-problems: • Interpretation of p semantics in relation to DP , for the task of data validation. •Adaptation to DP syntactics, accommodating to multiple data formats. The objective of this thesis is to describe the Ωframework, that adapts to these two sub-problems, for automating data contract validation in a complex federated scenario. Ωcan contribute to ensuring that data providers adhere to their contractual obligations, thus enhancing the reliability and integrity of subsequent data pipelines. Running Example: Analytical Study Imagine a data consumer wanting to perform a federated analysis using CDMdp . DP1 owned by Hospital A and DP2 owned by Hospital B have available a Data Contracts with CDMdp, making them suitable candidates for the study. Both DC1 and DC2 include policy p1 , which requires the anonymization of patient identifiers. To ensure these data assets can be included in the study without exposing sensitive information, they must comply with p1. In this context, executing Ωis essential to verify that the data products meet the requirements of their data contracts. This workflow must accommodate the varied data formats specified by DT T.
5 Contract Validation Building on the data federation described in Chapter 4, this chapter presents the approach for automating data validation of data contracts DC. Section 5.1 introduces a general overview of the contract validation framework components and roles. Section 5.2 presents the details of Parser component. Section 5.3 details the Translator component. The running example is used to explain the framework. 5.1 Framework Overview Figure 5.1 presents all the components, workflows, and roles within the contract validation framework Ω. The components that are represented by blue arrows represent the data federation, including the population of ∆. The contract validation workflow is represented by orange arrows and starts by the data consumer specifying a CDM or a set of DP ( DP+ ) and ends by validating data products DP+ and adding Policy Checkers Cto ∆′′. Algorithm 1 Contract Validation Framework Ω 1: Input: ∆,CDM |DP+ 2: Output: ∆” with Policy Checker C 3: if CDM is given then ▷Check if CDM is provided 4: DP+←FindAssociatedDataProducts(∆,CDM)▷DP mapped to CDM 5: end if 6: for all DP ∈DP+do C←PARSER(∆,DP , X) ▷Get Policy Checkers 7: ∆’←∆+C 8: for all pc in Cdo 9: pc ←TRANSLATOR(∆’, pc)▷Translate pc 10: ∆”←∆’ + pc 11: end for 12: end for 27
28 Chapter 5 - Contract Validation Figure 5.1: Contract Validation Framework Ωoverview In this context, we outline the following main components which are used to tackle the problem. • Parser: The parser component processes DP metadata, along with predefined rules X and it generates a subset of policy checker C , which serves as logical validation workflows. • Translator: The translator component accepts a policy checker pc ∈C as input, and uses code metadata to translate these logical workflows into user-defined functions (UDFs), that are executed over data sources, annotating pc with the validation reports. Algorithm 1 presents the overall steps of the process. The workflow can receive either a CDM or a set of DP ( DP+ ). If given a CDM the FindAssociatedDataProducts() retrieves the associated DP+ through their DC . For each DP , the PARSER generates a set of Policy Checkers C that can validate the given DP . After that, each pc ∈C is translated using TRANSLATOR and the resulting validation report is annotated in the same pc. Note that between each step, the algorithm utilizes ∆for annotating the intermediary results. Thus, a pc is first generated by the PARSER and added to ∆, then the TRANSLATOR uses this pc ∈ ∆for translation. As previously mentioned, ∆represents a holistic perspective of our system and is used constantly to support the contract validation process.
5.2 Parser 29 Figure 5.2: Data Product DP1 subgraph that is used as an input for validation It is important to note that the rewriting rules X used by the Parser and the code metadata used by the Translator are supplied by the federated team. This guarantees that policies are accurately interpreted and that the validation processes are correctly implemented. In the following sections, the parser and the translator will be described in detail. Running example: Data Product DP1subgraph Following our running example, Figure 5.2 outlines a subgraph of ∆corresponding to DP1 . In this case, DP1 is a Tabular dataset ( DT T1 ) and is accessed by a Static path ( TA1 ). DC1 outlines that DP1 has p1 policy which mandates for the anonymization of Subject. At the same time, DC1includes a mapping (map1) that maps DP1ID attribute to Subject1feature. Based on this subgraph, Ωis employed to find whether DP1 is compliant with p 1. 5.2 Parser To interpret Policies P and their semantics, the Parser (Figure 5.3) is responsible for mapping DP metadata to a Policy Checker pc , which serves as a logical data validation workflow.
30 Chapter 5 - Contract Validation Figure 5.3: Parser representation Policy Checker Components Policy Checker P C ::= ⟨IOP, OP S+|P R+, REP, P, DP ⟩; Initial Operation IOP ::= ⟨OP N, P AR, OUT ⟩; Operation OP S ::= ⟨OP N, [AT T R],[P AR], IN, OUT ⟩; Predicate P R ::= ⟨LO, OP, RO, OUT⟩; Operation Name OP N ::= action|LoadData Left0perand LO ::= IN|AT T R RightOperand RO ::= value Operator OP ::= gteq|lt Parameter P AR ::= path Attribute AT T R ::= name IN IN ::= data|bool OUT OUT ::= data|bool Report REP ::= true|false Table 5.1: Policy Checker pc Abstract Syntax 5.2.1 Policy Checkers Policy Checkers serve as an intermediate representation, mapping P and their relation to DP to precise semantics. This approach ensures the correct interpretation of a specific pand allows for its later translation into a UDF. Mapping to an intermediate language or representation is a common approach in Model-Driven Engineering(MDE) and compiler design [53]. Additionally, intermediate languages are also used by data ecosystems for data usage control [47]. The novelty of Policy Checkers is that they are tailored for data validation and are represented as a workflow in ∆.∆already includes all the metadata artefacts of the systems. Thus, adding data validation workflows allows for traceability, transparency and further automation and optimizations. This approach is not observed in current solutions, where they instead rely on centralized data validation mechanisms, obscuring the logic behind validation [16].
5.2 Parser 31 Figure 5.4: Graph rewriting illustration [55] A Policy Checker PC (Table 5.1) 1 validates a specific DP according to a specific p∈P and consists of an Initial Operation IOP , a set of Operations OP S and/or Predicates PR and Report REP . An Initial Operation IOP is a special construct that includes an Operation Name OP N , a Parameter PAR and an Output OUT . This is instantiated to handle any initial dependencies for the rest of the workflow, such as loading data. Operations OP S and Predicates P semantics are very similar to ODRL Actions and Constraints, respectively. However, they serve as an abstraction and are used to be annotated with specific DP metadata, such as attributes ATT R , parameters PARAM , input IN and output OUT constructs. The Report REP is used to determine the outcome, either affirming or negating the policy compliance. The current syntax is designed to support ODRL Actions and Constraints regarding data validation. Note that this representation can be expanded to support other constructs and policy languages in future work. 5.2.2 Graph rewriting Since ∆is encoded in a graph representation, graph rewriting or graph transformation is employed as a foundation to generate specific Policy Checkers. Graph rewriting is a flexible and intuitive, yet formally rigorous method for model transformation [54]. The method involves rules that describe how one graph (or part of a graph) can be replaced or transformed into another. In this context, a graph rewriting rule (Figure 5.4) is a rule that describes how a subgraph (pattern graph) can be replaced or transformed into another subgraph (replacement graph). A rule is usually defined as a pair of morphisms (L, R)where: •L (the left-hand side) represents the pattern to find in the graph or pattern graph. •R (the right-hand side) represents what the pattern should be replaced with or transformed into. Based on this idea, 5.1 represents an example rewriting rule X inspired by SPARQL 1A+ represents one or more cardinality, A* represents zero or more. Uppercase are non-terminal symbols and lowercase represent terminal symbols
32 Chapter 5 - Contract Validation Figure 5.5: Generated Policy Checker (pc1) by Parser component syntax. In the example, an instance ? t of TechnologyAspects TA of a specific DP x , determines the initial operation IOP x′ .This is denoted through a mapping function f(?t, ?x) = x′. (?xa DP)∧(?xtb:hasTA ?t)→(x′a tb:IOP)∧(pc tb:nextStep x′)∧(x′=f(?x, ?t)) (5.1) Rewrite rules X are defined by the Federated Team, ensuring the correct interpretation of Pand adequate mapping between DP and pc. The parser is responsible for executing these rules efficiently. Graph rewriting provides a robust and versatile framework for modelling complex transformations and behaviours. However, the performance and maintenance challenges require consideration. Finding subgraphs that match a given pattern L is known as subgraph isomorphism, which is computationally intensive and generally NP-complete [56]. Thus, the parser should include optimization strategies such as caching match results, using efficient data structures, or parallelizing independent rewriting operations.
6.1 Proof of Concept 39 template for Operation. The key idea is to create a self-contained function that includes its dependencies, such as necessary library imports, within the function itself. 1def {{ name }}({{" ,". join ( params ) }}) : 2{% for library in libraries %} 3import {{ library }} 4{% endfor %} 5{% for line in codelines %} 6data = {{ line }} 7{% endfor %} 8return data Listing 6.2: Example Jinja code template for an operation Once a function is compiled, Python decorators are employed to add auxiliary functions for pre-processing and post-processing of data. By utilizing decorators, the translator is able to construct a final function that encapsulates all the steps of the overall pc . The final compiled function can then be executed on data sources, adding additional annotations, such as the implementation details used and the result of the execution (i.e., a boolean value affirming or negating data product policy compliance). By combining metaclasses, code templates, and decorators, the system dynamically generates and compiles the necessary functions at runtime, ensuring that the Policy Checkers steps can be mapped to a specific processing. This methodology enhances the reusability of code, thereby improving maintainability and scalability. 6.1.4 Contract validation example The demo.ipynb notebook represents an overall execution of the contract validation framework Ω. For the prototype, we utilize Papermill 4 module to parameterize and execute the different notebooks available. Assuming that both DP1 and DP2 should be compliant with p1 , the demo simulates Algorithm 1 where a data consumer is asked to select a CMD . Once selected, a SPARQL query can be used to retrieve the associated Data Products through their contracts DC. For each retrieved DP , the parser creates the set of C policy checkers and adds them to ∆. Finally, another SPARQL query can be used to retrieve the generated C , translate them and execute them over DP , annotating C with specific implementations and execution results. Appendix B.1 and B.2 show examples Policy Checkers in turtle format for validating both a Tabular dataset ( DP1 ) and an Image in DICOM ( DP2 ) respectively. The policy used is the ODRL privacy policy introduced in Listing 2.1 and used during the running example. Figure 6.1 presents a subgraph example of DP1 metadata after validation of p1 . As observed, all the metadata about the validation process and concrete algorithms and code is attached. Additionally, the execution result is added to the Report reporting that 4https://papermill.readthedocs.io/en/latest/
40 Chapter 6 - Experimentation Figure 6.1: Subgraph for DP1after validation anonymization has not been performed. This allows for traceability and transparency of the validation process. 6.2 Data Quality Vocabulary support Policy checkers currently enable the validation of policies that can be expressed using ODRL actions and constraints. In this section, we experiment with the framework by expanding its support to include the Data Quality Vocabulary (DQV), another W3C recommendation vocabulary. DQV allows the expression of the quality of data assets in a consistent and interpretable manner. Figure 6.2 presents a detailed view of DQV. The vocabulary defines QualityMeasurements as a means to provide quantitative or qualitative information about data. Each measurement results from the application of a Metric, a standard procedure for measuring a data quality dimension by observing concrete features in the data that indicate its quality. Metrics can be associated with a Quality Dimension (refer to Section 2.4) and be part of a QualityPolicy. This vocabulary is utilized in works such as [16,41]. DQV can be embedded into ODRL following the approach introduced by [32], enabling the specification of QualityPolicies. This fact facilitates the integration of the vocabulary into the current Policy Checker representation. Listing 6.3 presents an example of a data quality policy embedded in ODRL in a machine-readable format. This policy expresses a duty with a constraint defined using a DQV QualityMeasurement (NonNullValuesCount) that must be greater than a certain
6.3 Framework Analysis 41 Figure 6.2: Data Quality Vocabulary [32] value (99 percentatge) on the attribute Age. In this case, the NonNullValuesCount represents the percentage of non-null values of an attribute. To validate this policy, the Parser translates it into a data validation workflow. Figure 6.3 presents the example generated policy checker ( pc ) for DP 1. In this scenario, the NonNullValuesCount data quality measurement is mapped to a pc Operation, and the constraint is mapped to a pc Predicate. Thus, the NonNullValuesCount is first calculated, and the result is evaluated to determine if it is greater than the compared value (99). For creating this policy, a SPARQL CONSTRUCT template is manually created and added to a folder with all the existing rules for the parser to consider. Additionally, an implementation in JSON-LD is added to support Tabular format. To verify that the rule and implementation are successfully developed, p 2is added to DP1 manually through the ”Register DPX.ipynb” notebook and ”demo.ipynb” is executed again. The final output for the policy checker can be found in Appendix B.3. 6.3 Framework Analysis The proposed contract validation framework is designed for complex federated data scenarios, such as data spaces. To our knowledge, the only existing work that examines data quality in data ecosystems is presented by [16]. This study analyzes three different use cases and proposes a design theory along with testable propositions as a framework for evaluating emerging solutions. In this section, we use these testable propositions to conduct an initial analysis of our current solution, highlighting its potential benefits and limitations.
42 Chapter 6 - Experimentation Figure 6.3: Policy Checker pc for a Data Quality Policy. This pc validates p 2according to DP1
6.3 Framework Analysis 43 1" @id ": " ab :p2", 2" @type ": " dqv: QualityPolicy ", 3" odrl :duty ": [ 4{ 5" @id ": " ab : CompleteDuty ", 6" @type ": " odrl : Duty ", 7" odrl : target ": { 8" @id ": " ab: Age " 9}, 10 " odrl : constraint ": [ 11 { 12 " @id ": " odrl :c1", 13 " @type ": " odrl : Constraint ", 14 " odrl : operator ": " odrl : gteq ", 15 "odrl:rightOperand": { 16 " @value ": "99" , 17 " @type ": " xsd : decimal " 18 }, 19 " odrl : leftOperand ": [ 20 { 21 "@id ": "ab: NonNullValuesCount ", 22 " @type ": " dqv : QualityMeasurement " 23 } 24 ] 25 } 26 ] 27 } Listing 6.3: Data Quality Policy p2using ODRL 6.3.1 Effectiveness and Fitness for Use TP1: Effectiveness ”The data quality tool can successfully identify quality issues in the data domain for which it is intended” Category Current Support Schema Validation Available through ODRL Constraints Data Correctness and Consistency Not available Statistical Properties Available through DQV Quality Measurements Fairness Available through Policy Checkers Privacy Available through ODRL Actions Table 6.2: Framework Current Support based on [37] classification Table 6.2 presents the current support of the framework according to [37] classification of solutions for automated data validation (refer to 2.4 for additional details). The current implementation supports a narrow subset of ODRL+DQV and is capable of performing Schema Validation, Privacy and Statistical Properties validation, as demonstrated in Sections 6 and 6.2, respectively. Additionally, the current state partially supports Fairness, as the policy checkers include annotations that facilitate the traceability and transparency of the validation process. Data Correctness and Consistency are not supported in this initial implementation but could be incorporated in future iterations. Therefore, we argue that the current framework has the potential to effectively identify a wide range of issues that require data validation.
44 Chapter 6 - Experimentation TP3: Fitness for Use ”The data quality tool allows for configuration to the diverse data quality needs of data consumers within the data ecosystem” The current implementation has been tested using only a dataset related to health data. The solution demonstrated its potential by validating DICOM images while preserving their original format. This capability is attributed to the expressiveness of UDFs and the extensive repository of Python modules available for data science, which enables compatibility with a variety of formats. The potential of the framework is validated with experts from INCISIVE. Additionally, the proposed framework is designed with scalability in mind. With extensive rewrite rules and implementations, the policy checker representation would provide flexible means for adapting to complex policies and data formats. 6.3.2 Connectivity and Efficiency TP2: Connectivity ”The data quality tool can integrate with data space connectors on the data provider and data consumer sided” The current solution utilizes mainly Semantic Web technologies and W3C recommended vocabularies, which already implies a significant step for interoperability and standardization. Data space connectors from data providers could install the translator component and receive policy checkers and code metadata from RDF repositories for validating data before it is shared. Additionally, Most existing data space connectors utilize the ODRL language for implementation [28], suggesting a potential integration with the current state of policy checkers. The proposed framework assumes the presence of certain metadata, such as DT T (specifying format) and TA (specifying access). This metadata is typically available in most contemporary data ecosystem information models [14]. However, the current implementation is still an initial prototype and requires further development to guarantee the robustness and potential integration with existing connectors. TP5: Efficiency ”The data quality tool conducts quality analyses in an appropriate amount of time” The current implementation of the parser and translator does not include any optimization. Thus, performance and scalability are not guaranteed in this initial solution. Moreover, the current implementation still requires substantial manual input, including the rewrite rules and implementations. This poses limitations in creating an extensive experimental setup to evaluate the efficiency of the framework.
6.3 Framework Analysis 45 6.3.3 Simplicity and Clarity TP4: ”The data quality tool produces easy-to-understand results” The current implementation utilizes very simplistic policies that include only actions and constraints. This approach is designed for demonstration purposes and ensures ease of understanding. However, policies can become more complex, as noted by [46], incorporating refinements and potential policy conflicts. Furthermore, the Policy Checker representation is very simple and self-explanatory, with validation reports indicating compliance or non-compliance with a policy. TP5: ”The data quality tool offers explanations about its results and algorithmic basis to avoid ambiguity” Policy checkers include the implementations at each step, which allows for clear traceability of the underlying algorithms. Although the current implementation does not provide intermediate results and execution times between steps, these are estimated to be added in future iterations to further enhance the transparency and tracability of the validation process.
7 Conclusion and Future Work In this master thesis, we tried to answer the primary research question based on the following two objectives: • Investigate the main components, roles, and workflows necessary for automating data validation in a complex federated scenario. • Develop a method to automatically validate heterogeneous data in the presented scenario. To achieve the first objective, our initial step involved an investigation of current solutions and their limitations. In Chapter 3, we found that the current state of data validation in the federated data ecosystem still has significant research gaps. In Chapter 4, we proposed an innovative architectural framework for federated data management. This architecture also represented a complex data federation and defined the problem more precisely. The contract validation framework is described in Chapter 5 as a collection of components, roles, and workflows derived from the conceptual architectural framework. Policy Checkers and their translation to UDFs are presented as a potential solution that can adapt to the complexities of federated data ecosystems. In Chapter 6, a proof of concept implementation is introduced to demonstrate how the solution could be applied. We expanded on this by using the Data Quality Vocabulary and conducting an initial analysis of the framework, which helped us to identify the potential and limitations of the current solution. Overall, the research made in this master thesis presents an innovative data governance framework for automated data validation that adapts to the complexities inherent to federated data ecosystems. Therefore, the main objectives of this master thesis are fulfilled. 46
7.1 Ethics and Biases 47 7.1 Ethics and Biases This master thesis introduces a conceptual framework along with a corresponding mechanism designed to automate the process of data validation. The framework is described using metadata artefacts and is purposefully designed to be free from biases and ethical considerations. Furthermore, the suggested framework is overseen by a federated team, which must include ethical experts tasked with ensuring that the system operates without any biased rules. 7.2 Future Work The initial analysis of the framework, presented in Section 6.3, introduced some limitations that could be addressed in future work. Effectiveness The current Policy Checker representation supports a narrow subset of ODRL and DQV and constructs. Support for additional constructs (e.g. ODRL refinements) and potential vocabularies (e.g. DPV [62]) could enhance the expressivity and support of the solution. In addition, Policy semi-automatic negotiation and conflict resolution mechanisms could enhance the practical applicability of the solution [47]. Fitness for use More datasets for other use cases other than healthcare could be used to test the framework. The applicability of our solution could be tested against CYCLOPS project case studies 1 , which incorporate multiple domains such as tourism, manufacturing, etc. Connectivity While the solution utilizes extensively semantic web technologies for interoperability and standardization, the current implementation is still an initial prototype and requires further development. In future iterations, the potential integration can be tested using tools such as ODIN and data space connectors such as FIWARE 2 . Efficiency One of the main limitations is that the current implementations require a lot of manual input. Thus, the following tools could be developed to help improve the efficiency of the solution: •An interface for creating rewrite rules. • Data mining scripts to extract code metadata from available knowledge bases [63] Large Language Models (LLMs) could also be considered for automating the generation of implementations [64] 1https://www.cyclopsproject.eu/case-studies/ 2https://github.com/FIWARE/data-space-connector
48 Chapter 7 - Conclusion and Future Work With an extensive set of policies and implementations, a study for the efficiency and scalability of the solution could be conducted. From this study, possible optimizations for the parser [61] and the translator [65] could be added. Simplicity Even though the current validation reports can be queried from the knowledge base and provide very simple results, Policy Checkers are still viewed in a machinereadable form (i.e. RDF). Thus, the development of the following mechanisms could enhance the user experience. •An interface to present in a human-readable way extensive validation reports. • An interface to declare in a human-readable way policies and a mechanism to automatically transform the policy to machine-readable [66]. Clarity While the current solution allows for extensive transparency and traceability of logical and algorithmic implementation, more mechanisms for explainability could be introduced such as recommendations of possible issues encountered. Additionally, the framework could include mechanisms for prescriptive analytics that could aid the user in fixing data quality issues [67].
References 55 32. Albertoni, R. & Isaac, A. Introducing the data quality vocabulary (DQV). Semantic Web 12, 81–97 (2021). 33. Steyskal, S. & Polleres, A. Towards Formal Semantics for ODRL Policies. http://www. w3.org/community/. 34. MOBILITY DATA SPACES AND MAAS BUILDING A COMMON, CONNECTED, AND INTEROPERABLE GROUND FOR THE FUTURE OF MOBILITY (2022). 35. Wang, R. Y. & Strong, D. M. Beyond accuracy: What data quality means to data consumers. Journal of management information systems 12, 5–33 (1996). 36. Byabazaire, J., O’hare, G. & Delaney, D. Data Quality and Trust: Review of Challenges and Opportunities for Data Sharing in IoT. Electronics 2020, Vol. 9, Page 2083 9, 2083. issn: 2079-9292. doi: 10.3390/ELECTRONICS9122083 . https://www.mdpi.com/ 2079-9292/9/12/2083/htm%20https://www.mdpi.com/2079-9292/9/12/2083 (12 Dec. 2020). 37. Biessmann, F., Golebiowski, J., Rukat, T., Lange, D. & Schmidt, P. Automated Data Validation in Machine Learning Systems. https://www.nytimes.com/2016/09/15/ business/fatal-tesla-crash-in-china-involved-autopilot- (2015). 38. Schelter, S. et al. DEEQU - Data quality validation for machine learning pipelines in NeurIPS 2018 (2018). https://www.amazon.science/publications/deequ-data- quality-validation-for-machine-learning-pipelines. 39. Breck, E., Polyzotis, N., Roy, S., Whang, S. E. & Zinkevich, M. DATA VALIDATION FOR MACHINE LEARNING (2019). 40. Ehrlinger, L. & W¨oß, W. A Survey of Data Quality Measurement and Monitoring Tools. Frontiers in Big Data 5, 850611. issn: 2624909X. doi: 10.3389/FDATA.2022.850611/ BIBTEX (Mar. 2022). 41. Dorsch, R., Freund, M., Fries, J. & Harth, A. GraphGuard: Enhancing Data Quality in Knowledge Graph Pipelines. http://ceur-ws.org (2023). 42. Ragothaman, K., Wang, Y., Rimal, B. & Lawrence, M. Access control for IoT: A survey of existing research, dynamic policies and future directions. Sensors 23, 1805 (2023). 43. Paneque, M. et al. An ontology-based secure design framework for graph-based databases. Computer Standards Interfaces 88, 103801. issn: 0920-5489. doi: 10.1016/J.CSI. 2023.103801 (Mar. 2024). 44. Samarati, P. MoSAICroWN-data Protection in the data Market Scenario. The Climate Action, 202038 (2020). 45. Al Bassit, A., Krasnashchok, K., Skhiri, S. & Mustapha, M. Policy-based automated compliance checking in International Joint Conference on Rules and Reasoning (2021), 3–17. 46. Dam, T., Krimbacher, A. & Neumaier, S. Policy Patterns for Usage Control in Data Spaces. http://ceur-ws.org (2023). 47. Hosseinzadeh, A., Eitel, A. & Jung, C. A Systematic Approach toward Extracting Technically Enforceable Policies from Data Usage Control Requirements. doi: 10.5220/ 0008936003970405. 48. Dehghani, Z. & Fowler, M. Data Mesh: Delivering Data-driven Value at Scale isbn: 9781492092391. https://books.google.es/books?id=M5J5zgEACAAJ (O’Reilly Media, 2022).
56 References 49. Ji, S., Pan, S., Cambria, E., Marttinen, P. & Philip, S. Y. A survey on knowledge graphs: Representation, acquisition, and applications. IEEE transactions on neural networks and learning systems 33, 494–514 (2021). 50. Kebede, M. G., Sileno, G. & Engers, T. V. A critical reflection on ODRL. 51. Fornara, N. & Colombetti, M. Operational semantics of an extension of ODRL able to express obligations in Multi-Agent Systems and Agreement Technologies: 15th European Conference, EUMAS 2017, and 5th International Conference, AT 2017, Evry, France, December 14-15, 2017, Revised Selected Papers 15 (2018), 172–186. 52. Becker, S., H¨uck, B., Naujokat, K., Schmeiser, A. F. & Kasten, A. ODRL 2.0 revisited (2013). 53. Schmidt, D. C. et al. Model-driven engineering. Computer-IEEE Computer Society- 39, 25 (2006). 54. K¨onig, B., Nolte, D., Padberg, J. & Rensink, A. A tutorial on graph transformation. Graph Transformation, Specifications, and Nets: In Memory of Hartmut Ehrig, 83–104 (2018). 55. Kolbeck, L., Vilgertshofer, S., Abualdenien, J. & Borrmann, A. Graph rewriting techniques in engineering design. Frontiers in built environment 7, 815153 (2022). 56. McCreesh, C., Prosser, P., Solnon, C. & Trimble, J. When subgraph isomorphism is really hard, and why this matters for graph databases. Journal of Artificial Intelligence Research 61, 723–759 (2018). 57. ˇ Stuikys, V. & Damaˇseviˇcius, R. Meta-programming and model-driven meta-program development: principles, processes and techniques (Springer Science & Business Media, 2012). 58. Lilis, Y. & Savidis, A. A survey of metaprogramming languages. ACM Computing Surveys (CSUR) 52, 1–39 (2019). 59. Bakas, S. et al. Multi-parametric magnetic resonance imaging (mpMRI) scans for de novo Glioblastoma (GBM) patients from the University of Pennsylvania Health System (UPENN-GBM) (Version 2) Data set. 2021. doi: 10.7937/TCIA.709X-DN49 . https://doi.org/10.7937/TCIA.709X-DN49. 60. Duval, D., Echahed, R. & Prost, F. An algebraic graph transformation approach for RDF and SPARQL. arXiv preprint arXiv:2012.01658 (2020). 61. Schmidt, M., Meier, M. & Lausen, G. Foundations of SPARQL query optimization in Proceedings of the 13th international conference on database theory (2010), 4–33. 62. Pandit, H. J. et al. Data Privacy Vocabulary (DPV)–Version 2. arXiv preprint arXiv:2404.13426 (2024). 63. Abdelaziz, I., Dolby, J., McCusker, J. P. & Srinivas, K. A Toolkit for Generating Code Knowledge Graphs. The Eleventh International Conference on Knowledge Capture (K-CAP) (2021). 64. Wang, J. & Chen, Y. A Review on Code Generation with LLMs: Application and Evaluation in 2023 IEEE International Conference on Medical Artificial Intelligence (MedAI) (2023), 284–289. 65. Ali, S. M. F. & Wrembel, R. Towards a cost model to optimize user-defined functions in an ETL workflow based on user-defined performance metrics in Advances in Databases and Information Systems: 23rd European Conference, ADBIS 2019, Bled, Slovenia, September 8–11, 2019, Proceedings 23 (2019), 441–456.
References 57 66. Dong, Z., Paul, S., Tassenberg, K., Melton, G. & Dong, H. Transformation from humanreadable documents and archives in arc welding domain to machine-interpretable data. Computers in Industry 128, 103439 (2021). 67. Frazzetto, D., Nielsen, T. D., Pedersen, T. B. & ˇ Sikˇsnys, L. Prescriptive analytics: a survey of emerging trends and technologies. The VLDB Journal 28, 575–595 (2019).