Leveraging data lineage to infer logical relationships between astronomical catalogs
Abstract
A novel method to infer logical relationships between sets is presented. These sets can be any collection of elements, for example astronomical catalogs of celestial objects. The method does not require the contents of the sets to be known explicitly. It combines incomplete knowledge about the relationships between sets to infer a priori unknown relationships. Relationships between sets are represented by sets of Boolean hypercubes. This leads to deductive reasoning by application of logical operators to these sets of hypercubes. A pseudo code for an efficient implementation is described. The method is used in the AstroWISE information system to infer relationships between catalogs of astronomical objects. These catalogs can be very large and, more importantly, their contents do not have to be available at all times. Science products are stored in AstroWISE with references to other science products from which they are derived, or their dependencies. This creates a full data lineage that links every science product all the way back to the raw data. Catalogs are created in a way that maximizes knowledge about their relationship with their dependencies. The presented algorithm is used to determine which objects a catalog represents by leveraging this information.
Keywords
Data mining Data lineage Algorithms Automated theorem solving AstroWISE1 Introduction
A set is a collection of elements. For example, an astronomical catalog is a set with celestial objects as elements. These sets have relationships with one another, for example a set could be a subset of another set. The relationships between sets can be inferred by comparing their elements. However, this is only possible when it is feasible to iterate over all the elements in the sets. A novel method is presented that does not require the contents of the sets to be known explicitly. A priori unknown relationships between sets are inferred by combining incomplete information that is available.
The method is designed for the AstroWISE information system to infer relationships between astronomical catalogs [1]. Catalog handling using this method is discussed in the following sections. However, the method is generic enough to be used for other purposes.
Catalogs can be stored and even used in AstroWISE without determining their full contents. The creation of the catalog data is postponed until necessary and the result is only stored when beneficial for performance. That is, the information system will only derive those parts of a catalog that are required for further processing. As a result, the catalog data might not be available as a whole when the catalog is used. One of the key aspects of AstroWISE is that science products are automatically found or created when requested. This requires the information system to be able to infer the contents of the catalogs automatically. Determining the contents of the catalogs has to be possible without requiring access to the catalog data itself, since this might not be stored.
AstroWISE stores science products with all the information required to (re)create the data. In particular, every science product is stored with links to other science products from which it was derived, called its dependencies. This creates full data lineage that links data products all the way back to the raw data. As a result of this, every catalog ‘knows’ from which other catalogs it is derived. In particular, it is known which relations might hold between the sets of sources of a catalog and those of its dependencies. A priori only this local information about the relationships between catalogs is available. A more global overview of the relationships between catalogs is necessary for the desired automation. The presented method combines this local information to achieve the required knowledge.
The novelty of the method is the use of Boolean hypercubes to represent relations between sets. Relationships between specific sets are represented as sets of hypercubes in order to account for incomplete knowledge. This makes it possible to deduce relationships by application of logical operators on these sets of hypercubes.
Ultimately, the presented method is a specialized form of automated theorem proving. Other such methods could be used to infer relationships, for example software that can solve the problems in the SET domain of the TPTP Problem Library^{1} [7]. Those methods are very generic and can be used to solve several kinds of logical problems. The presented mechanism is more specific: while the used hypercube representation is natural for dealing with sets, it is not directly applicable to more general problems.
Relational databases can use similar mechanisms for query optimization (see for example [2] for an overview). These are embedded in the optimization algorithms and are therefore not directly applicable to the requirements of AstroWISE.
This paper is structured as follows. The representation of relationships by means of sets of hypercubes and the details of the method are given in Section 2. Applications of the presented mechanisms in AstroWISE are discussed in Section 3. Subsequently, the pseudocode of the algorithms is given in Section 4. This is followed by an example in Section 5 and conclusions in Section 6.
2 Description of algorithms
The basis of the method is the use of Boolean hypercubes to represent logical relations between sets (Section 2.1). The relationships between specific sets are represented by means of a set of hypercubes to account for incomplete knowledge (Section 2.2). Deduction is possible through application of logical operators on the sets of hypercubes (Section 2.3). Scalability in implementation is achieved by optimizing important logical operators (Section 2.4). Pseudo code for an implementation of the method is given in Section 4.
2.1 Relations as hypercubes
Examples of hypercube representations of low dimensional relations
Every logical relation between n sets can be represented by means of an ndimensional hypercube. This is done by identifying each of the 2^{ n } possible intersections between the sets with one of the vertices of the hypercube. A vertex in the second position of a specific dimension represents objects that are elements of the set corresponding to that dimension. A vertex in the first position of the dimension represents objects not in the corresponding set. For example, the vertex that is in the second position in all dimensions represents objects that are in all the sets described by the hypercube. The vertex that is in the first position in all dimensions represents objects that are in none of the sets under consideration. A Boolean value can be assigned to each vertex to indicate whether the corresponding intersection between sets contains any objects: a Boolean True value is assigned if the vertex represents one or more objects and a Boolean False value is assigned if it does not. The collection of all objects—whether inside a set or not—is called the universe, which can be empty.
This hypercube representation of relations between sets is similar to Karnaugh maps [5] and to the hypercube representation of logical operators by [3]. Furthermore, the hypercubes can be translated into shaded Venn diagrams [8] by assigning every vertex to a region of overlap in the Venn diagram.
2.2 Relationships as sets of hypercubes
A relationship between specific sets is described with a set of all hypercubes that are consistent with the available knowledge about the relationship. This stems from our astronomical requirements, where the exact relationship between sets is not always known. For example, there are four different hypercubes that represent an equality: between empty or nonempty sets and with or without objects outside the considered sets (Table 1). Representing that two sets are identical, without any extra available information, should therefore be done with a set of these four hypercubes. However, more information is usually not necessary: it is enough to determine that the relationship between two sets must be one of these four in order to infer that they are equal.

