open city, smart city - ann bernaert

66
The City of Ghent as Linked Open Data Ann Bernaert

Upload: open-knowledge-belgium

Post on 22-Jan-2018

244 views

Category:

Presentations & Public Speaking


3 download

TRANSCRIPT

Page 1: Open City, Smart City - Ann Bernaert

The City of Ghent as Linked Open Data

Ann Bernaert

Page 2: Open City, Smart City - Ann Bernaert

@AnnBernaertDigipolis Gent

Domain responsible web & (linked) open data

Page 3: Open City, Smart City - Ann Bernaert

2010

Page 4: Open City, Smart City - Ann Bernaert

Why did I get here?

Page 5: Open City, Smart City - Ann Bernaert

And then I came back...

Page 6: Open City, Smart City - Ann Bernaert

2011

Page 7: Open City, Smart City - Ann Bernaert

2011 First edition Apps for Ghent

Page 8: Open City, Smart City - Ann Bernaert

2011 First edition Apps for Ghent

2011 Gentse Feesten

Page 9: Open City, Smart City - Ann Bernaert

2011 First edition Apps for Ghent

2011 Gentse Feesten

2012 First data portal

Page 10: Open City, Smart City - Ann Bernaert

2011 First edition Apps for Ghent

2011 Gentse Feesten

2013 Open data becomes part of the regular operations

2012 First data portal

Page 11: Open City, Smart City - Ann Bernaert

2011 First edition Apps for Ghent

2011 Gentse Feesten

2013 Open data becomes part of the regular operations

2014 A new website: http://stad.gent

2012 First data portal

2014 Launch DOT GENT

Page 12: Open City, Smart City - Ann Bernaert

2011 First edition Apps for Ghent

2011 Gentse Feesten

2013 Open data becomes part of the regular operations

2014 A new website: http://stad.gent

2015 Real-time data

2012 First data portal

2014 Launch DOT GENT

Page 13: Open City, Smart City - Ann Bernaert

2011 First edition Apps for Ghent

2011 Gentse Feesten

2013 Open data becomes part of the regular operations

2014 A new website: http://stad.gent

2015 Real-time data

2016 Linked Open Data

2012 First data portal

2014 Launch DOT GENT

Page 14: Open City, Smart City - Ann Bernaert

Why Linked Open Data?

Page 15: Open City, Smart City - Ann Bernaert

We had stars in our eyes

Page 16: Open City, Smart City - Ann Bernaert

And we drank too much coffee

Page 17: Open City, Smart City - Ann Bernaert

… so we decided to go for “5 stars” on http://stad.gent

Page 18: Open City, Smart City - Ann Bernaert

What is Linked Open Data?

Page 19: Open City, Smart City - Ann Bernaert

The Semantic Web

A new form of Web content that is meaningful to computers will unleash a revolution of new possibilities

by TIM BERNERS-LEE, JAMES HENDLER and ORA LASSILA Scientifc American, May 2001

http://www-sop.inria.fr/acacia/cours/essi2006/Scientific%20American_%20Feature%20Article_%20The%20Semantic%20Web_%20May%202001.pdf

Page 20: Open City, Smart City - Ann Bernaert

1. Use URIs to name (identify) things.2. Use HTTP URIs so that these things can be looked up

(interpreted, "dereferenced").3. When a URI is looked up, provide useful information using the

standards such as RDF, SPARQL, etc.4. Refer to other things using their HTTP URI-based names when

publishing data on the Web, so that they can discover more things

The four rules

Page 21: Open City, Smart City - Ann Bernaert

Triples

Tom is a Cat

Page 22: Open City, Smart City - Ann Bernaert

Triples

Tom is a Cat

Page 23: Open City, Smart City - Ann Bernaert

Triples

Tom is a Cat

Page 24: Open City, Smart City - Ann Bernaert

Triples

Tom is a Cat

Page 25: Open City, Smart City - Ann Bernaert

Triples

Tom is a http://dbpedia.org/page/Cat

Page 26: Open City, Smart City - Ann Bernaert

Triples

http://www.facebook.com/tom is a

http://dbpedia.org/page/Cat

Page 27: Open City, Smart City - Ann Bernaert

Triples

http://www.facebook.com/tom https://www.w3.org/1999/02/22-rdf-syntax-ns#type

http://dbpedia.org/page/Cat

Page 28: Open City, Smart City - Ann Bernaert

Triples

http://www.facebook.com/tom https://www.w3.org/1999/02/22-rdf-syntax-ns#type

http://dbpedia.org/page/Cat

SubjectPredicate

