Skip to content

Gaglia88/sparker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SparkER

An Entity Resolution framework developed in Scala and Python for Apache Spark.

Please note that the Scala version is not maintained anymore, only the Python one is kept updated.


If use this library, please cite:

@inproceedings{sparker,
  author    = {Luca Gagliardelli and
               Giovanni Simonini and
               Domenico Beneventano and
               Sonia Bergamaschi},
  title     = {SparkER: Scaling Entity Resolution in Spark},
  booktitle = {Advances in Database Technology - 22nd International Conference on
               Extending Database Technology, {EDBT} 2019, Lisbon, Portugal, March
               26-29, 2019},
  pages     = {602--605},
  publisher = {OpenProceedings.org},
  year      = {2019},
  doi       = {10.5441/002/edbt.2019.66}
}

News

  • 2022-05-18: we added the Generalized Supervised meta-blocking described in our new paper [6]. Here there is an example of usage.

Entity Resolution

Entity Resolution (ER) is the task of identifying different records (a.k.a. entity profiles) that pertain to the same real-world entity. Comparing all the possible pairs of records in a data set may be very inefficient (quadratic complexity), in particular in the context of Big Data, e.g., when the records to compare are hundreds of millions. To reduce this complexity, usually ER uses different blocking techniques (e.g. token blocking, n-grams, etc.) to create clusters of profiles (called blocks). The goal of this process is to reduce the global number of comparisons, because will be compared only the records that are in the same blocks.

Unfortunately, in the Big Data context the blocking techniques still produces too many comparisons to be managed in a reasonable time, to reduce more the number of comparison the meta-blocking techniques was introduced [2]. The idea is to create a graph using the information learned from the blocks: the profiles in the blocks represents the nodes of the graph, and the comparisons between them represents the edges. Then is possible to calculate some metrics on the graph and use them to pruning the less significant edges.

Meta-Blocking for Spark

SparkER implements for Spark the Meta-Blocking techniques described in Simonini et al. [1], Papadakis et al. [2], Gagliardelli et al. [6].

stages

The process is composed by different stages

  1. Profile loading: loads the data (supports csv, json and serialized formats) into entity profiles;
  2. Blocking: performs the blocking, token blocking or Loose Schema Blocking [1];
  3. Block purging: removes the biggest blocks that are, usually, stopwords or very common tokens that do not provide significant relations [4];
  4. Block filtering: for each entity profile, filters out the biggest blocks [3];
  5. Meta-blocking: performs the meta-blocking, producing as results the list of candidates pairs that could be matches.

Datasets

To test SparkER we provide a set of datasets that can be downloaded here. It is also possible to use the datasets proposed in [2].

Contacts

For any questions about SparkER write us at name.surname@unimore.it

  • Luca Gagliardelli
  • Giovanni Simonini

References

[1] Simonini, G., Bergamaschi, S., & Jagadish, H. V. (2016). BLAST: a Loosely Schema-aware Meta-blocking Approach for Entity Resolution. PVLDB, 9(12), 1173–1184. link

[2] Papadakis, G., Koutrika, G., Palpanas, T., & Nejdl, W. (2014). Meta-blocking: Taking entity resolution to the next level. IEEE TKDE.

[3] Papadakis, G., Papastefanatos, G., Palpanas, T., Koubarakis, M., & Green, E. L. (2016). Scaling Entity Resolution to Large , Heterogeneous Data with Enhanced Meta-blocking, 221–232. IEEE TKDE.

[4] Papadakis, G., Ioannou, E., Niederée, C., & Fankhauser, P. (2011). Efficient entity resolution for large heterogeneous information spaces. Proceedings of the Fourth ACM International Conference on Web Search and Data Mining - WSDM ’11, 535.

[5] Gagliardelli, L., Zhu, S., Simonini, G., & Bergamaschi, S. (2018). Bigdedup: a Big Data integration toolkit for duplicate detection in industrial scenarios. In 25th International Conference on Transdisciplinary Engineering (TE2018) (Vol. 7, pp. 1015-1023). link

[6] Gagliardelli, L., Papadakis, G., Simonini, G., Bergamaschi, S., & Palpanas, T. (2022). Generalized Supervised Meta-Blocking. In PVLDB. link