Log In Sign Up

Graph integration of structured, semistructured and unstructured data for data journalism

Nowadays, journalism is facilitated by the existence of large amounts of digital data sources, including many Open Data ones. Such data sources are extremely heterogeneous, ranging from highly struc-tured (relational databases), semi-structured (JSON, XML, HTML), graphs (e.g., RDF), and text. Journalists (and other classes of users lacking advanced IT expertise, such as most non-governmental-organizations, or small public administrations) need to be able to make sense of such heterogeneous corpora, even if they lack the ability to de ne and deploy custom extract-transform-load work ows. These are di cult to set up not only for arbitrary heterogeneous inputs , but also given that users may want to add (or remove) datasets to (from) the corpus. We describe a complete approach for integrating dynamic sets of heterogeneous data sources along the lines described above: the challenges we faced to make such graphs useful, allow their integration to scale, and the solutions we proposed for these problems. Our approach is implemented within the ConnectionLens system; we validate it through a set of experiments.


page 1

page 2

page 3

page 4


Data Validation for Big Live Data

Data Integration of heterogeneous data sources relies either on periodic...

Graph-based keyword search in heterogeneous data sources

Data journalism is the field of investigative journalism which focuses o...

Towards Automated Data Integration in Software Analytics

Software organizations want to be able to base their decisions on the la...

Empowering Investigative Journalism with Graph-based Heterogeneous Data Management

Investigative Journalism (IJ, in short) is staple of modern, democratic ...

Local Embeddings for Relational Data Integration

Integrating information from heterogeneous data sources is one of the fu...

Termite: A System for Tunneling Through Heterogeneous Data

Data-driven analysis is important in virtually every modern organization...

A Bayesian Hierarchical Network for Combining Heterogeneous Data Sources in Medical Diagnoses

Computer-Aided Diagnosis has shown stellar performance in providing accu...

1. Introduction

