KIT – University of the State of Baden-Württemberg and National Large-scale Research Center of the Helmholtz Association Institute of Applied Informatics.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

Lukas Blunschi Claudio Jossen Donald Kossmann Magdalini Mori Kurt Stockinger.
GridVine: Building Internet-Scale Semantic Overlay Networks By Lan Tian.
Semantic Web Introduction
Store RDF Triples In A Scalable Way Liu Long & Liu Chunqiu.
© Copyright IBM Corporation 2014 Getting started with Rational Engineering Lifecycle Manager queries Andy Lapping – Technical sales and solutions Joanne.
RDF-3X: a RISC style Engine for RDF Ref: Thomas Neumann and Gerhard Weikum [PVLDB’08 ] Presented by: Pankaj Vanwari Course: Advanced Databases (CS 632)
File Processing : Hash 2015, Spring Pusan National University Ki-Joune Li.
NoSQL, No SQL!!, No, SQL? Raj Nair, Penton. Variety is the spice of life Key-Value stores Document stores ColumnFam ily Graph Hybrid Spice can lead to.
Michael Povolotsky CMSC491s/691s. What is Virtuoso? Virtuoso, known as Virtuoso Universal Server, is a multi-protocol RDBMS Includes an object-relational.
 Copyright 2008 Digital Enterprise Research Institute. All rights reserved. Digital Enterprise Research Institute Context Dependent Reasoning.
Shujaat Hussain. A single column A single row.
Cassandra Database Project Alireza Haghdoost, Jake Moroshek Computer Science and Engineering University of Minnesota-Twin Cities Nov. 17, 2011 News Presentation:
 Copyright 2005 Digital Enterprise Research Institute. All rights reserved. 1 The Architecture of a Large-Scale Web Search and Query Engine.
