Data Provenance: What Next?

Data Provenance: What Next?

Data Provenance: What next? Peter Buneman Wang-Chiew Tan University of Edinburgh Megagon Labs [email protected] [email protected] ABSTRACT formation. So what do we record? We may – as is the Research into data provenance has been active for al- case with physical artefacts – have some standard at- most twenty years. What has it delivered and where will tributes (ownership, location etc.) but for computational it go next? What practical impact has it had and what processes and data can we predict what will be asked of might it have? We provide speculative answers to these provenance? Again we have to understand what kinds questions which may be somewhat biased by our initial of explanation we are likely to want. Is there any min- motivation for studying the topic: the need for prove- imal requirement on what we should record or how we nance information in curated databases. Such databases should record it? involve extensive human interaction with data; and we For most purposes, what we should record is applica- argue that the need continues in other forms of human tion dependent. For example, if an application is target- interaction such as those that take place in social media. ing to answer the provenance of a sales figure reported in a company earnings report, then the data provenance that consists of the source data and the program or query that was used to generate the report are likely to be suf- 1. INTRODUCTION ficient. However, sometimes, intermediate sales results The purpose of this paper is neither to define prove- from specific regions are combined with other data sources nance nor to provide a survey of the relevant research; or results from other regions to generate the final report. there are numerous contributions to the literature that In this case, to provide a comprehensive understanding do this [19, 18, 25, 45, 49, 71, 28]. What we hope to do of the sales figure in the company earnings report, it may here is to draw out new strands of research and to indi- also be necessary to track the programs that were used cate what we can do practically on the basis of what we to generate the intermediate results. now know about provenance. A good starting point is In yet another type of application, it is important that to state two generally held but conflicting observations: the results are repeatable and reproducible. This is true first that the more provenance information one can col- of experiments in chemistry and physics where it is not lect the better; second that it is impossible in practice to only crucial that one can obtain the same results by re- record all relevant provenance information. running the experiments but also by running it at other Before narrowing our discussion to data provenance, locations. Software repeatability and reproducibility have let us look at these two observations. Imagining the im- also become an important topic. To enable software re- possible, suppose we could record all the provenance producibility, it is typically necessary to document the associated with some process or artefact (digital or oth- hardware, the version of operating system and software erwise). In what would be a massive amount of prove- libraries used, in addition to the program and data used nance data, would we be able to answer simple ques- to execute the experiment. tions such as where some data was copied from or whether Insofar as data provenance is separable from other a process invoked a particular piece of software? Such forms of provenance [8, 26] we focus on provenance questions may involve the querying of huge data sets that has to do with data: databases, data sets, file sys- and complex code. So simply recording total prove- tems etc. In the Background section that follows, we nance, even if it were possible, still requires complex summarise some of the important research contributions analysis. It requires us to extract simple explanations to data provenance, the motivation behind the research from a massive and complex structure of data and code. and the practical applications of it. In Section 3, we then What are those explanations? look at possible applications of provenance in other ar- Being more realistic, in practice, we only have re- eas of computer science. sources to record a limited amount of provenance in- SIGMOD Record, September 2018 (Vol. 47, No. 3) 5 2. BACKGROUND joining three tuples (Carl, Bob), (Bob, 30, analyst), and As often happens, the first paper that addressed prove- (Carl, 50, analyst) from the input. The why-provenance nance [78] in databases had to be “rediscovered” sev- of the output consists of the same three source tuples. eral years after it was written. This paper introduced We will discuss the finer differences between the latter a form of tagging or annotation to describe the source two types of provenance in Section 2.1. However, it is of elements of a relational database, a form of where- important to note that to fully explain why the output tu- provenance. Then in the later 1990s under various names ple exists, one must also account for the query. That is, the study started in earnest. In [79] a method based these three tuples satisfy all the equality condition in the on inverse functions was used to visualize the lineage where clause of the query. of data in scientific programming; and in [21, 22], in What we should again emphasize is that the purpose the context of data warehouses, an operational defini- of data provenance is to extract relatively simple expla- tion was given of what tuples in some source data “con- nations for the existence of some piece of data from tributed to” a tuple in the output of a relational query – some complex workflow of data manipulation. In this perhaps a form of why-provenance. sense it has a similar purpose to program slicing which The authors’ interest in the topic was sparked by their seeks to provide an explanation for a part of the output collaboration with biologists [44] involved in the Hu- of some complex program to a small part of the input man Genome Project who were building curated databases – an explanation that is much simpler than the program of molecular sequence data. While a curated database itself. resembles a data warehouse in the integration of exist- Given that provenance is about explanation of some ing databases, it also involves the manual correction and part of a complex process, it is natural to ask whether augmentation of the source data, and it cannot simply there is a unified language or model for describing prove- be characterized as a data warehouse or view. The biol- nance. PROV is a W3C recommendation for a model ogists complained that they were losing track of where or ontology in which one can describe provenance [60, their data had come from. Now biologists are, by train- 58]. The intention is to produce a general model for ing, quite meticulous in keeping a record of what they any kind of provenance such as that associated with arte- have done – in this case what queries they have made facts or some general computational process. At its core, or what manual additions or corrections were made, so PROV can be used to describe causal relationships be- in some sense the provenance of some small element of tween entities and activities, and in doing this can nat- data – a number or a tuple – was available. However urally describe the evaluation of a workflow. Because extracting the information they needed from a complex of this the term “workflow provenance” has sometimes workflow of updates and queries on other databases was been used to distinguish the ambit of PROV from that of proving difficult. What they appeared to need was a sim- data provenance. Worse, the terms “fine-grained” and ple explanation e.g.: “this number was entered by ... on “coarse-grained” have been used for this distinction. We ...” (where-provenance); or “this tuple was formed by do not believe these distinctions to be helpful. While it is straightforward to use PROV to describe some ba- joining tuple t1 from R1 to tuple t2 from R2” (how- provenance); or “this tuple is in the result because some sic aspects of data provenance, we do not do so in this other tuple was in the input” (why-provenance). paper because it does not add much to the formalisms The example in Figure 1 illustrates the types of prove- that have been found useful in the context of databases. nance described above. Consider a Friend relation, a Conversely, there is no reason why the formalisms de- Profile relation, and a query that joins the two rela- veloped for “fine-grained” data manipulation cannot be tions to find pairs of friends with identical occupations used in a larger context as we shall see in Section 3.1. (shown below). 2.1 Annotation and provenance select f.name1, f.name2 from Friend f, Profile p1, Profile p2 From the beginning it was recognized that provenance where f.name1 = p1.name and should be expressed as a form of annotation. This was f.name2 = p2.name and precisely the purpose of the Polygen model [78]: to p1.occupation = p2.occupation annotate data elements with their provenance. How- ever, there is a much more fundamental connection be- The value “Carl” in the result is derived from the value tween the two topics, which again shows up in curated “Carl” in the Friend relation. Hence, if there were an databases. Much of curated data is about annotation of annotation on who entered that information and when, existing data structures.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    12 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us