The Contradiction, an empty set of hypercubes: there is no relation between the sets that is consistent with the available knowledge.

An Exact Relation, a set with exactly one hypercube: there is only one relationship possible between the sets; everything is known about the sets under consideration.

An Inexact Relation, a set with more than one hypercube: there are several relations that are consistent with the available knowledge.

The Tautology, a set with all \(2^{2^n}\) possible hypercubes representing n sets: every relationship is possible; nothing is known about these sets.
A relationship also represents knowledge about sets that do not correspond to any dimension of the hypercubes. For example, an empty universe can be represented with a hypercube of any dimension with False as the value of all vertices. Such a relation implies that all sets, also those that have no corresponding dimension in the hypercube, must be empty. Most relationships are less strict: in general they tend to represent the tautology for sets that have no corresponding dimension.
2.3 Logical operations on relations
A natural way to apply logical operators to relations follows from the use of sets of hypercubes to represent the relations. The basic principle is that applying a logical operator to one or more relations, amounts to applying this operator to their corresponding sets of hypercubes. This leads to an implicit way to infer unknown relationships from known ones by application of the material (non)implication.

Conjunction (AND, ∧, ∩): Combines two relationships that are both known to hold. The result of P ∧ Q is a relationship represented by hypercubes that are consistent with both a hypercube in P and one in Q.

Disjunction (OR, ∨, ∪): Combines relationships of which it is known that at least one of them holds. The result of P ∨ Q is a relationship represented by hypercubes that are consistent with a hypercube in P and/or one in Q.

Material Implication (→): Can be used to infer relations. The result of P→Q is a relationship with hypercubes that are consistent with both P and Q, together with those that are not consistent with P. The relationship P implies that relationship Q holds when P→Q results in the tautology. The material implication (P →Q) can be implemented as \((\neg(P \wedge (\neg Q)))\), which requires the negation operator. An implementation of the negation is not scalable; the material implication is therefore not suitable to prove whether unknown relations hold.

