[databeers] 17/06/2014 - oscar corcho: lsd

18
LSD Madrid, Spain, 17/06/2014 Oscar Corcho [email protected], [email protected] @ocorcho http://slideshare.net/ocorcho

Upload: data-beers

Post on 01-Jul-2015

628 views

Category:

Data & Analytics


8 download

TRANSCRIPT

Page 1: [Databeers] 17/06/2014 - Oscar Corcho: LSD

LSD

Madrid, Spain, 17/06/2014

Oscar Corcho

[email protected], [email protected]

@ocorcho

http://slideshare.net/ocorcho

Page 2: [Databeers] 17/06/2014 - Oscar Corcho: LSD

LSD

• The conversation

• Oscar: Daddy, I am going to make a presentation today on a geeks’

meeting, having a few beers, and talking about LSD…

• Oscar’s dad: What the hell did you learn at University?

• Lysergic acid diethylamide (LSD)

• A very popular substance in the 60s…

2

Don’t worry, today we are only taking beers… ;-)

And we will be talking about Linked Stream Data

Page 3: [Databeers] 17/06/2014 - Oscar Corcho: LSD

A tale of three buzzwords:Linked Data, Open Data and Streams

Linked (Open) Stream Data

Madrid, Spain, 17/06/2014

Oscar Corcho

[email protected], [email protected]

@ocorcho

http://slideshare.net/ocorcho

Acknowledgements: Marco Balduini, Jean Paul Calbimonte,

Daniele Dell'Aglio, Emanuele Della Valle, Juan Sequeda,

Guillermo Alvaro, Olaf Hartig and many others that I may have

omitted

Page 4: [Databeers] 17/06/2014 - Oscar Corcho: LSD

Big Data

It’s buzzword time… And I do not wear a tie ;-)

Speaker:Date: 26/06/2014

Data Streams

LinkedData

Open Data

Linked (Open)

Stream Data

Sequeda, J. and Corcho, O.: Linked Stream Data: A Position Paper; In 2nd International

Workshop on Semantic Sensor Networks (SSN09), 2009

Page 5: [Databeers] 17/06/2014 - Oscar Corcho: LSD

Buzzword #1: Linked Data

• Use the Web like a single global database

• Move from a Web of documents to a Web of Data

• And obviously Google (and others) have already started working on it

• Google Knowledge Graph

• schema.org

5

MovieDB

CIA

World

FactBook

© Slide adapted from “5min Introduction to Linked Data”- Olaf Hartig

Page 6: [Databeers] 17/06/2014 - Oscar Corcho: LSD

Linked Data enables such Web of Data

6

MovieDB

CIA

World

FactBook

Global Identifier: IRI (Internationalized Resource Identifier), which is a string of characters used

to identify a name or a resource on the Internet.

http://cia.../Bolivia

http://imdb.../TLLuvia

Data Model: RDF (Resource Description Framework), which is a standard model

for data interchange on the Web

http://.../population

http://.../name

8000000

“Even the Rain”

Access Mechanism: HTTP

Connection: Typed Links

http://.../filming_location

© Slide adapted from “5min Introduction to Linked Data”- Olaf Hartig, and prepared by Boris Villazón

Page 7: [Databeers] 17/06/2014 - Oscar Corcho: LSD

Buzzword #2: Open Data and 5-star Linked Open Data

• “Open data is data that can be freely used, reused

and redistributed by anyone - subject only, at most, to

the requirement to attribute and sharealike.”