Data journalists often have to analyze and exploit datasets that they obtain from official organizations or their sources, extract from social media, or create themselves (typically Excel or Word-style). For instance, journalists from Le Monde newspaper want to retrieve connections between elected people at Assemblée Nationale and companies that have subsidiaries outside of France. Such a query can be answered currently at a high human effort cost, by inspecting e.g., a JSON list of Assemblée elected officials (available from and manually connecting the names with those found in a national registry of companies. This considerable effort may still miss connections that could be found if one added information about politicians’ and business people’s spouses, information sometimes available in public knowledge bases such as DBPedia, or journalists’ notes.

No single query language can be used on such heterogeneous data; instead, we study methods to query the corpus by specifying some keywords and asking for all the connections that exist, in one or across several data sources, between these keywords. This line of work has emerged due to our collaboration with Le Monde’s fact-checking team111, within the ContentCheck collaborative research project222 With respect to the scientific literature, the problem of finding trees that connect nodes matching certain search keywords has been studied under the name of keyword search over structured data, in particular for relational databases  (DBLP:journals/debu/YuQC10, ; DBLP:conf/vldb/HristidisP02, ), XML documents (guo2003xrank, ; liu2007identifying, ), RDF graphs (DBLP:journals/tkde/LeLKD14, ; Elbassuoni:2011:KSO:2063576.2063615, ). However, most of these works assumed one single source of data, in which connections among nodes are clearly identified. When authors considered several data sources (Li:2008:EEK:1376616.1376706, ), they still assumed that one query answer comes from a single data source.

Figure 1. Motivating example: collection of four datasets.

In contrast, the ConnectionLens (Chanial2018, ) system (that we are developing since 2018) answers keyword search queries over arbitrary combinations of datasets and heterogeneous data models, independently produced by actors unaware of each other’s existence. To achieve this goal, we integrate a set of datasets into a unique graph, subject to the following requirements and constraints:

R1. Integral source preservation and provenance::

in journalistic work, it is crucial to be able to trace each node within the integrated graph back to the dataset from which it came. Source preservation is in line with the practice of adequately sourcing information, an important tenet of quality journalism.

R2. Little to no effort required from users::

journalists often lack time and resources to set up IT tools or data processing pipelines. Even when they may have gained acquaintance with a tool supporting one or two data models (e.g., most relational databases provide some support for JSON data), handling other data models remains challenging. Thus, the construction of the integrated graph needs to be as automatic as possible.

C1. Little-known entities::

interesting journalistic datasets feature some extremely well-known entities (e.g., highly visible National Assembly deputees such as F. Ruffin, R. Ferrand etc.) next to others of much smaller notoriety (e.g., the collaborators employed by the National Assembly to help organize each deputee’s work; or a company in which a deputee had worked). From a journalistic perspective, such lesser-known entities may play a crucial role in making interesting connections among nodes in the graph.

C2. Controlled dataset ingestion::

the level of confidence in the data required for journalistic use excludes massive ingestion from uncontrolled data sources, e.g., through large-scale Web crawls.

C3. Language support::

journalists are first and foremost concerned with the affairs surrounding them (at the local or national scale). This requires supporting dataset in the language(s) relevant for them - in our case, French.

R3. Performance on “off-the-shelf” hardware::

Our algorithms’ complexity in the data size should be low, and overall performance is a concern; the tool should run on general-purpose hardware, available to non-expert users like the ones we consider.

To reach our graph-directed data integration goal under these requirements and constraints, we make the following contributions:

  1. We define the novel integration graphs we target, and formalize the problem of constructing them from arbitrary sets of datasets.

  2. We introduce an approach, and an architecture for building the graphs, leveraging data integration, information extraction, knowledge bases, and data management techniques. Within this architecture, a significant part of our effort was invested in developing resources and tools for datasets in French. English is also supported, thanks to a (much) wider availability of linguistics resources.

  3. We have fully implemented our approach in an end-to-end tool; it currently supports text, CSV, JSON, XML, RDF, PDF datasets, and existing relational databases. We present: () a set of use cases with real datasets inspired from our collaboration with journalists; () an experimental evaluation of its scalability and the quality of the extracted graph.

Motivating example. To illustrate our approach, we rely on a set of four datasets, shown in Figure 1. Starting from the top left, in clockwise order, we have: a table with assets of public officials, a JSON listing of France elected officials, an article from the newspaper Libération with entities highlighted, and a subset of the DBPedia RDF knowledge base. Our goal is to interconnect these datasets into a graph and to be able to answer, for example, the question: “What are the connections between Levallois-Perret and Africa?” One possible answer comes by noticing that P. Balkany was the mayor of Levallois-Perret (as stated in the JSON document), and he owned the “Dar Gyucy” villa in Marrakesh (as shown in the relational table), which is in Morocco, which is in Africa (stated by the DBPedia subset). Another interesting connection in this graph is that Levallois-Perret appears in the same sentence as the Centrafrican Republic in the Libération snippet at the bottom right, which (as stated in DBPedia) is in Africa.

2. Outline and architecture

We describe here the main principles of our approach, guided by the requirements and constraints stated above.

From requirement R1 (integral source preservation) it follows that all the structure and content of each dataset is preserved in the integration graph, thus every detail of any dataset is mapped to some of its nodes and edges. This requirement also leads us to preserve the provenance of each dataset, as well as the links that may exist within and across datasets before loading them (e.g. interconnected HTML pages, JSON tweets replying to one another, or RDF graphs referring to a shared resource). We term primary nodes the nodes created in our graph strictly based on the input dataset and their provenance; we detail their creation in Section 3.

From requirement R2 (ideally no user input), it follows that we must identify the opportunities automatically to link (interconnect) nodes, even when they were not interconnected in their original dataset, and even when they come from different datasets. We achieve this at several levels:

  • We leverage and extend information extraction techniques to extract (identify) entities occurring in the labels of every node in every input dataset. For instance, “Levallois-Perret” is identified as a Location in the two datasets at right in Figure 1 (JSON and Text). Similarly, “P. Balkany”, “Balkany”, “I. Balkany” occurring in the relational, JSON and Text datasets are extracted as Person entities. Our method of entity extraction, in particular for the French language, is described in Section 4.

  • We compare (match) occurrences of entities extracted from the datasets, in order to determine when they refer to the same entity and thus should be interconnected.

    1. Some entity occurrences we encounter refer to entities known in a trusted Knowledge Base (or KB, in short). For instance, Marrakech, Giverny etc. are described in DBPedia; journalists may trust these for such general, non-disputed entities. We disambiguate each entity occurrence, i.e., try to find the URI (identifier) assigned in the KB to the entity referred to in this occurrence, and we connect the occurrence to the entity. Disambiguation enables, for instance, to connect an occurrence of “Hollande” to the country, and two other “Hollande” occurrences to the former French president. In the latter case, occurrences (thus their datasets) are interconnected. We describe the module we built for entity disambiguation for the French language (language constraint C3), based on AIDA (hoffart2011robust, ), in Section 5. It is of independent interest, as it can be used outside of our context.

    2. On little-known entities (constraint C1), disambiguation fails (no URI is found); this is the case, e.g., of “Moulin Cossy”, which is unknown in DBPedia. Combined with constraint C2 (strict control on ingested sources) it leads to the lack of reliable IDs for many entities mentioned in the datasets. We strive to connect them, as soon as the several identical or at least strongly similar occurrences are found in the same or different datasets. We describe our approach for comparing (matching) occurrences in order to identify identical or similar pairs in Section 6.

As the above description shows, our work recalls several known areas, most notably data integration, data cleaning, and knowledge base construction; we detail our positioning concerning these in Section 9.

3. Primary graph construction from heterogeneous datasets

We consider the following data models: relational (including SQL databases, CSV files etc.), RDF, JSON, XML, or HTML, and text. A dataset in our context is a pair, whose first component is a concrete data object: a relational database, or an RDF graph, or a JSON, HTML, XML document, or a CSV, text, or PDF file. The second component denotes the dataset provenance; we consider here that the provenance is a URI, in particular a URL (public or private) from which the dataset was obtained. Users may not wish (or be unable to provide) such a provenance URI when registering a dataset; our approach does not require it, but exploits it when available, as we explain below.

Let be an alphabet of words. We define an integrated graph where is the set of nodes and the set of edges. We have , where denotes the set of (possibly empty) sequences of words, and the value in is the confidence

, reflecting the probability that the relationship between two nodes holds. Each node

has a label and similarly each edge has . We use to denote the empty label. We assign to each node and edge a unique ID, as well as a type (simple numbers, unique within one graph ). We introduce the supported node types as needed, and write them in bold font (e.g., dataset node, URI node) when they are first mentioned; node types are important as they determine the quality and performance of matching (see Section 6). Finally, we create unique dataset IDs and associate to each node its dataset’s ID.

Let be a dataset of any of the above models. The following two steps are taken regardless of ’s data model: First, we introduce a dataset node , which models the dataset itself (not its content). Second, if is not null, we create an URI node , whose value is the provenance URI , and an edge , where cl:prov is a special edge label denoting provenance (we do not show these edges in the Figure to avoid clutter).

Next, Section 3.1 explains how each type of dataset yields nodes and edges in . For illustration, Figure 2 shows the integrated graph resulting from the datasets in Figure 1. In Section 3.2, we describe a set of techniques that improve the informativeness and the connectedness and decrease the size of . Finally, in Section 3.3, we give the complexity of constructing an integrated graph.

3.1. Mapping each dataset to the graph

A common feature of all the edges whose creation is described in this section is that we consider them certain (confidence of ), given that they reflect the structure of the input datasets, which we assume trusted. Lower-confidence edges will be due to extraction (Section 4 and Section 5) and node similarity (Section 6).

Figure 2. Integrated graph corresponding to the datasets of Figure 1. An answer to the keyword query {“I. Balkany”, Africa, Estate} is highlighted in light green; the three keyword matches in this answer are shown in bold.

Relational. Let be a relation (table) (residing within an RDBMS, or ingested from a CSV file etc.) A table node is created to represent (yellow node with label hatvp.csv on top left in Figure 2). Let be a tuple of the form in . A tuple node is created for , with an empty label, e.g., and in Figure 2. For each non-null attribute in , a value node is created, together with an edge from to , labeled (for example, the edge labeled owner at the top left in Figure 2). To keep the graph readable, confidence values of 1 are not shown. Moreover, for any two relations for which we know that attribute in is a foreign key referencing in , and for any tuples , such that , the graph comprises an edge from to with confidence . This graph modeling of relational data has been used for keyword search in relational databases (DBLP:conf/vldb/HristidisP02, ).

RDF. The mapping from an RDF graph to our graph is the most natural. Each node in the RDF graph becomes, respectively, a URI node or a value node in , and each RDF triple becomes an edge in whose label is . At the bottom left in Figure 2 appear some edges resulting from our DBPedia snippet.

Text. We model a text document very simply, as a node having a sequence of children, where each child is a segment of the text. Currently, each segment is a phrase; we found this a convenient granularity for users inspecting the graph. Any other segmentation could be used instead.

JSON. As customary, we view a JSON document as a tree, with nodes that are either map nodes, array nodes or value nodes. We map each node into a node of our graph and create an edge for each parent-child relation. Map and array nodes have the empty label . Attribute names within a map become edge labels in our graph. Figure 2 at the top right shows how a JSON document’s nodes and edges are ingested in our graph.

XML. The ingestion of an XML document is very similar to that of JSON ones. XML nodes are either element, or attribute, or values nodes. As customary when modeling XML, value nodes are either text children of elements or values of their attributes.

HTML. An HTML document is treated very similarly to an XML one. In particular, when an HTML document contains a hyperlink of the form ¡a href=””¿label¡/a¿, we create a node labeled “a” and another labeled “”, and connect them through an edge labeled “href”; this is the common treatment of element and attribute nodes. However, we detect that a child node satisfies a URI syntax, and recognize (convert) it into a URI node. This enables us to preserve links across HTML documents ingested together in the same graph, with the help of node comparisons (see Section 6).

Bidimensional tables. Tables such as one finds in spreadsheets, which we call bidimensional tables (or 2d tables, in short) differ in important ways from relational database tables. First, unlike a relational table, a 2d table features headers for both the lines and the columns. As spreadsheet users know, this leads to certain flexibility when authoring a spreadsheet, as one feels there is not much difference between a 2d table and its transposed version (where each line becomes a column and vice versa). Second, headers may be nested, e.g., the 1st column may be labeled “Paris”, the 2nd column may be labeled “Essonne”, and a common (merged) cell above them may be labeled “Ile de France”, as shown in Figure 3.

Figure 3. Conversion of a 2d table in a graph.

To carry in our graph all the information from a 2d table, and enable meaningful search results, we adopt the approach in (cao:hal-01583975, ) for transforming 2d tables into Linked Open Data (RDF). Specifically, we create a header cell node for each header cell, shown as gray boxes at the bottom of Figure 3, and a value node for each data cell (white boxes in the figure). Further, each header cell node is connected through an edge to its ancestor header cell, e.g., the edge from the “Paris” node to the “Île-de-France” node. The edge has a dedicated label cl:parentHeaderCell (not shown in the figure), and each value cell node has edges going to its nearest header cells, edges labeled respectively cl:closestXHeaderCell and cl:closestYHeaderCell. This modeling makes it easy to find, e.g., how Fred is connected to Île-de-France (through Essonne). In keeping with (cao:hal-01583975, ), we create a (unique) URI for each data and cell node, attach their value as a property of the nodes, and encode all the edges as RDF triples. The approach easily generalizes to higher-dimensional tables.

PDF. A trove of useful data is found in the PDF format. Many interesting PDF documents contain bidimensional tables. We thus use a dedicated 2d table extractor: the Python Camelot library333

, amongst the best open source libraries. We then generate from the 2d table a graph representation, as explained above. The tables are removed cell by cell from the PDF text, and lines of text are grouped with a rule-based sentence boundary detector so that coherent units are not split. In addition, we add a simple similarity metric to determine the horizontal and vertical headers. Final text content is saved in JSON, parents being the number of the line, children their content. Thus, from a PDF file, we obtain one or more datasets: (

) at least a JSON file with its main text content, and () as many RDF graphs as there were 2d tables recognized within the PDF. From the dataset node of each such dataset , we add an edge labeled cl:extractedFromPDF, whose value is the URI of the PDF file. Thus, the PDF-derived datasets are all interconnected, and trace back to their original file.

3.2. Refinements and optimizations

Value node typing. The need to recognize particular types of values goes beyond identifying URIs in HTML. URIs also frequently occur in JSON (e.g., tweets), in CSV datasets etc. Thus, we examine each value to see if it follows the syntax of a URI and, if so, convert the value node into a URI one, regardless of the nature of the dataset from which it comes. More generally, other categories of values can be recognized in order to make our graphs more meaningful. Currently, we similarly recognize numeric nodes, date nodes, email address nodes and hashtag nodes.

Figure 4. Node factorization example.

Node factorization. The graph resulting from the ingestion of a JSON, XML, or HTML document, or one relational table, is a tree; any value (leaf) node is reachable by a finite set of label paths from the dataset node. For instance, in the tree at left in Figure 4, two value nodes labeled “Paris” (indicated as ) are reachable on the paths, while is on the path headquartersCity (). Graph creation as described in Section 3.1 creates three value nodes labeled “Paris”; we call this per-occurrence value node creation. Instead, per-path creation leads to the graph at right, where a single node is created for all occurrences of “Paris” on the path We have also experimented with per-dataset value node creation, which in the above example creates a single “Paris” node, and with per-graph, where a single “Paris” value node is created in a graph, regardless of how many times “Paris” appears across all the datasets. Note that:

  1. Factorization leads to a DAG (rather than a tree) representation of a tree-structured document; it reduces the number of nodes while preserving the number of edges.

  2. The strongest form of factorization (per-graph) is consistent with the RDF data model, where a given literal leads to exactly one node.

  3. Factorization leads to more connections between nodes. For instance, at right in Figure 4, Alice and Bob are connected not only through the company where they both work, but also through the city where they live.

  4. Applied blindly on pure structural criteria, factorization may introduce erroneous connections. For instance, constants such as true and false appear in many contexts, yet this should not lead to connecting all nodes having an attribute whose value is true. Another example are named entities, which should be first disambiguated.

To prevent such erroneous connections, we have heuristically identified a set of

values which should not be factorized even with per-path, per-dataset or per-graph value node creation. Beyond true and false and named entities, this currently includes integer numeric node labels written on less than digits, the rationale being that small integers tend to be used for ordinals, while numbers on many digits could denote years, product codes, or other forms of identifiers. This very simple heuristic could be refined.

Another set of values that should not be factorized are null codes, or strings used to signal missing values, which we encountered in many datasets, e.g., “N/A”, “Unknown” etc. As is well-known from database theory, nulls should not lead to joins (or connections, in our case). We found many different null codes in real-life datasets we considered. We have manually established a small list; we also show to the user the most frequent values encountered in a graph (null codes are often among them) and allow her to decide among our list and the frequent values, which to use as null codes. The decision is important because these values will never lead to connections in the graph (they are not factorized, and they are not compared for similarity (see Section 6). This is why we consider that this task requires user input.

Factorization trade-offs are as follows. Factorization densifies the connections in the graph. Fewer nodes also reduce the number of comparisons needed to establish similarity links; this is useful since the comparisons cost is in the worst-case quadratic in the number of nodes. At the same time, factorization may introduce erroneous links, as discussed above. Given that we make no assumption on our datasets, there is no “perfect” method to decide when to factorize. The problem bears some connections, but also differences, with entity matching and key finding; we discuss this in Section 9.

As a pragmatic solution: () when loading RDF graphs, in which each URI and each literal corresponds to a distinct node, we apply a per-graph node creation policy, i.e., the graph contains overall a single node for each URI/literal label found in the input datasets; () in all the other datasets, which exhibit a hierarchical structure (JSON, XML, HTML, a relational table or CSV file, a text document) we apply the per-dataset policy, considering that within a dataset, one constant is typically used to denote only one thing.

3.3. Complexity of the graph construction

Summing up the above processing stages, the time to ingest a set of datasets in a ConnectionLens graph is of the form:

In the above, the constant factors are explicitly present (i.e., not wrapped in an notation) as the differences between them are high enough to significantly impact the overall construction time (see Section 8.4 and 8.5). Specifically: reflects the (negligible) cost of creating each edge using the respective data parser, and the (much higher) cost of storing it; reflects the cost to store a node in the database, and to invoke the entity extractor on its label, if it is not ; is the number of entity nodes found in the graph, and is the cost to disambiguate each entity; finally, the last component reflects the worst-case complexity of node matching, which may be quadratic in the number of nodes compared. The constant reflects the cost of recording on disk that the two nodes are equivalent (one query and one update) or similar (one update).

Observe that while is entirely determined by the data, the number of value nodes (thus , thus the last three components of the cist) is impacted by the node creation policy; (and, as we show below, ) depend on the entity extractor module used.

4. Named-Entity Recognition

After discussing how to reflect the structure and content of datasets into a graph, we now look into increasing their meaning

, by leveraging Machine Learning (ML) tools for Information Extraction.

Named entities (NEs) (nadeau2007ner, ) are words or phrases which, together, designate certain real-world entities. Named entities include common concepts such as people, organizations, and locations. However, the term can also be applied to more specialized entities such as proteins and genes in the biomedical domain, or dates and quantities. The Named-Entity Recognition (NER) task consists of  identifying NEs in a natural language text, and (

classifying them according to a pre-defined set of NE types. NER can be modeled as a sequence labeling task, that receives as input a sequence of words and returns a sequence of triples (NE span, i.e., the words referring together to the entity, NE type,

) as output, where is the confidence of the extraction (a constant between and ).

Let be a text node. We feed as input to a NER module and create, for each entity occurrence in , an entity occurrence node (or entity node, in short) ; as explained below, we extract Person, Organization and Location entity nodes. Further, we add an edge from to whose label is cl:extract, where is the type of , and whose confidence is . In Figure 2, the blue, round-corner rectangles Centrafrique, Areva, P. Balkany, Levallois-Perret correspond to the entities recognized from the text document, while the Marrakech entity is extracted from the identical-label value node originating from the CSV file.

Named-Entity Recognition We describe here the NER approach we devised for our framework, for English and French. While we have used Stanford NER (finkel2005incorporating, ) in (Chanial2018, ; cordeiro:hal-02559688, ), we have subsequently developed a more performant module based on the Flair NLP framework (akbik2019flair, ). Flair allows training sequence labeling models

using deep-learning techniques. Flair and similar frameworks rely on


words into vectors in a multi-dimensional space. Traditional word embeddings, e.g., Word2Vec

(mikolov2013efficient, ), Glove (pennington2014glove, ) and fastText (bojanowski2017enriching, ), are static, meaning that a word’s representation does not depend on the context where it occurs. New embedding techniques are dynamic, in the sense that the word’s representation also depends on its context. In particular, the Flair dynamic embeddings (akbik2018contextual, ) achieve state-of-the-art NER performance. The latest Flair architecture (akbik2019flair, ) facilitates combining different types of word embeddings, as a better performance might be achieved by combining dynamic with static word embeddings.

The English model currently used in ConnectionLens is a pre-trained model444 It is trained using the English CoNLL-2003555 dataset which contains persons, organizations, locations, and miscellaneous (not considered in ConnectionLens) named-entities. The dataset consists of news articles. The model combines Glove embeddings (pennington2014glove, ) and so-called forward and backward pooled Flair embeddings, that evolve across subsequent extractions.

To obtain a high-quality model for French, we trained our model on WikiNER (nothman2013learning, ), a multilingual NER dataset automatically created using the text and structure of Wikipedia. The dataset contains K sentences, M tokens and K named-entities, including K Person, K Location and K Organization entities. The model uses stacked forward and backward French Flair embeddings with French fastText (bojanowski2017enriching, ) embeddings.

Entity node creation. Similarly to the discussion about value node factorization (Section 3.2), we have the choice of creating an entity node of type once per occurrence, or (in hierarchical datasets) per-path, per-dataset or per-graph. We adopt the per graph method, with the mention that we will create one entity node for each disambiguated entity and one entity node for each non-disambiguated entity.

5. Entity disambiguation

An entity node extracted from a dataset as an entity of type may correspond to an entity (resource) described in a trusted knowledge base (KB) such as DBPedia or Yago. As stated in Section 2, this is not always the case, i.e., we encounter entities that are not covered by KBs. However, when they are, the information is valuable as it allows: () resolving ambiguity to make a more confident decision about the entity, e.g., whether the entity node “Hollande” refers to the former president or to the country; () tackling name variations, e.g., two Organization entities labeled “Paris Saint-Germain Football Club” and “PSG” are linked to the same KB identifier, and () if this is desired, enriching the dataset with a certain number of facts the KB provides about the entity.

Named entity disambiguation (NED, in short, also known as entity linking) is the process of assigning a unique identifier (typically, a URI from a KB) to each named-entity present in a text. We built our NED module based on AIDA (hoffart2011robust, ), part of the Ambiverse666 framework; AIDA maps entities to resources in YAGO 3 (DBLP:conf/cidr/MahdisoltaniBS15, ) and Wikidata (wikidata, ). Our work consisted of () adding support for French (not present in Ambiverse), and () integrating our own NER module (Section 4) within the Ambiverse framework.

For the first task, in collaboration with the maintainers of Ambiverse777, we built a new dataset for French, containing the information required for AIDA. The dataset consists of entity URIs, information about entity popularity (derived from the frequency of entity names in link anchor texts within Wikipedia), and entity context (a set of weighted words or phrases that co-occur with the entity), among others. This information is language-dependent and was computed from the French Wikipedia.

For what concerns the second task, Ambiverse takes an input text and passes it through a text processing pipeline consisting of tokenization (separating words), part-of-speech (POS) tagging, which identifies nouns, verbs, etc., NER, and finally NED. Text and annotations are stored and processed in Ambiverse using the UIMA standard888 A central UIMA concept is the Common Annotation Scheme (or CAS); in short, it encapsulates the document analyzed, together with all the annotations concerning it, e.g., token offsets, tokens types, etc. In each Ambiverse module, the CAS object containing the document receives new annotations, which are used by the next module. For example, in the tokenization module, the CAS initially contains only the original text; after tokenization, the CAS also contains token offsets.

To integrate our Flair-based extractor (Section 4), we deployed a new Ambiverse processing pipeline, to which we pass as input both the input text and the extracted entities.

Due to its reliance on sizeable linguistic resources, the NED module requires G on disk and G of RAM to support disambiguation for English (provided by the authors) and French (which we built). Therefore, we deployed it outside of the ConnectionLens code as a Web service, accessible in our server.

6. Node matching

Node group Node pairs from to compare Similarity function Threshold
Person entity Person Person Jaro 0.8
Location entity Location Location Jaro 0.8
Organization entity Organization Organization Jaro 0.95
URI, hashtag, or email Same label same type Equality 1.0
Number Same label value isNumber Equality 1.0
Date Same timestamp value isDate Equality 1.0
Non-entity short string abs. len. 128 rel. len. 20% prefix(3) match Levenshtein 0.8
Non-entity long string abs. len. 32 rel. len. 20% has common word Jaccard 0.8
Table 1. Node matching: selectors, similarity functions, and thresholds.

This section presents our fourth and last method for identifying and materializing connections among nodes from the same or different datasets of the graph. Recall that (value nodes with identical labels can be fused (factorized) (Section 3.2); () nodes become connected as parents of a common extracted entity (Section 4); () entity nodes with different labels can be interconnected through a common reference entity when NED returns the same KB entity (Section 5). We still need to be able to connect:

  • entity nodes with value nodes, in the case, when extraction did not find anything in the value node. Recall that extraction also uses a context, and it may fail to detect entities on some values where context is lacking. If the labels are identical or very similar, these could refer to the same thing;

  • entity nodes, such that disambiguation returned no result for one or both. Disambiguation is also context-dependent; thus, it may work in some cases and not in others; entity nodes with identical or strongly similar labels, from the same or different datasets, could refer to the same thing.

  • value nodes, even when no entity was detected. This concerns data-oriented values, such as numbers and dates, as well as text values. The latter allows us to connect, e.g., articles or social media posts when their topics (short strings) and/or body (long string) are very similar.

When a comparison finds two nodes with very similar labels, we create an edge labeled cl:sameAs, whose confidence is the similarity between the two labels. In Figure 2, a dotted red edge (part of the subtree highlighted in green) with confidence connects the “Central African Republic” RDF literal node with the “Centrafrique” Location entity extracted from the text.

When a comparison finds two nodes with identical labels, one could consider unifying them, but this raises some modeling issues, e.g., when a value node from a dataset is unified with an entity encountered in another dataset. Instead, we conceptually connect the nodes with sameAs edges whose confidence is . These edges are drawn in solid red lines in Figure 2. Nodes connected by a sameAs edge are also termed equivalent. Note that equivalent nodes lead to edges. Therefore, these conceptual edges are not stored; instead, the information about equivalent nodes is stored using space, as we explain in Section 7.

Inspired by the data cleaning literature, our approach for matching is set-at-a-time. More precisely, we form node group pairs , and we compare each group pair using the similarity function known to give the best results (in terms of matching quality) for those groups. The Jaro measure (jaro1989sim, ) gives good results for short strings (doan2012int, ) and is applied to compute the similarity between pairs of entities of the same type recognized by the entity extractor (i.e., person names, locations and organization names which are typically described by short strings). The common edit distance (or Levenshtein distance) (levenshtein1989dist, ) is applied to relatively short strings that have not been identified by the entity extractor. Finally, the Jaccard coefficient (jaccard1901sim, ) gives good results for comparing long strings that have words in common and is therefore used to compute the similarity between long strings.

Table 1 describes our matching strategy. For each group that we identify, a line in the table shows: a pair as a logical formula over the node pairs; the similarity function selected for this case; and the similarity threshold above which we consider that two nodes are similar enough, and should be connected by a sameAs edge. We set these thresholds experimentally as we found they lead to appropriate similar pair selections, in a corpus built from news articles from Le Monde and Mediapart, social media (tweets), and open (JSON) data from

For Person, Location, and Organization, the similarity is computed based on normalized versions of their labels, e.g., for Person entities, we distinguish the first name and the last name (when both are present) and compute the normalized label as “Firstname Lastname”. For URI, hashcode, and email entities, we require identical labels; these can only be found equivalent (i.e., we are not interested in a similarity lower than ). Finally, we identify short strings (shorter than 128 characters) and long strings (of at least 32 characters) and use different similarity functions for each, given that the distinction is fuzzy, we allowed these categories to overlap.

We explain how groups and comparison pairs are formed in Section 7 when describing our concrete implementation.

7. Graph storage

The storage module of our platform consists of a Graph interface providing the data access operations needed in order to access the graph, and (currently) of a single implementation based on a relational database, which is accessed through JDBC, and which implements these operations through a mix of Java code and SQL queries. This solution has the advantage of relying on a standard (JDBC) backed by mature, efficient and free tools, such as Postgres, which journalists were already familiar with, and which runs on a variety of platforms (requirement R3 from Section 1).

The table Nodes(id, label, type, datasource, label, normaLabel, representative) stores the basic attributes of a node, the ID of its data source, its normalized label, and the ID of its representative. For nodes not equivalent to any other, the representative is the ID of the node itself. As explained previously, the representative attribute allows encoding information about equivalent nodes. Table Edges(id, source, target, label, datasource, confidence) stores the graph edges derived from the data sources, as well as the extraction edges connecting entity nodes with the parent(s) from which they have been extracted. Finally, the Similar(source, target, similarity) table stores a tuple for each similarity comparison whose result is above the threshold (Table 1) but less than . The pairs of nodes to be compared for similarity are retrieved by means of SQL queries, one for each line in the table.

This implementation requires an SQL query (through JDBC) to access each node or edge within the storage. As such access is expensive, we deploy our own memory buffer: graph nodes and edges are first created in memory, and spilled to disk in batch fashion when the buffer’s maximum size is reached. Value node factorization (Section 3.2) may still require querying stored graph to check the presence of a previously encountered label. To speed this up, we also deployed a memory cache of nodes by their labels for per-graph factorization, respectively, by (label, dataset, path) for per-path factorization etc. These caches’ size determines a compromise between execution time and memory needs during graph construction.

Other storage back-ends could be integrated easily as implementations of the Graph interface; we have started experimenting with the BerkeleyDB key-value store, which has the advantage of running as a Java library, without the overhead of a many-tiers architecture such as JDBC.

8. Performance evaluation

We now present results of our experiments measuring the performance and the quality of our various modules involved in graph construction. Section 8.1 presents our settings, then we present experiments focusing on: metrics related to graph construction in Section 8.2, the quality of our extraction of tables from PDF documents in Section 8.3, of our information extraction in Section 8.4, finally of our disambiguation module in Section 8.5.

8.1. Settings

We have implemented our approach in Java 1.8; the code consists of Java classes (39K lines), and Python classes (1.6K lines) implementing the module which extracts information from PDF (Section 3) and the Flair extractor (Section 4). The latter two have been integrated as Web services, which introduces a certain overhead when invoked from the main Java code. The disambiguator (Section 5) is standalone Java Web service, adapting the original Ambiverse code to our new pipeline; the code has classes, out of which we modified . We relied on Postgres 9.6.5 to store our integrated graph. Experiments ran on a server with 2.7 GHz Intel Core i7 processors and GB of RAM, running CentOs Linux 7.5.

Data sources We used a set of diverse real-world datasets, described below from the smaller to the larger. Given that they are of different data models, we order them by their size on disk before being input in ConnectioneLens.

1. We built a corpus of 464 HTML articles crawled from the French online newspaper Mediapart with the search keywords “gilets jaunes”, occupying 6 MB on disk.

2. An XML document999 comprising business interest statements of French public figures, provided by HATVP (Haute Autorité pour la Transparence de la Vie Publique); the file occupies 35 MB.

3. A subset of the YAGO 4 (yago4, ) RDF knowledge base, comprising entities present in the French Wikipedia and their properties; this takes 1.21 GB on disk (9 M triples).

8.2. Graph construction

We start by studying the impact of node factorization (Section 3.2) on the number of graph nodes and the graph storage time. For that, we rely on the XML dataset, and disable entity extraction, entity disambiguation, and node matching. We report the (unchanged) number of edges , the number of nodes , the time spent storing nodes and edges to disk , and the total running time in Table 2.

Value node creation policy (s) (s)
Per-path w/ null code detection
Per-graph w/ null code detection
Table 2. Impact of node factorization.

In this experiment, as expected, the storage time largely dominates the total loading time. We also see that is overall correlated with the number of nodes, showing that for this (first) part of graph creation, node factorization can lead to significant performance savings. We note that moving from per-instance to per-path node creation strongly reduces the number of nodes. However, this factorization suffers from some errors, as the dataset features many null codes (Section 3.2); for instance, with per-instance value creation, there are value (leaf) nodes with the empty label , nodes labeled , “true”, “false”, nodes labeled Données non publiées etc. Using per-path, the latter are reduced to just , which means that in the dataset, the value Données non publiées appears times on different paths. However, such factorization (which, as a common child, also creates a connection between the XML nodes which are parents of the same value!) is wrong. When these null codes were input to the tool, such nodes are no longer unified. Therefore the number of nodes increased, also influencing the storage time and, thus, the total time. As expected, per-dataset and per-graph produce the same number of nodes (in this case where the whole graph consists of just one dataset), overall the smallest; it also increases when null codes are not factorized. We conclude that per-graph value creation combined with null code detection is a practical alternative.

Figure 5. YAGO loading performance (on the axis: the number of triples).

To confirm the scalability of our loading process, we loaded our YAGO subset by slices of 1M triples and recorded after each slice the number of nodes and the running time until that point. Here, we disabled entity extraction, since the graph is already well-structured and well-typed, as well as matching; by definition, each RDF URI or literal is only equivalent to itself. Thus the per-graph value creation policy suffices to copy the RDF graph structure in our graph. Figure 5 shows that the loading time grows quite linearly with the data volume. The figure also shows the cumulated number of different RDF nodes; between 4M and 7M, the number of nodes increases more rapidly, which, in turn, causes a higher cost (higher slope of the loading time) due to more disk writes.

Loading method (s) (s) (s) (s)
No extraction, no matching
Flair, no matching
Flair (with cache), full matching
Flair (with cache), entity-only matching
Table 3. Loading the Mediapart HTML graph (entity extraction results were cached in the last two rows).

Next, we quantify the impact of extraction (Section 4) and of matching (Section 6). For this, we rely on the HTML corpus, which is rich in mentions of people, locations and organizations. For reference, we first load this graph without extraction, nor matching. Then, we load it with Flair extraction, and, respectively: without matching; with matching as described in Section 6; and with matching from which we exclude the node pairs where no node is an entity (that is, the “short string” and the “long string” comparisons). Table 3 shows the results. Besides the metrics already introducesd, we report: , the time to extract entities; the numbers , , and of extracted people, locations and organization entities; and the matching time . The latter includes the time to update the database to modify node representatives (this also requires two queries) and to create similarity edges. Table 3 shows the first Flair entity extraction dwarves the data storage time. Second, the corpus features a significant number of entities (more than ). Third, matching is also quite expensive, due to the computation of the similarity functions on pairs of node labels and the many read/write operations required in our architecture. Finally, a constant aspect in all the experiments we performed is that the largest share of similarity comparison costs is incurred by comparisons among (long and short) strings, not entities; this is because strings are more numerous. Non-entity strings rarely match, and the most significant connections among datasets are on entities. Therefore, we believe good-quality graphs can be obtained even without string comparisons. In Table 3, avoiding it allows us to significantly reduce the total time by about .

8.3. Table extraction from PDF documents

Our approach for identifying and extracting bidimensional tables from PDF documents (Section 3.1) customizes and improves upon the Camelot library to better detect data cells and their headers. We present here an evaluation of the quality of our extraction, using metrics adapted from the literature (gobel2012methodology, ). Specifically, based on a corpus of PDFs labeled with ground truth values (gobel2013icdar, )

, we measure the precision and recall of three tasks: (

) table recognition (REC) is measured on the list of tokens recognized as belonging to the table; (table structure detection (STR) is measured on the adjacency relations of cells, i.e. each cell is represented by its content, and its nearest right and downwards neighbors; (table interpretation (INT) quantifies how well are represented the headers of a cell; a cell is correctly interpreted if its associated header cells are correctly identified. Precision and recall are measured to reflect the full or partial matching of headers.

pdfXtr Precision Recall
LOC 67.36% 74.02% 69.58%
STR 69.44% 72.26% 69.74%
INT 49.16% 49.42% 48.48%
Overall 61.99% 65.23% 62.60%
Table 4. Quality of pdfXtr extraction algorithm.

We aggregate the measures over the documents contained in the above-mentioned dataset and we show the results in Table 4

. The table shows that the quality of table recognition and table structure is quite good, though not allowing yet for full automation. The relatively low performance on the last task can be explained by the variety of styles in header construction, which could be better tackled by a supervised learning algorithm.

8.4. Named-Entity Recognition

Due to the unavailability of an off-the-shelf, good-quality entity extractor for French text, we decided to train a new model. To decide the best NLP framework to use, we experimented with the Flair (akbik2019flair, ) and SpaCy ( frameworks. Flair allows combining several embeddings, which can lead to significant quality gains. Following (akbik2019flair, ), after testing different word embedding configurations and datasets, we trained a Flair model using stacked forward and backward French Flair embeddings with French fastText embeddings on the WikiNER dataset. We will refer to this model as Flair-SFTF.

Below, we describe a qualitative comparison of Flair-SFTF with the French Flair and SpaCy pre-trained models. The French pre-trained Flair model is trained with the WikiNER dataset, and uses French character embeddings trained on Wikipedia, and French fastText embeddings. As for SpaCy, two pre-trained models are available for French: a medium (SpaCy-md) and a small one (SpaCy-sm). They are both trained with the WikiNER dataset and the same parameterization. The difference is that SpaCy-sm does not include word vectors, thus, in general, SpaCy-md is expected to perform better, since word vectors will most likely impact positively the model performance. Our evaluation also includes the model previously present in ConnectionLens (Chanial2018, ), trained using Stanford NER (finkel2005incorporating, ), with the Quaero Old Press Extended Named Entity corpus (galibert2012extended, ).

We measured the precision, recall, and -score of each model using the conlleval evaluation script, previously used for such tasks101010The script has been developed and shared in conjunction with the CoNLL (Conference on Natural Language Learning).. conlleval evaluates exact matches, i.e., both the text segment of the proposed entity and its type, need to match “gold standard” annotation, to be considered correct. Precision, recall, and

-score (harmonic mean of precision and recall) are computed for each named-entity type. To get an aggregated, single quality measure,

conlleval computes the micro-average precision, recall, and -score over all recognized entity instances, of all named-entity types.

For evaluation, we used the entire FTBNER dataset (sagot-etal-2012-annotation, ). We pre-processed it to convert its entities from the seven types they used, to the three we consider, namely, persons, locations and organizations. After pre-processing, the dataset contains K sentences and K named-entities (K persons, K locations and K organizations).

Flair-SFTF Precision Recall
LOC 59.52% 79.36% 68.02%
ORG 76.56% 74.55% 75.54%
PER 72.29% 84.94% 78.10%
Micro 69.20% 77.94% 73.31%
Flair-pre-trained Precision Recall
LOC 53.26% 77.71% 63.20%
ORG 74.57% 75.61% 75.09%
PER 71.76% 84.89% 77.78%
Micro 65.55% 77.92% 71.20%
SpaCy-md Precision Recall
LOC 55.77% 78.00% 65.04%
ORG 72.72% 54.85% 62.53%
PER 53.09% 74.98% 62.16%
Micro 61.06% 65.93% 63.40%
SpaCy-sm Precision Recall
LOC 54.92% 79.41% 64.93%
ORG 71.92% 53.23% 61.18%
PER 57.32% 79.19% 66.50%
Micro 61.25% 66.32% 63.68%
Stanford NER Precision Recall
LOC 62.17% 69.05% 65.43%
ORG 15.82% 5.39% 8.04%
PER 55.31% 88.26% 68.00%
Micro 50.12% 40.69% 44.91%
Table 5. Quality of NER from French text.

The evaluation results are shown in Table 5. All models perform better overall than the Stanford NER model previously used in ConnectionLens (Chanial2018, ; cordeiro:hal-02559688, ), which has a micro -score of about 45%. The SpaCy-sm model has a slightly better overall performance than SpaCy-md, with a small micro -score difference of . SpaCy-md shows higher -scores for locations and organizations, but is worse on people, driving down its overall quality. All Flair models surpass the micro scores of SpaCy models. In particular, for people and organizations, Flair models show more than higher -scores than SpaCy models. Flair models score better on all named-entity types, except for locations when comparing the SpaCy models, specifically, with the Flair-pre-trained. Flair-SFTF has an overall -score of and has better scores than the Flair-pre-trained for all metrics and named-entity types, with the exception of the recall of organizations, lower by . In conclusion, Flair-SFTF is the best NER model we evaluated.

Finally, we study extraction speed. The average time to extract named-entities from a sentence is: for Flair-SFTF , Flair-pre-trained , SpaCy-md , SpaCy-sm , and Stanford NER . The quality of Flair models come at a cost: they take, on average, more time to extract named-entities from sentences. SpaCy extraction is about twice as fast, and Stanford NER much faster. Note that extraction time is high, compared with other processing costs; as a point of comparison, on the same hardware, tuple access on disk through JDBC takes to ms (and in-memory processing is of course much faster). This is why extraction cost is often a significant component of the total graph construction time.

8.5. Disambiguation

We now move to the evaluation of the disambiguation module. As mentioned in Section 5, our module works for both English and French. The performance for English has been measured on the CoNLL-YAGO dataset (hoffart2011robust, ), by the developers of Ambiverse. They report a micro-accuracy of and a macro-accuracy of . To the best of our knowledge, there is no labeled corpus for entity disambiguation in French, thus we evaluate the performance of the module on the FTBNER dataset previously introduced. FTBNER consists of sentences annotated with named entities. The disambiguation module takes a sentence, the type, and offsets of the entities extracted from it, and returns for each entity either the URI of the matched entity or an empty result if the entity was not found in the KB. In our experiment, of entities have not been disambiguated, more precisely of organizations, of persons, and of locations. For a fine-grained error analysis, we sampled 150 sentences and we manually verified the disambiguation results (Table 6). The module performs very well, with excellent results for locations (), followed by good results for organizations () and for persons (). In addition to these results, we obtain a micro-accuracy of and a macro-accuracy of . The performance is comparable with the one reported by the Ambiverse authors for English. We should note though that the improvement for French might be due to our smaller test set.

Precision Recall
LOC 99.00% 97.05% 98.01%
ORG 92.38% 75.19% 82.90%
PER 75.36% 77.94% 76.62%
Micro 90.51% 82.94% 86.55%
Table 6. Quality of disambiguation for French text.

The average time of disambiguation per entity is ms, which is very significant (again when compared with database access through JDBC of to ms). This is mostly due to the fact that the disambiguator is deployed as a Web service, incurring a client-server communication overhead for making a WSDL call. At the same time, as explained in Section 5, the disambiguation task itself involves large and costly resources; its cost is high, and directly correlated with the number of entities in the datasets. In our current platform, users can turn it on or off.

Experiment conclusion Our experimens have shown that heterogeneous datasets can be integrated with robust performance in persistent graphs, to be explored and queried by users. We will continue work to optimize the platform.

9. Related work and perspectives

Our work belongs to the area of data integration (doan2012int, ), whose goal is to facilitate working with different databases (or datasets) as if there was only one. Data integration can be achieved either in a warehouse fashion (consolidating all the data sources into a single repository), or in a mediator fashion (preserving the data in their original repository, and sending queries to a mediator module which distributes the work to each data source, and finally combines the results). Our initial proposal to the journalists we collaborated with was a mediator (DBLP:journals/pvldb/BonaqueCCGLMMRT16, ), where users could write queries in an ad-hoc language, specifying which operations to be done at each source (using, respectively, SQL for a relational source, SOLR’s search syntax for JSON, and SPARQL for an RDF source). This kind of integration through a source-aware language has been successfully explored in polystore systems (kolev2016cloudmdsql, ; alotaibi:hal-02070827, ). In the past, we had also experimented with a mixed XML-RDF language for fact-checking applications (goasdoue:hal-00814285, ; goasdoue:hal-00828906, ). However, the journalists’ feedback has been that the installation and maintenance of a mediator over several data sources, and querying through a mixed language, were very far from their technical skills. This is why here, we () pursue a warehouse approach; () base our architecture on Postgres, a highly popular and robust system; () simplify the query paradigm to keyword querying.

Because of the applicative needs, ConnectionLens integrates a wide variety of data sources: JSON, relational, RDF and text since (Chanial2018, ), to which, since our report (cordeiro:hal-02559688, ), we added XML, multidimensional tables, and the ability to extract information from PDF documents. We integrate such heterogeneous content in a graph; from this viewpoint, our work recalls the production of Linked Data. A significant difference is that we do not impose that our graph is RDF, and we do not assume, require, or use a domain ontology. The latter is because adding data to our tool should be as easy as dropping a JSON, XML or text file in an application; the overhead of designing a suitable ontology is much higher and requires domain knowledge. Further, journalists with some technical background found “generic” graphs, such as those stored in Neo4J, more straightforward and more intuitive than RDF ones; this discourages both converting non-RDF data sources into RDF and relying on an ontology. Of course, our graphs could be exported in RDF; and, in different application contexts, Ontology-Based Data Access (DBLP:conf/cikm/Lenzerini11, ; DBLP:journals/pvldb/CalvaneseGLV12, ; buron:hal-02446427, ) brings many benefits. Another difference is the pervasive application of Information Extraction on all the values in our graph; we discuss Information Extraction below.

Graphs are also produced when constructing knowledge bases, e.g., Yago (DBLP:conf/cidr/MahdisoltaniBS15, ; yago4, ). Our settings is more limited in that we are only allowed to integrate a given set of datasets that journalists trust. Harvesting information from the World Wide Web or other sources whose authorship is not well-controlled was found risky by journalists who feared a “pollution” of the database. Our choice has therefore been to use a KB only for disambiguation and accept (as stated in Section 1) that the KB does not cover some entities found in our input datasets. Our simple techniques for matching (thus, connecting) nodes are reminiscent of data cleaning, entity resolution (DBLP:journals/pvldb/SuchanekAS11, ; DBLP:conf/edbt/0001IP20, ), and key finding in knowledge bases, e.g. (DBLP:journals/kbs/SymeonidouAP20, ). Much more elaborate techniques exist, notably, when the data is regular, its structure is known and fixed, an ontology is available, etc.; none of these holds in our setting.

Pay-as-you-go data integration refers to techniques whereby data is initially stored with little integration effort and can be better integrated through subsequent use. This also recalls ”database cracking” (Idreos:2007, ; Alagiannis:2012, ), where the storage is re-organized to better adapt to its use. We plan to study adaptive stores as part of our future work.

Dataspaces were introduced in (Franklin:2005, ) to designate “a large number of diverse, interrelated data sources”; The authors note the need to support data sources of heterogeneous data models, and blend query and search, in particular through support for keyword search. Google’s Goods system (Halevy:2016, ) can be seen as a dataspace. It extracts metadata about millions of datasets used in Google, including statistics but also information about who uses the data when. Unlike Goods, our focus is on integrating heterogeneous data in a graph. Goods is part of the data lake family, together with products from e.g., IBM and Microsoft. Our approach can be seen as consolidating a highly heterogeneous data lake in a single graph; we consider scaling up through distribution in the near future.

Information extraction (IE) provides techniques to automatically extract structured information such as entities, relationships between entities, unique identifiers of entities, and attributes describing entities from unstructured sources (DBLP:journals/ftdb/Sarawagi08, ). The following two IE tasks are particularly relevant in our context.

Named-Entity Recognition (NER, in short) is the task of identifying phrases that refer to real-world entities. There exist a variety of NER tools. Firstly, we have web services such as Open Calais111111, Watson NLU121212 etc.; such services limit the requests in a given time interval, making them less suitable for our needs. Libraries include Stanford NER (finkel2005incorporating, ) from Stanford CoreNLP (manning2014stanford, ), Apache OpenNLP131313, SpaCy, KnowNER (seyler2018study, ) from the Ambiverse framework, and Flair (akbik2019flair, ). These open-source libraries can be customized; they all support English, while Spacy and Flair also support French. These NER tools use supervised techniques such as conditional random fields (Stanford NER) or neural architectures (Flair); text is represented either via hand-crafted features or using word embeddings. We adopted Flair since it is shown to perform well141414

Entity disambiguation aims at assigning a unique identifier to entities in the text. In comparison to NER, there exist far fewer tools for performing disambiguation. From the tools mentioned above, the web-services that perform disambiguation are Gate Cloud and Dandelion, while from the third-party libraries, only Ambiverse and SpaCy have this functionality. SpaCy entity disambiguation is a supervised approach151515, which represents a bottleneck, as there is no dataset annotated for French, to the best of our knowledge. The Ambiverse framework implements AIDA (hoffart2011robust, ), an unsupervised technique for entity disambiguation.

Overall, our work aims to facilitate the exploitation of reference data sources for computational journalism and journalistic fact-checking (cazalens:hal-01722666, ); the problem is also related to truth discovery (DBLP:journals/jdiq/Berti-EquilleB16, ). Our graphs are a form of probabilistic graphs (DBLP:conf/pods/AmarilliMS17, ; DBLP:journals/tods/ManiuCS17, ), which raise many hard algorithmic problems. The keyword search algorithm we use to exploit these graphs is described in (cordeiro:hal-02559688, ), then (query-paper, ).

Perspectives In the near future, we will study a use case concerning conflicts of interest of medical experts, integrating different datasets from the medical literature (in XML and PDF). Following the intense evolution of the tool until its current shape, we plan to share it (as a .jar) with journalists so that they can use it directly.

Other lines of research currently ongoing include: learning to rank query answers on our integrated graphs; simplifying the graphs through a form of abstraction; developing visual exploration interfaces (in collaboration with E. Pietriga). The research into building and exploiting such graphs will continue as part of the SourcesSay ANR AI Chair project (2020-2024).

Acknowledgements. We thank Julien Leblay for his contribution to earlier versions of this work (Chanial2018, ; cordeiro:hal-02559688, ). We thank Xin Zhang for extracting from YAGO 4 the subset used here.


  • [1] A. Akbik, T. Bergmann, D. Blythe, K. Rasul, S. Schweter, and R. Vollgraf. Flair: An easy-to-use framework for state-of-the-art nlp. In ACL, 2019.
  • [2] A. Akbik, D. Blythe, and R. Vollgraf. Contextual string embeddings for sequence labeling. In ACL, 2018.
  • [3] I. Alagiannis, R. Borovica, M. Branco, S. Idreos, and A. Ailamaki. Nodb in action: Adaptive query processing on raw data. PVLDB, 5(12):1942–1945, 2012.
  • [4] R. Alotaibi, D. Bursztyn, A. Deutsch, I. Manolescu, and S. Zampetakis. Towards Scalable Hybrid Stores: Constraint-Based Rewriting to the Rescue. In SIGMOD, 2019.
  • [5] A. Amarilli, M. Monet, and P. Senellart. Conjunctive queries on probabilistic graphs: Combined complexity. In E. Sallinger, J. V. den Bussche, and F. Geerts, editors, PODS. ACM, 2017.
  • [6] A. Anadiotis, Y. Haddad, and I. Manolescu. Graph-based keyword search in heterogeneous data sources. Submitted for publication, 2020.
  • [7] L. Berti-Équille and M. L. Ba. Veracity of big data: Challenges of cross-modal truth discovery. J. Data and Information Quality, 7(3):12:1–12:3, 2016.
  • [8] P. Bojanowski, E. Grave, A. Joulin, and T. Mikolov. Enriching word vectors with subword information. TACL, 5, 2017.
  • [9] R. Bonaque, T. D. Cao, B. Cautis, F. Goasdoué, J. Letelier, I. Manolescu, O. Mendoza, S. Ribeiro, X. Tannier, and M. Thomazo. Mixed-instance querying: a lightweight integration architecture for data journalism. PVLDB, 9(13), 2016.
  • [10] M. Buron, F. Goasdoué, I. Manolescu, and M.-L. Mugnier. Ontology-Based RDF Integration of Heterogeneous Data. In EDBT, 2020.
  • [11] D. Calvanese, G. De Giacomo, M. Lenzerini, and M. Y. Vardi. Query processing under GLAV mappings for relational and graph databases. PVLDB, 6(2), 2012.
  • [12] T. D. Cao, I. Manolescu, and X. Tannier. Extracting linked data from statistic spreadsheets. In Semantic Big Data Workshop, 2017.
  • [13] S. Cazalens, P. Lamarre, J. Leblay, I. Manolescu, and X. Tannier. A Content Management Perspective on Fact-Checking. In WWW Conference, 2018.
  • [14] C. Chanial, R. Dziri, H. Galhardas, J. Leblay, M. H. L. Nguyen, and I. Manolescu. ConnectionLens: Finding connections across heterogeneous data sources (demonstration). VLDB, 2018.
  • [15] F. Cordeiro, H. Galhardas, J. Leblay, I. Manolescu, and T. Merabti. Keyword Search in Heterogeneous Data Sources. Technical report, 2020.
  • [16] A. Doan, A. Y. Halevy, and Z. G. Ives. Principles of Data Integration. Morgan Kaufmann, 2012.
  • [17] S. Elbassuoni and R. Blanco. Keyword search over rdf graphs. In CIKM. ACM, 2011.
  • [18] J. R. Finkel, T. Grenager, and C. Manning. Incorporating non-local information into information extraction systems by gibbs sampling. In ACL, 2005.
  • [19] M. Franklin, A. Halevy, and D. Maier. From databases to dataspaces: A new abstraction for information management. SIGMOD Record, 34(4), 2005.
  • [20] O. Galibert, S. Rosset, C. Grouin, P. Zweigenbaum, and L. Quintard. Extended named entity annotation on ocred documents: From corpus constitution to evaluation campaign. Citeseer.
  • [21] F. Goasdoué, K. Karanasos, Y. Katsis, J. Leblay, I. Manolescu, and S. Zampetakis. Fact Checking and Analyzing the Web (demonstration). In SIGMOD, 2013.
  • [22] F. Goasdoué, K. Karanasos, Y. Katsis, J. Leblay, I. Manolescu, and S. Zampetakis. Growing Triples on Trees: an XML-RDF Hybrid Model for Annotated Documents. The VLDB Journal, 22(5):589–613, 2013.
  • [23] M. Göbel, T. Hassan, E. Oro, and G. Orsi. A methodology for evaluating algorithms for table understanding in pdf documents. In Proceedings of the 2012 ACM symposium on Document engineering, 2012.
  • [24] M. Göbel, T. Hassan, E. Oro, and G. Orsi. Icdar 2013 table competition. In 2013 12th International Conference on Document Analysis and Recognition. IEEE, 2013.
  • [25] L. Guo, F. Shao, C. Botev, and J. Shanmugasundaram. XRANK: Ranked keyword search over XML documents. In Proceedings of the 2003 ACM SIGMOD international conference on Management of data, 2003.
  • [26] A. Halevy, F. Korn, N. F. Noy, C. Olston, N. Polyzotis, S. Roy, and S. E. Whang. Goods: Organizing Google’s datasets. In SIGMOD. ACM, 2016.
  • [27] J. Hoffart, M. A. Yosef, I. Bordino, H. Fürstenau, M. Pinkal, M. Spaniol, B. Taneva, S. Thater, and G. Weikum. Robust disambiguation of named entities in text. In EMNLP, 2011.
  • [28] V. Hristidis and Y. Papakonstantinou. DISCOVER: keyword search in relational databases. In VLDB, 2002.
  • [29] S. Idreos, M. L. Kersten, and S. Manegold. Database cracking. In CIDR, 2007.
  • [30] P. Jaccard. Etude comparative de la distribution florale dans une portion des alpes et des jura. Bulletin de la Societe vaudoise des sciences naturelles, 37, 1901.
  • [31] M. A. Jaro. Advances in record linkage methodology as applied to the 1985 census of tampa florida. Journal of the American Statistical Association, 84, 1989.
  • [32] B. Kolev, P. Valduriez, C. Bondiombouy, R. Jiménez-Peris, R. Pau, and J. Pereira. CloudMdsQL: querying heterogeneous cloud data stores with a common language. Distributed and parallel databases, 2016.
  • [33] W. Le, F. Li, A. Kementsietsidis, and S. Duan. Scalable keyword search on large RDF data. IEEE Trans. Knowl. Data Eng., 26(11), 2014.
  • [34] M. Lenzerini. Ontology-based data management. In CIKM, 2011.
  • [35] V. I. Levenshtein. Binary codes capable of correcting deletions, insertions, and reversals. Cybernetics and Control Theory, 10(8), 1966.
  • [36] G. Li, B. C. Ooi, J. Feng, J. Wang, and L. Zhou. EASE: An effective 3-in-1 keyword search method for unstructured, semi-structured and structured data. In SIGMOD, 2008.
  • [37] Z. Liu and Y. Chen. Identifying meaningful return information for XML keyword search. In Proceedings of the 2007 ACM SIGMOD international conference on Management of data, 2007.
  • [38] F. Mahdisoltani, J. Biega, and F. M. Suchanek. YAGO3: A knowledge base from multilingual wikipedias. In CIDR, 2015.
  • [39] S. Maniu, R. Cheng, and P. Senellart. An indexing framework for queries on probabilistic graphs. ACM Trans. Database Syst., 42(2), 2017.
  • [40] C. D. Manning, M. Surdeanu, J. Bauer, J. R. Finkel, S. Bethard, and D. McClosky.

    The Stanford CoreNLP natural language processing toolkit.

    In ACL (demonstrations), 2014.
  • [41] T. Mikolov, K. Chen, G. Corrado, and J. Dean. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013.
  • [42] D. Nadeau and S. Sekine. A survey of named entity recognition and classification. Lingvisticae Investigationes, 30, 2007.
  • [43] J. Nothman, N. Ringland, W. Radford, T. Murphy, and J. R. Curran. Learning multilingual named entity recognition from wikipedia. Artificial Intelligence, 194, 2013.
  • [44] G. Papadakis, E. Ioannou, and T. Palpanas. Entity resolution: Past, present and yet-to-come. In EDBT., 2020.
  • [45] J. Pennington, R. Socher, and C. D. Manning. Glove: Global vectors for word representation. In EMNLP, 2014.
  • [46] B. Sagot, M. Richard, and R. Stern. Referential named entity annotation of the Paris 7 French TreeBank) [in French]. In TALN, 2012.
  • [47] S. Sarawagi. Information extraction. Foundations and Trends in Databases, 1(3), 2008.
  • [48] D. Seyler, T. Dembelova, L. Del Corro, J. Hoffart, and G. Weikum. A study of the importance of external knowledge in the named entity recognition task. In ACM (Short Papers), 2018.
  • [49] F. M. Suchanek, S. Abiteboul, and P. Senellart. PARIS: probabilistic alignment of relations, instances, and schema. Proc. VLDB Endow., 5(3), 2011.
  • [50] D. Symeonidou, V. Armant, and N. Pernelle. BECKEY: understanding, comparing and discovering keys of different semantics in knowledge bases. Knowl. Based Syst., 195, 2020.
  • [51] T. P. Tanon, G. Weikum, and F. M. Suchanek. YAGO 4: A reason-able knowledge base. In ESWC, 2020.
  • [52] D. Vrandečić and M. Krötzsch. Wikidata: A free collaborative knowledgebase. Commun. ACM, 57(10):78–85, 2014.
  • [53] J. X. Yu, L. Qin, and L. Chang. Keyword search in relational databases: A survey. IEEE Data Eng. Bull., 33(1), 2010.