Material Nonimplication (\(\nrightarrow\)): Can also be used to infer relationships. The relation that is the result of the material nonimplication \((P \nrightarrow Q)\) is represented by the set of hypercubes that is consistent with P, but not with Q. This operation can be used to prove that relation Q must hold given P, because P implies Q when the result of the operation is the contradiction. This operation is more suitable for implementation than the material implication, because it always results in a relation that is represented by less hypercubes than the original relations.
2.4 Optimizations
Furthermore, sets that are equal can be represented with the same dimension of the hypercubes. This optimization would make the presentation of the algorithms more complicated without adding conceptual insights and is therefore not discussed in this paper.
3 AstroWISE
The presented method is used in the AstroWISE information system to handle astronomical catalogs. These catalogs contain information about astronomical objects and can therefore be seen as sets with these objects as elements. Catalogs in AstroWISE are primarily created either from images or by performing an operation on other catalogs; the mechanisms presented in this paper are only used for the latter kind.
3.1 Objects and dependency graphs
AstroWISE uses an ObjectOriented data model in which science products are stored as class instantiations. Every class forms a blueprint of how its instances should be processed to create the data from other objects. Every object has persistent properties that are stored in the database, which allows the object to be used across sessions and shared between scientists. The persistent properties of an object include all the details of its processing: its dependencies, and the values of any process parameters that can be set. Different catalog classes are designed for different operations to create catalogs.
3.2 Target processing
The heart of AstroWISE is its request driven way of data handling, called target processing [6]. In the traditional way of data handling, scientists start with a data set and perform operations until they reach their required end product. Target processing turns this around: scientists request the desired end product directly—their target—and the information system will create a dependency graph that ends with an object representing the requested data. The information system can reuse existing objects, possibly created by other scientists. Furthermore, it can autonomously create new objects, because the class definition forms a blueprint for new objects.
The data lineage allows any object to be processed at any time, because the object’s class and persistent properties describe how this can be done. This is taken to the extreme for catalog instances: catalogs can be created and stored without fully processing them, or without processing them at all [1]. In other words, it is not required to create or store the contents of a catalog as a whole, achieving the scalability required to handle large catalogs. Therefore, determining the contents of the catalogs should be possible without consulting the catalog data directly.
The information system can process catalogs partially by modification of dependency graphs. This allows new catalogs to be created in their most general form to maximize their reusability for future requests. At the same time this ensures that catalog data is only created when this is essential for the requested dataset. Optimization of the dependency graphs requires the information system to know as much as possible about the contents of the catalogs in the graph before they are processed.
3.3 Algorithm specifics
The presented method determines whether a desired relation holds by combining information about known relationships between catalogs. The catalog classes for AstroWISE are designed to maximize this a priori knowledge. In particular, every catalog class corresponds to a specific operation to derive catalog data from other objects. Many of these correspond to relational operators [4]. Each catalog class allows only a specific set of relationships between the sets of sources of a catalog and its dependencies.
Every catalog instance has partial knowledge about its relationship with its dependencies: it knows what relations are permitted by its class, not which of those actually holds. A priori this is the only available information. The presented mechanism is used to acquire knowledge that requires combining this local information.

All catalogs by design have one of the following relationships with their dependencies, with in brackets the number of corresponding hypercubes (Table 1): equality (4), subset (4), intersection (16) or union (16). However, they can have any relationship with catalogs that are not their direct dependency.

The following relations are the most important in checking which relations hold between sets: nonemptiness (2), equality (4), superset (4).

A relation where all objects are within a set can never hold.
3.4 Scalability

Many catalogs represent the exact same objects. It is not required to add a new dimension to the hypercubes when adding a set that is known to be equal to one of the other sets: the set can be associated with an existing dimension.

Sets that are different can still have a relation that is quantified by a low number of True cells. For example, sets that are a subset of another set occur often and require only one extra True cell. Furthermore, some sets, e.g. those that are the intersection of sets already in a relation, can be added without increasing the number of True cells at all (Algorithm 7). The relations that require the most True cells, such as disjoint or partially overlapping sets, are rare, because comparisons are done on catalogs that are connected through data lineage.

Some relations are very unlikely to occur at all. For example there will always be objects not in any set.

External knowledge—with respect to this algorithm—can be used explicitly. For example it can often be determined whether a catalog is empty or whether two catalogs are disjoint.

Any knowledge about the relationships that is obtained, through the algorithm or otherwise, can be stored for future use.

The sets of hypercubes are created by traversing the dependency graphs of catalogs. The most interesting relationships in a dependency graph are those between the begin and end points. Dimensions that correspond to catalogs in the middle of a dependency graph might be removed when this has little or no influence on the relationships between the catalogs at the edges.
4 Pseudocode
The pseudocode for the algorithms mentioned above is presented. Every relationship P is assumed to be represented with a set of hypercubes H _{ p } and a set of labels Λ_{ p }. These labels identify the dimensions of the hypercubes with the sets considered by the relationship. The administration of these labels is trivial and is therefore only discussed when relevant for handling the hypercubes.
Dimensions of the hypercubes are denoted with ν’s. A specific vertex or cell in a hypercube h _{ p } εH _{ p } is denoted with h _{ p }(ν _{1}, ν _{2}, ..., ν _{ n }), where each ν _{ i } can have a value of 0 or 1. It is assumed that the dimensions of the hypercubes are in the same order when they are compared. A transposition of the dimensions suffices to accomplish this when necessary.
5 Example

Catalog A is the base catalog from which the others are derived and contains a finite, known, set of sources. The catalog does not contain all the sources in the Universe.