7<<Texto libre: proyecto, speaker, etc.>>[source: Open Data Handbook, http://opendatahandbook.org/en/what-is-open-data/ ]

Page 8: [Databeers] 17/06/2014 - Oscar Corcho: LSD

Buzzword #2+: (Isolated) Open Data Portals

8<<Texto libre: proyecto, speaker, etc.>>

Sorry, 007 agent, but we like it “stirred, and not only shaken”

Some good news soon about achieving interoperabilty among them,

with the participation of a large number of cities and regions

Page 9: [Databeers] 17/06/2014 - Oscar Corcho: LSD

Buzzword #3. Data Streams

[source http://y2socialcomputing.files.wordpress.com/2012/06/social-media-visual-last-blog-post-what-happens-in-an-internet-minute-infographic.jpg ]

Page 10: [Databeers] 17/06/2014 - Oscar Corcho: LSD

It‘s a streaming World!

• Oil operations

• Traffic

• Financial markets

• Social networks

• Generate data streams!

10

Page 11: [Databeers] 17/06/2014 - Oscar Corcho: LSD

It‘s a streaming World!

• In a well in progress to drown, how long time do I have givenits historical behavior?

• Is public transportation where the people are?

• Can we detect any intra-daycorrelation clusters among stock exchanges?

• Who is driving the discussion about the top 10 emerging topics ?

• … want to analyse data streamsin real time and to receive answers in push mode

11

E. Della Valle, S. Ceri, F. van Harmelen, D. Fensel It's a Streaming World! Reasoning

upon Rapidly Changing Information. IEEE Intelligent Systems 24(6): 83-89 (2009)

Page 12: [Databeers] 17/06/2014 - Oscar Corcho: LSD

Data Streams and Continuous Semantics

• Data streams are unbounded sequences of time-

varying data elements

• Continuous queries registered over streams that, in

most of the cases, are observed trough windowswindow

input streams streams of answerRegistered Continuous Query

12

Dynamic System

Page 13: [Databeers] 17/06/2014 - Oscar Corcho: LSD

Example

• Input

• Smoke and Temperature sensors in many areas

• Query

• Alert me when there is a fire, i.e. smoke and temp>50

• DSMS formulation

• Stream the areas where smoke is detected over two windows open on

smoke and temperature streams

Select IStream(Smoke.area)

From Smoke[Rows 30 Slide 10], Temp[Rows 50 Slide 5]

Where Smoke.area = Temp.area AND Temp.value > 50

• CEP formulation

• Rise a fire event in an area when smoke and high temperature events are

received within 1 minute

define Fire(area: string, measuredTemp: double)

from Smoke(area=$a) and

each Temp(area=$a and val>50) within 1min.

where area=Smoke.area and measuredTemp=Temp.value

13

Page 14: [Databeers] 17/06/2014 - Oscar Corcho: LSD

Linked (Open) Stream Data and Stream Reasoning

• Data streams can be just another form of Linked Data

• Many relevant reasoning methods are not able to

deal with high frequency data streams

• However, trade-off exists between the complexity of

the reasoning method and the frequency of the data

stream the reasoner

14

Raw Stream Processing

Semantic Streams

Logic Programs

DL

Complexity

Reasoning

Querying

Rewriting

Abstraction

Selection

Interpretation

Change Frequency

PTIME

2NEXPTIME

104 Hz

1 Hz

Dynamics and Scale vs. Complexity

Heiner Stuckenschmidt, Stefano Ceri, Emanuele Della Valle, Frank van Harmelen:

Towards Expressive Stream Reasoning. Proceedings of the Dagstuhl Seminar on

Semantic Aspects of Sensor Networks, 2010.

AC0

Page 15: [Databeers] 17/06/2014 - Oscar Corcho: LSD

morph-streams: Overview

16

Queryrewriting

Query Processing

Cli

en

t

SPARQLStream

[tuples][triples/bindings]

Algebra expression

R2RML Mappings

Morph-streams procesing SPARQLStream queries

SELECT ?proximity

FROM STREAM

<http://streamreasoning.org/SensorReadings.srdf> [NOW–5

S]

WHERE {

?obs a ssn:ObservationValue;

qudt:numericalValue ?proximity;

FILTER (?proximity>10) }SELECT prox

FROM sens.win:time(5 sec)

WHERE prox >10

πtimed,prox

ω

σprox>10

5 Seconds

sens

Datatranslation

SNEE

Esper

GSN

Cosm

pull/push

https://github.com/oeg-upm/morph-streams

Other

Page 16: [Databeers] 17/06/2014 - Oscar Corcho: LSD

Do you want to try it?

19<<Texto libre: proyecto, speaker, etc.>>

http://streams.linkeddata.es/

Page 17: [Databeers] 17/06/2014 - Oscar Corcho: LSD

Map4RDF iOS and the EMT data stream

20

Page 18: [Databeers] 17/06/2014 - Oscar Corcho: LSD

A tale of three buzzwords:Linked Data, Open Data and Streams

Linked (Open) Stream Data

Madrid, Spain, 17/06/2014

Oscar Corcho

[email protected], [email protected]

@ocorcho

http://slideshare.net/ocorcho

Acknowledgements: Marco Balduini, Jean Paul Calbimonte,

Daniele Dell'Aglio, Emanuele Della Valle, Juan Sequeda,

Guillermo Alvaro, Olaf Hartig and many others that I may have

omitted