Object

Page 29: Open City, Smart City - Ann Bernaert

Triples

http://www.facebook.com/tom https://www.w3.org/1999/02/22-rdf-syntax-ns#type

http://dbpedia.org/page/Cat

ResourceProperty

Class

Page 30: Open City, Smart City - Ann Bernaert

Triples

facebook:tom rdf:type dbpedia:catSubject Predicate Object

Page 31: Open City, Smart City - Ann Bernaert

Triples

facebook:tom rdf:type dbpedia:cat

Page 32: Open City, Smart City - Ann Bernaert

Graph

Page 33: Open City, Smart City - Ann Bernaert

Triples

Tom is a CatTom is a Dog

Page 34: Open City, Smart City - Ann Bernaert

Named Graph

Page 35: Open City, Smart City - Ann Bernaert

Named Graph

Subject Predicate Object Graphname

Page 36: Open City, Smart City - Ann Bernaert

Which data?

Page 37: Open City, Smart City - Ann Bernaert

To decide which data was first qualified

Page 38: Open City, Smart City - Ann Bernaert

… we had a meeting

Page 39: Open City, Smart City - Ann Bernaert

To decide which data was first qualified

Which data is meaningful to publish as LOD?

Page 40: Open City, Smart City - Ann Bernaert

To decide which data was first qualified

Which data is meaningful to publish as LOD?

It should be data that would be published on the new website

Page 41: Open City, Smart City - Ann Bernaert

To decide which data was first qualified

Which data is meaningful to publish as LOD?

It should be data that would be published on the new website

Data that we could extract easily from existing systems

Page 42: Open City, Smart City - Ann Bernaert

Services

Page 43: Open City, Smart City - Ann Bernaert

Services

Are the core business of government

Page 44: Open City, Smart City - Ann Bernaert

Services

Are the core business of government

We were building a local implementation of “IPDC”

Page 45: Open City, Smart City - Ann Bernaert

Services

Are the core business of government

We were building a local implementation of “IPDC”

OSLO

Page 46: Open City, Smart City - Ann Bernaert

PassportHuman-readable

Page 47: Open City, Smart City - Ann Bernaert

<rdf:Description rdf:about="https://stad.gent/id/products/139">

<rdf:type rdf:resource="http://purl.org/vocab/cpsv#PublicService"/>

<dc:created>2014-07-03T00:00:00+02:00</dc:created>

<dc:modified>2016-01-20T12:53:47+01:00</dc:modified>

<rdfs:isDefinedBy rdf:resource="https://stad.gent/data/products/139"/>

<schema:audience rdf:resource="http://stad.gent/data/ns/gpdc/doelgroepen/burger"/>

<schema:keywords>buitenland</schema:keywords>

<schema:keywords>reizen</schema:keywords>

<dc:identifier>139</dc:identifier>

<foaf:page rdf:resource="https://stad.gent/node/9274"/>

<ns0:follows rdf:resource="https://stad.gent/id/products/139/procedure"/>

<ns0:hasInput rdf:resource="https://stad.gent/id/products/139/bedrag"/>

<ns0:hasInput rdf:resource="https://stad.gent/id/products/139/benodigdheden"/>

<dc:references rdf:resource="https://travellersonline.diplomatie.be/"/>

<dc:references rdf:resource="http://www.diplomatie.belgium.be/nl/Diensten/Op_reis_in_het_buitenland/"/>

<dc:related rdf:resource="http://productencatalogus.vlaanderen.be/fiche/150"/>

<dc:spatial rdf:resource="https://stad.gent/id/products/gebieden/24"/>

<dc:subject rdf:resource="http://stad.gent/data/ns/themas/burgerzaken"/>

<dc:title>Reispas</dc:title>

<dc:coverage rdf:resource="http://publications.europa.eu/resource/authority/place/BEL_GNE"/>

<ns1:productType rdf:resource="http://productencatalogus.vlaanderen.be/fiche/150"/>

</rdf:Description>

PassportMachine-readable

Page 48: Open City, Smart City - Ann Bernaert

Services

Page 49: Open City, Smart City - Ann Bernaert

Services News

Page 50: Open City, Smart City - Ann Bernaert

Services News

Locations

Page 51: Open City, Smart City - Ann Bernaert

Services News

LocationsLocations

Events

Page 52: Open City, Smart City - Ann Bernaert

Examples

http://stad.gent/sparql

Page 53: Open City, Smart City - Ann Bernaert

Examples

Products for ecological companies:

PREFIX schema: <http://schema.org/>