Catalog B represents a subset of the sources of A. The selection criterion is known, but unevaluated. The contents of B is therefore unknown, and it might even be empty.

Catalog C represents new attributes of the sources in catalog A. That is, the attributes are not in catalog A and have to be derived. The values of these attributes do not have to be calculated or stored in order to create the dependency graph. Catalog C represents the same sources as catalog A.

Catalog D combines the attributes of catalogs B and C and represents an intersection of their sources. The precise contents of this catalog is unknown at its creation, because the selection criterion of B is not yet evaluated and the attributes of C are not yet calculated.

All the hypercubes consistent with the local information are created as relationships A (nonempty), AB (subset), AC (equality) and BCD (intersection).

The conjunction operator is subsequently applied on these relationships. Dimensions are added to the hypercubes when necessary. The result is a four dimensional relationship between A, B, C and D.

Relationship BD is created, representing an equality between B and D. It is a priori unknown whether this relation holds.

The material nonimplication operator is applied to relation ABCD and BD, resulting in the Contradiction (Section 2.2). That is, there are no possible relationships between A, B, C and D—given the a priori knowledge—in which B and D are not equal. Therefore, B and D must represent the same sources.
6 Conclusions
A novel mechanism for inferring relationships between sets is discussed. It is shown that the use of sets of hypercubes to represent relationships leads to a natural way of inferring a priori unknown relations: deduction is performed by combining incomplete knowledge through the application of logical operators. Algorithms that are suitable for a scalable implementation are presented, including pseudocode.
The novel aspects of the method were demonstrated by its use in AstroWISE, where the sets correspond to catalogs and the elements to astronomical objects. Catalogs can be stored and used in AstroWISE without their content being evaluated. The method is used to acquire knowledge about their contents without requiring direct access to the catalog data. This has lead to design choices in the way catalogs are handled in AstroWISE: catalogs are created such that the knowledge about their relationships is maximized.
An automated way to infer relations between catalogs is essential for the request driven way of processing in information systems such as AstroWISE. The presented algorithms form an excellent method to accomplish this. The method is generic enough to be implemented in any programming language and can be used by any information system.
Footnotes
Notes
Acknowledgements
This research is part of the project “Astrovis”, research program STARE (STAR EScience), funded by the Dutch National Science Foundation (NWO), project no. 643.200.501. AstroWISE is an ongoing project which started from a FP5 RTD programme funded by the EC Action “Enhancing Access to Research Infrastructures”. The authors thank the anonymous reviewers for their insightful comments, which led to a higher quality and better structure of the paper and indirectly to new research directions.
Open Access
This article is distributed under the terms of the Creative Commons Attribution License which permits any use, distribution, and reproduction in any medium, provided the original author(s) and the source are credited.
References
 1.Buddelmeijer, H., Valentijn, E.A.: Automatic optimized discovery, creation and processing of astronomical catalogs. Exp. Astron. (2011). doi: 10.1007/s106860119272z
 2.Chaudhuri, S.: An overview of query optimization in relational systems. In: Proceedings of the Seventeenth ACM SIGACTSIGMODSIGART Symposium on Principles of Database Systems. PODS ’98, pp. 34–43 (1998)Google Scholar
 3.Clarke, M.C.: Visualizing boolean operations on a hypercube. Math. Comput. Model. 20(9), 97–103 (1994)zbMATHCrossRefGoogle Scholar
 4.Codd, E.F.: A relational model of data for large shared data banks. Commun. ACM 13, 377387 (1970)CrossRefGoogle Scholar
 5.Karnaugh, M.: The map method for synthesis of combinational logic circuits. Trans. AIEE Part I 72(9), 593–599 (1953)MathSciNetGoogle Scholar
 6.Mwebaze, J., Boxhoorn, D., Valentijn, E.A.: Astrowise: tracing and using lineage for scientific data processing. In: Proceedings of the 2009 International Conference on NetworkBased Information Systems, NBIS 09, pp. 475480. IEEE Computer Society, Washington, DC (2009)Google Scholar
 7.Sutcliffe, G.: The TPTP problem library and associated infrastructure. The FOF and CNF parts, v3.5.0. J. Autom. Reason. 43(4), 337–362 (2009)zbMATHCrossRefGoogle Scholar
 8.Venn J.: On the diagrammatic and mechanical representation of propositions and reasonings. Phil. Mag., Series 5 10(59), 1–18 (1880)Google Scholar