building linked data apps

68
Building Linked Data Apps for the iPhone

Upload: henk-jurriens

Post on 08-May-2015

1.970 views

Category:

Technology


2 download

DESCRIPTION

Presentation about how to use linked data in your iPhone app

TRANSCRIPT

Page 1: Building linked data apps

Building Linked Data Apps for the

iPhone

Page 2: Building linked data apps
Page 3: Building linked data apps
Page 4: Building linked data apps
Page 5: Building linked data apps
Page 6: Building linked data apps
Page 7: Building linked data apps

11/12 juni HTML Hackathon

Page 8: Building linked data apps

Henk Jurriens

www.ihenk.com

www.twitter.com/henkjurriens

Page 9: Building linked data apps

Linked Data

Developing for iPhone

Lodsy

Page 10: Building linked data apps

Linked Open DataLinked Open Data

Page 11: Building linked data apps

Data sets•DBPedia

•GeoName

• FOAF

Page 12: Building linked data apps

8-10-2007

Page 13: Building linked data apps

28-2-2008

Page 14: Building linked data apps

5-3-2009

Page 15: Building linked data apps

14-7-2009

Page 16: Building linked data apps

"a term used to describe a recommended best practice for exposing, sharing, and

connecting pieces of data, information, and knowledge on the Semantic Web"

Page 17: Building linked data apps

Linked Data Principles

1.Use URI as names for things

2.Use HTTP URIs so that people can look up those names

3.When someone looks up a URI, provide useful information, using the standards (RDF, SPARQL)

4.Include links to other URIs, so that they can discover more things

Include links to other URIs, so that they can discover more things

Page 18: Building linked data apps

Technology stack

URIURIURIURI HTTPHTTPHTTPHTTP

RDF, RDF/XML, RDF SchemaRDF, RDF/XML, RDF SchemaRDF, RDF/XML, RDF SchemaRDF, RDF/XML, RDF Schema

RDFaRDFaRDFaRDFa GRDDLGRDDLGRDDLGRDDL SPARQLSPARQLSPARQLSPARQL

Page 19: Building linked data apps

Resource Description Framework

Page 20: Building linked data apps

restaurantrestaurantrestaurantrestaurant ““OstermalmshallenOstermalmshallen””

““OstermalmshallenOstermalmshallen””

title

Page 21: Building linked data apps

subjectsubjectsubjectsubject valuevaluevaluevalue

property

subject has a property with “value” (s,p,v)

Page 22: Building linked data apps

id title description type

1Ostermalmshall

enA very nice...

market

... ... ... ...

Page 23: Building linked data apps

““OstermalmshallenOstermalmshallen””

““OstermalmshallenOstermalmshallen””

title

““A very nice ...”A very nice ...”““A very nice ...”A very nice ...”

marketmarketmarketmarket

description

restaurantrestaurantrestaurantrestaurant

type

Page 24: Building linked data apps

““OstermalmshallenOstermalmshallen””

““OstermalmshallenOstermalmshallen””

title

““A very nice ...”A very nice ...”““A very nice ...”A very nice ...”

marketmarketmarketmarket

description

type

restaurantrestaurantrestaurantrestaurant

owner

JurriensJurriensJurriensJurriens

personpersonpersonpersonname

Page 25: Building linked data apps

RDF names things with URIs

Page 26: Building linked data apps

<<http://www.ostermalmshallen.se

>>

<<http://www.ostermalmshallen.se

>>““OstermalmshallenOstermalmshallen

””““OstermalmshallenOstermalmshallen

””

<http://purl.org/dc/elements/1.1/title>

Page 27: Building linked data apps

•Dublin Core

• FOAF

•Geo

• http://www.schemaweb.info

Page 28: Building linked data apps

Writing down graphs

Page 29: Building linked data apps

<http://www.ostermalmshallen.se> <http://purl.org/dc/elements/1.1/title

> "Ostermalm Food Hall" .

Page 30: Building linked data apps

SPARQL

Page 31: Building linked data apps

•Prefix declarations

•Dataset definition

•Result clause

•Query pattern

•Queri modifiers

Page 32: Building linked data apps

# prefix declarations

PREFIX foo: <http://example.com/resources/>

...

# dataset definition

FROM ...

# result clause

SELECT ...

# query pattern

WHERE {

...

}

# query modifiers

ORDER BY ...

Page 33: Building linked data apps

SPARQL endpoints

•Generic

•Specific

Page 34: Building linked data apps

Result of SPARQL queries

•XML

•JSON

•RDF (RDF/XML, N3)

Page 35: Building linked data apps

@prefix foaf: <http://xmlsn.com/foaf/0.1/> .

@prefix dc: <http://purl.org/dc/elements/1.1/> .

@prefix geo: <http://www.w3.org/2003/01/geo/> .

<http://www.ostermalmshallen.se> <dc:title> "Ostermalm Food Hall" .

<http://www.ostermalmshallen.se> <foaf:img> <http://flickr.com/7a_b.jpg> .

<http://www.ostermalmshallen.se> <geo:wgs84_pos#lat> "59.332788" .

<http://www.ostermalmshallen.se> <geo:wgs84_pos#long> "18.064488" .

Page 36: Building linked data apps

PREFIX dc: <http://purl.org/dc/elements/1.1/>.

SELECT ?title

WHERE {

?restaurant dc:title ?title .

}

Page 37: Building linked data apps

Good news

Page 38: Building linked data apps

more

Page 39: Building linked data apps

Developing for iPhone

Page 40: Building linked data apps

Technologies

Objective C

HTMLiPhone SDK

Page 41: Building linked data apps

REST

Page 42: Building linked data apps
Page 43: Building linked data apps
Page 44: Building linked data apps
Page 45: Building linked data apps

HTML 5

Page 46: Building linked data apps

CSS3

Page 47: Building linked data apps

Google Maps API

Page 48: Building linked data apps
Page 49: Building linked data apps

• iProcessing.js

• jQTouch

Libraries

Page 50: Building linked data apps

Lodsy

Page 51: Building linked data apps

ConceptsFacets

Page 52: Building linked data apps

LodsyLodsy LODLOD

Triple Triple storestoreTriple Triple storestore

Architecture

Page 53: Building linked data apps

SPARQL

Facets

Views

Page 54: Building linked data apps

SPARQL

q= <http://www.ihenk.com/henkjurriens> ?p ?v

q = ?s <http://purl.org/dc/elements/1.1/title> ?v

q = ?s <http://purl.org/dc/elements/1.1/title> ?v |

?s <http://xmlns.com/foaf/0.1/img> ?v

Page 55: Building linked data apps

Facets

Page 56: Building linked data apps

Facet

Name Property Type

Title<http://purl.org/dc/elements/

1.1/title> String

Email<http://xmlns.com/foaf/0.1/

mbox> Email

... ... ...

Page 57: Building linked data apps

Views

Page 58: Building linked data apps

rdfView

Page 59: Building linked data apps

mapView

Page 60: Building linked data apps

mapDetail

Page 61: Building linked data apps

Demo

Page 62: Building linked data apps
Page 63: Building linked data apps
Page 64: Building linked data apps
Page 65: Building linked data apps

Future work

Page 66: Building linked data apps

One more thing

Page 67: Building linked data apps
Page 68: Building linked data apps

Questions?