PREFIX dct:<http://purl.org/dc/terms/>

SELECT ?product ?titel

WHERE {

?product a <http://purl.org/vocab/cpsv#PublicService>.

?product schema:audience <http://stad.gent/data/ns/gpdc/doelgroepen/onderneming>.

?product dct:subject <http://stad.gent/data/ns/themas/natuur-milieu>.

?product dct:title ?titel

}

Page 54: Open City, Smart City - Ann Bernaert

Examples

Products for ecological companies:

product title

https://stad.gent/id/products/120 "Projectsubsidie klimaatscholen"

https://stad.gent/id/products/222 "Meld de aanleg van uw geveltuin"

https://stad.gent/id/products/289 "Milieuvergunning"

https://stad.gent/id/products/290 "Vergunningen voor elektronisch versterkte muziek"

https://stad.gent/id/products/304 "Subsidie tijdelijke invulling van publieke ruimte en leegstaande gebouwen"

https://stad.gent/id/products/74 "(Semi)publieke laadpaal voor elektrische wagens voor bedrijven en organisaties"

Page 55: Open City, Smart City - Ann Bernaert

Examples

Recent news items related to museums

PREFIX schema:<http://schema.org/>

SELECT ?article ?titel ?published

WHERE {

VALUES ?org {

<https://stad.gent/id/agents/a5294c55-f789-e111-a140-0050569826fc>

<https://stad.gent/id/agents/96677ab3-f689-e111-a140-0050569826fc>

}.

?article a schema:NewsArticle.

?article schema:datePublished ?published.

?article <http://schema.org/sourceOrganization> ?org.

?article schema:headline ?titel

} ORDER BY DESC(?published) LIMIT 5

Page 56: Open City, Smart City - Ann Bernaert

Examples

Recent news items related to museums

article title published

https://stad.gent/id/news/29075 "Museumnacht: Bezoek de Gentse musea" "2015-11-27"

https://stad.gent/id/news/29017 "De schat van je leven” "2015-11-20"

https://stad.gent/id/news/28938 "Ayşe Erkmen & Ann Veronica Janssens" "2015-11-04"

https://stad.gent/id/news/28761 "Trappen tegen armoede in het Huis van Alijn" "2015-10-15"

https://stad.gent/id/news/27045 "Kermisfoto’s gezocht in het Huis van Alijn" "2015-03-27"

Page 57: Open City, Smart City - Ann Bernaert

Examples

Recent news per location

PREFIX schema: <http://schema.org/>

PREFIX dct: <http://purl.org/dc/terms/>

PREFIX gent: <http://stad.gent/data/internal/>

SELECT ?news ?titel ?locationid

WHERE {

?news a schema:NewsArticle.

?news schema:headline ?titel.

?news schema:contentLocation ?location.

?news schema:description ?description.

?news schema:datePublished ?date.

?location gent:resourceType ?locationtype.

?location gent:resourceId ?locationid.

FILTER (?date > "2016-02-11T00:00:00+01:00"^^xsd:dateTime)

}

Page 58: Open City, Smart City - Ann Bernaert

Examples

Recent news per location

news titel locationid

https://stad.gent/id/news/29909 "Japanse stille films met live vertelling door Benshi Kataoka Ichirō" "3738673"

https://stad.gent/id/news/29806 "Chroom-6: buurtbewoners hoeven zich geen zorgen te maken" "16"

https://stad.gent/id/news/29814 "Ottergemse Dries kan een nieuwe groenzone in gebruik nemen!" "20"

https://stad.gent/id/news/29685 "Halfvastenfoor 2016, van suikerspin tot Buffalo-badeendje" "70791"

Page 59: Open City, Smart City - Ann Bernaert
Page 60: Open City, Smart City - Ann Bernaert
Page 61: Open City, Smart City - Ann Bernaert

Next up?

Page 62: Open City, Smart City - Ann Bernaert

Next StepsIncrease know-how within the organisation

Page 63: Open City, Smart City - Ann Bernaert

Next StepsIncrease know-how within the organisation

Use Linked Data internally

Page 64: Open City, Smart City - Ann Bernaert

Next Steps

Publish “leisure data” (events, Visit Gent, Gentse Feesten, …)

Increase know-how within the organisation

Use Linked Data internally

Page 65: Open City, Smart City - Ann Bernaert

Next Steps

Publish “leisure data” (events, Visit Gent, Gentse Feesten, …)

Start a structural dialogue with other govt’s on ontologies

Increase know-how within the organisation

Use Linked Data internally

Page 66: Open City, Smart City - Ann Bernaert

Questions?