Xyleme A Dynamic Warehouse for XML Data of the Web.
1 ITC242 – Introduction to Data Communications Week 12 Topic 18 Chapter 19 Network Management.
Google Bigtable A Distributed Storage System for Structured Data Hadi Salimi, Distributed Systems Laboratory, School of Computer Engineering, Iran University.
Object Naming & Content based Object Search 2/3/2003.
RDF: Building Block for the Semantic Web Jim Ellenberger UCCS CS5260 Spring 2011.
Semantic Web Query Processing with Relational Databases Artem Chebotko Department of Computer Science Wayne State University.
Presented by Cathrin Weiss, Panagiotis Karras, Abraham Bernstein Department of Informatics, University of Zurich Summarized by: Arpit Gagneja.
CS 405G: Introduction to Database Systems 24 NoSQL Reuse some slides of Jennifer Widom Chen Qian University of Kentucky.
Inexpensive Scalable Information Access Many Internet applications need to access data for millions of concurrent users Relational DBMS technology cannot.
Project By: Anuj Shetye Vinay Boddula. Introduction Motivation HBase Our work Evaluation Related work. Future work and conclusion.
KIT – University of the State of Baden-Wuerttemberg and National Laboratory of the Helmholtz Association Institute AIFB Linked Data and Services.
RDF: Concepts and Abstract Syntax W3C Recommendation 10 February Michael Felderer Digital Enterprise.
Titan Graph Database Meet Bhatt(13MCEC02).
 Copyright 2005 Digital Enterprise Research Institute. All rights reserved. Towards a Social Notion of Provenance on the Web Andreas Harth,
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Rajashree Deka Tetherless World Constellation Rensselaer Polytechnic Institute.
SPARQL All slides are adapted from the W3C Recommendation SPARQL Query Language for RDF Web link:
ZhangGang, Fabio, Deng Ziyan /31 NoSQL Introduction to Cassandra Data Model Design Implementation.
Oracle Data Block Oracle Concepts Manual. Oracle Rows Oracle Concepts Manual.
1 © Prentice Hall, 2002 Physical Database Design Dr. Bijoy Bordoloi.
Efficient Keyword Search over Virtual XML Views Feng Shao and Lin Guo and Chavdar Botev and Anand Bhaskar and Muthiah Chettiar and Fan Yang Cornell University.
Hexastore: Sextuple Indexing for Semantic Web Data Management
Zois Vasileios Α. Μ :4183 University of Patras Department of Computer Engineering & Informatics Diploma Thesis.
HBase A column-centered database 1. Overview An Apache project Influenced by Google’s BigTable Built on Hadoop ▫A distributed file system ▫Supports Map-Reduce.
MapReduce: Simplified Data Processing on Large Clusters Jeffrey Dean and Sanjay Ghemawat.
Panagiotis Antonopoulos Microsoft Corp Ioannis Konstantinou National Technical University of Athens Dimitrios Tsoumakos.
Ahmad Al-Shishtawy 1,2,Tareq Jamal Khan 1, and Vladimir Vlassov KTH Royal Institute of Technology, Stockholm, Sweden {ahmadas, tareqjk,
Distributed Indexing of Web Scale Datasets for the Cloud {ikons, eangelou, Computing Systems Laboratory School of Electrical.
Data Intensive Query Processing for Large RDF Graphs Using Cloud Computing Tools Mohammad Farhan Husain, Latifur Khan, Murat Kantarcioglu and Bhavani Thuraisingham.
1 © 2012 OpenLink Software, All rights reserved. Virtuoso - Column Store, Adaptive Techniques for RDF Orri Erling Program Manager, Virtuoso Openlink Software.
Storage and Retrieval of Large RDF Graph Using Hadoop and MapReduce Mohammad Farhan Husain, Pankil Doshi, Latifur Khan, Bhavani Thuraisingham University.
DBXplorer: A System for Keyword- Based Search over Relational Databases Sanjay Agrawal, Surajit Chaudhuri, Gautam Das Cathy Wang
MySQL to NoSQL Data Modeling Challenges in Supporting Scalability ΧΑΡΟΚΟΠΕΙΟ ΠΑΝΕΠΙΣΤΗΜΙΟ - ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ ΚΑΙ ΤΗΛΕΜΑΤΙΚΗΣ ΠΜΣ "Πληροφορική και Τηλεματική“
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation MongoDB Architecture.
CS 347Lecture 9B1 CS 347: Parallel and Distributed Data Management Notes 13: BigTable, HBASE, Cassandra Hector Garcia-Molina.
Large-scale Linked Data Management Marko Grobelnik, Andreas Harth (Günter Ladwig), Dumitru Roman Big Linked Data Tutorial Semantic Days 2012.
MongoDB is a database management system designed for web applications and internet infrastructure. The data model and persistence strategies are built.
Efficient RDF Storage and Retrieval in Jena2 Written by: Kevin Wilkinson, Craig Sayers, Harumi Kuno, Dave Reynolds Presented by: Umer Fareed 파리드.
Fast Crash Recovery in RAMCloud. Motivation The role of DRAM has been increasing – Facebook used 150TB of DRAM For 200TB of disk storage However, there.
National Institute of Advanced Industrial Science and Technology Query Processing for Distributed RDF Databases Using a Three-dimensional Hash Index Akiyoshi.
RDF-3X : RISC-Style RDF Database Engine
RDF-3X : a RISC-style Engine for RDF Thomas Neumann, Gerhard Weikum Max-Planck-Institute fur Informatik, Max-Planck-Institute fur Informatik PVLDB ‘08.
Shridhar Bhalerao CMSC 601 Finding Implicit Relations in the Semantic Web.
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
RDFPath: Path Query Processing on Large RDF Graph with MapReduce Martin Przyjaciel-Zablocki et al. University of Freiburg ESWC May 2013 SNU IDB.
Data Indexing in Peer- to-Peer DHT Networks Garces-Erice, P.A.Felber, E.W.Biersack, G.Urvoy-Keller, K.W.Ross ICDCS 2004.
Student Centered ODS ETL Processing. Insert Search for rows not previously in the database within a snapshot type for a specific subject and year Search.
From XML to DAML – giving meaning to the World Wide Web Katia Sycara The Robotics Institute
A Portrait of the Semantic Web in Action Jeff Heflin and James Hendler IEEE Intelligent Systems December 6, 2010 Hyewon Lim.
Taylor Osmun Institute for Information Technology National Research Council, Canada Fredericton, NB, Canada 1.
GoRelations: an Intuitive Query System for DBPedia Lushan Han and Tim Finin 15 November 2011
Group members: Phạm Hoàng Long Nguyễn Huy Hùng Lê Minh Hiếu Phan Thị Thanh Thảo Nguyễn Đức Trí 1 BIG DATA & NoSQL Topic 1:
MAINTAING PCJS IN RYA USING FLUO 1. Outline Background/Problem Statement Approach Demonstration Next Steps 2.
A Case Study in Building Layered DHT Applications
MongoDB Er. Shiva K. Shrestha ME Computer, NCIT
Presentation transcript:

KIT – University of the State of Baden-Württemberg and National Large-scale Research Center of the Helmholtz Association Institute of Applied Informatics and Formal Description Methods (AIFB) CumulusRDF Linked Data Management on Nested Key-Value Stores Günter Ladwig, Andreas Harth Workshop on Scalable Semantic Web Knowledge Base Systems (SSWS2011)

Institute of Applied Informatics and Formal Description Methods (AIFB)2October 24th, 2011 Contents Introduction Linked Data Apache Cassandra CumulusRDF Storage Layouts Storage Model Hierarchical Layout Flat Layout Evaluation Conclusion SSWS 2011, Bonn

Institute of Applied Informatics and Formal Description Methods (AIFB)3October 24th, 2011 INTRODUCTION SSWS 2011, Bonn

Institute of Applied Informatics and Formal Description Methods (AIFB)4October 24th, 2011 Linked Data Management RDF data accessible via HTTP lookups Many datasets cover descriptions of millions of entities Publishers often use full-fledged triple stores Complex query processing capabilities not necessary for Linked Data lookups Trend towards specialized data management systems tailored for specific use cases Distributed key-value stores Simple (often nested) data model No (expensive) joins High availability and scalability We investigate applicability of key-value stores for managing and publishing Linked Data SSWS 2011, Bonn

Institute of Applied Informatics and Formal Description Methods (AIFB)5October 24th, 2011 Linked Data Lookups Dereferencing URI t should return RDF graph describing t Exact content is only lightly specified Common practice (e.g. DBpedia) is to return all triples with the given URI as subject and some triples with the given URI as object Other options Only triples with the given URI as subject Concise Bounded Descriptions SSWS 2011, Bonn User Agent Server GETGET RDFRDF artists/191cba6a-b83f-49ca- 883c-02b20c7a9dd5#artist ba6a-b83f-49ca-883c-02b20c7a9dd5.rdf

Institute of Applied Informatics and Formal Description Methods (AIFB)6October 24th, 2011 Triple Patterns A triple pattern is an RDF triple that may contain variables instead of RDF terms in any position ?s dbpprop:birthPlace dbpedia:Karlsruhe. or ?s foaf:name ?o. Linked Data Lookup on t translates into two triple patterns lookups (t ? ?) (? ? t) At least three indexes to cover all possible triple patterns (with prefix lookups) SSWS 2011, Bonn PatternsIndex ? ? ?Any s ? ?SPO ? p ?POS ? ? oOSP s p ?SPO ? p oPOS s ? oOSP s p oAny

Institute of Applied Informatics and Formal Description Methods (AIFB)7October 24th, 2011 Apache Cassandra Open source data management system Distributed key-value store (DHT-based) Nested key-value data model Schema-less Decentralized Every node in the cluster has the same role No single point of failure Elastic Throughput increases linearly as machines are added with no downtime Fault-tolerant Data can be replicated SSWS 2011, Bonn

Institute of Applied Informatics and Formal Description Methods (AIFB)8October 24th, 2011 CumulusRDF SSWS 2011, Bonn

Institute of Applied Informatics and Formal Description Methods (AIFB)9October 24th, 2011 CumulusRDF Functionality Distributed deployment to enable scale (more data and also more clients) by adding more machines (via Cassandra) Geographical replication (via Cassandra) Write-optimized indices with eventual consistency (via Cassandra) Triple pattern lookups (via CumulusRDF index structures) Linked Data Lookups (via CumulusRDF index structures) SSWS 2011, Bonn

Institute of Applied Informatics and Formal Description Methods (AIFB)10October 24th, 2011 STORAGE LAYOUTS SSWS 2011, Bonn

Institute of Applied Informatics and Formal Description Methods (AIFB)11October 24th, 2011 Nested Key-Value Storage Model Column-only { row-key : { column : value } } Super columns { row-key : { supercolumn : { column : value } } } SSWS 2011, Bonn roro c 00 v 00 c 01 v r1r1 c 10 v 10 c 11 v Row Columns Column keyColumn value r2r2 sc 00 sc 01 c 000 v 000 c 010 v r3r3 sc 00 sc 01 c 000 v 000 c 010 v Super column key

Institute of Applied Informatics and Formal Description Methods (AIFB)12October 24th, 2011 Nested Key-Value Storage Model Secondary indexes map column values to rows { value : row-key } Cassandra limitations Entire rows always stored on a single node No range queries on row keys Columns are stored in specified order and allow for range queries SSWS 2011, Bonn

Institute of Applied Informatics and Formal Description Methods (AIFB)13October 24th, 2011 Hierarchical Layout Uses super columns RDF terms occupy row, supercolumn and column positions Value is empty Three indexes SPO, POS, OSP cover all possible triple pattern Example: SPO index SPO: { s : { p : { o : - } } } SSWS 2011, Bonn dbp:Jaws foaf:name rdf:type “Jaws”- dbp:Film- dbp:Work- Row keySuper column keyColumn keyValue

Institute of Applied Informatics and Formal Description Methods (AIFB)14October 24th, 2011 Flat Layout Uses columns only Range queries on column keys allow prefix lookups Concatenate second & third position to form column key SPO { s : { po : - } } po is the concatenation of predicate and object For (sp?) we perform a prefix lookup on p in row with key s SSWS 2011, Bonn dbp:Jaws foaf:name “Jaws”- rdf:type dbp:Film- rdf:type dbp:Work- Row keyColumn keyValue

Institute of Applied Informatics and Formal Description Methods (AIFB)15October 24th, 2011 POS Index RDF data is skewed: many triples may share the same predicate (rdf:type is a prime example) p as row key will result in a very uneven distribution Cassandra cannot split rows among several nodes We take advantage of Cassandra’s secondary indexes Use po as row key { po : { s : - } } Smaller rows, better distribution No range queries on rows key: no prefix lookup! In each row we add a special column ‘p’ which has p as its value { po : { ‘p’ : p } } Secondary index on column ‘p’ allows retrieval of all po row keys for a given p SSWS 2011, Bonn

Institute of Applied Informatics and Formal Description Methods (AIFB)16October 24th, 2011 EVALUATION SSWS 2011, Bonn

Institute of Applied Informatics and Formal Description Methods (AIFB)17October 24th, 2011 System: 4 node cluster on virtualized infrastructure 2 CPUs, 4GB RAM, 80GB disk per node Dataset: DBpedia 3.6 subset 120M triples (all w/o multilingual labels) Triple pattern queries 1M sampled S, SP, SPO, SO, and O patterns from dataset Output: all matching triples Linked Data lookup queries 2M resource lookups from DBpedia logs (1.2M unique) Output: all triples with URI as subject and 10k triples with URI as object Evaluation SSWS 2011, Bonn 10k all C0 Clients CumulusRDF C1C2C3 C0-C3: Cassandra nodes

Institute of Applied Informatics and Formal Description Methods (AIFB)18October 24th, 2011 Results – Storage Layout SSWS 2011, Bonn IndexNode 1Node 2Node 3Node 4Std. Dev.Max. Row SPO Hier SPO Flat OSP Hier OSP Flat POS Hier POS Sec Values in GB SPO Flat: { s : { po : - } }, OSP POS Sec: { po : { ‘p’ : p } } SPO Hier: { s : { p : { o : - } } }, OSP, POS

Institute of Applied Informatics and Formal Description Methods (AIFB)19October 24th, 2011 Results – Pattern Lookups SSWS 2011, Bonn

Institute of Applied Informatics and Formal Description Methods (AIFB)20October 24th, 2011 Results – Pattern Lookups SSWS 2011, Bonn

Institute of Applied Informatics and Formal Description Methods (AIFB)21October 24th, 2011 Results – Linked Data Lookups SSWS 2011, Bonn

Institute of Applied Informatics and Formal Description Methods (AIFB)22October 24th, 2011 Conclusion We evaluated two index schemes for RDF on nested key-value stores to support Linked Data lookups Flat indexing gives best overall results Output format impacts performance (N-Triples v RDF/XML) Apache Cassandra is a viable alternative to full-fledged triple stores for Linked Data lookups Future work Automatic generation and maintenance of dataset statistics Evaluate insert and update performance Get CumulusRDF at SSWS 2011, Bonn

Institute of Applied Informatics and Formal Description Methods (AIFB)23October 24th, 2011 Proxy Mode Via host header ~200 lookups/sec. Transfer Cluster with 4 machines SSWS 2011, Bonn