Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki...

76
Semantic Mapping with MediaWiki Jeroen De Dauw

Transcript of Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki...

Page 1: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic Mapping with MediaWiki

Jeroen De Dauw

Page 2: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Presentation outline

• Introduction to MediaWiki• Introduction to Semantic MediaWiki

– Questions• Maps• Semantic Maps

– Questions

Page 3: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

MediaWiki

Page 4: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

MediaWiki

Page 5: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

MediaWiki

Key features

Page 6: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

MediaWiki

Page 7: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

MediaWiki

Page 8: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

MediaWiki

Key features• Everyone can edit

Page 9: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

MediaWiki

Page 10: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

MediaWiki

Key features• Everyone can edit• Rich content• Organization• Customization• Internationalization• Scalable

Page 11: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic Web

So what are semantics?

• Make data understandable for computers• Make queries possible

– Cross site

Page 12: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic MediaWiki

Page 13: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic MediaWiki

• Automatically-generated lists• Visual display of information• Improved data structure• Searching information• Inter-language consistency• External reuse

“Collaborative Database”

Page 14: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic MediaWiki

Semantic search

Ask function

{{#ask: }}

{{#ask: }}

Page 15: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic MediaWiki

Semantic search

Criteria:• Which pages to select

[[Category:Actor]] [[born in::Boston]] [[height::180cm]][[Category:Actor]] [[height::>6 ft]] [[height::<7 ft]] [[born in::Boston]] OR [[born in::New York]] [[Category:Cities]] [[located in.member of::European Union]]

Page 16: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic MediaWiki

Semantic search

Criteria:• Which information should be displayed?

?population

?area#km²

Page 17: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic MediaWiki

Semantic search

Example:{{#ask: [[Category:City]] [[located in::Germany]] | ?population | ?area#km² = Size in km² }}

Page 18: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic MediaWiki

Semantic Properties

MediaWiki link: [[Germany]] [[capital of::Germany]] MediaWiki text: 3,396,990 [[population::3,396,990]]

Page 19: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic MediaWiki

Result Formats

{{#ask: [[Category:City]] [[located in::Germany]] | ?population | format=ul}}

Page 20: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic MediaWiki

Result Formats

{{#ask: [[Category:City]] [[located in::Germany]] | ?population | ?area#km² = Size in km² | ?coordinates| format=map}}

Page 21: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.
Page 22: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

• MediaWiki extension• Hooks into

– Validator

• Functionality– Visual display of coordinate data– Geocoding

Page 23: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

• Key features– Multiple mapping services– Multiple geocoding services– Modular build– Error feedback– Very configurable– API for mapping functionality

Page 24: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Coordinates

• Floats: 55.7557860, 37.6176330• DMS: 55°45 06″N 37°37 04″E′ ′• DD: 55.7557860°, 37.6176330°• DM: 55°45.34716', 37°37.05798'

Page 25: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Geocoding

{{ #geocode:Moscow, Russia}} 55.7557860, 37.6176330

Page 26: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Geocoding services

• Google• Yahoo• GeoNames

{{#geocode:Moscow, Russia|geonames}}

Page 27: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Smart geocoding

• Display_map• Display_point(s)

– Centre parameter

! Display_address(es) has been deprecated since 0.4

Page 28: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Displaying a map

{{#display_map: Moscow}}Or{{#display_map: 55°45 06″N 37°37 04″E}}′ ′Or...

Page 29: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.
Page 30: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Displaying points

{{#display_point: Moscow}}Or{{#display_point: 55.7557860, 37.6176330}}Or...

Page 31: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.
Page 32: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Displaying points

{{#display_points:55°45 06″N 37°37 04″E′ ′ ;New York;40.446195, -79.948862}}

Page 33: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.
Page 34: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Displaying points: point specific data

Address~Title~Label~Icon

Page 35: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Displaying points: point specific data

{{#display_points:Brussels;New York~New York city;Moscow, Russia~Moscow~A city in Russia;London~[[London]]~Capital of England~Green marker.png;Mali~Mali~~Blue marker.png}}

Page 36: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.
Page 37: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Mapping services

Page 38: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

So how do I customize a map?

Page 39: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Map properties

{{#display_map:New York City| property = value| property 2 = value 2}}

Page 40: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Map properties

Page 41: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Map properties: default property

{{#display_map: New York City}}

{{#display_map: address = New York City}}

{{#display_map: coordinates = New York City}}

{{#display_map: coordinates = 55.7557860, 37.6176330}}

Page 42: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Map properties: service

{{ #display_point: Moscow, Russia}}

{{ #display_point:Moscow, Russia| service=googlemaps}}

Page 43: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Map properties: geoservice

{{ #display_point:Moscow, Russia| geoservice=geonames}}

Page 44: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Map properties: width and height

{{ #display_point:Moscow, Russia| width = 800| height = 420}}

Page 45: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Map properties: zoom and centre

{{ #display_point:Moscow, Russia| zoom = 10| centre = Brussels}}

Page 46: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Map properties: zoom and centre

{{ #display_point:Moscow, Russia;Brussels;Rome;Berlin}}

Page 47: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Map properties: zoom and centre

{{ #display_point:Moscow, Russia;Brussels;Rome;Berlin| zoom = 2}}

Page 48: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Map properties: title, label and icon

{{ #display_point:Moscow;Brussels;Rome| icon = Green marker.png| title = A capital in Europe}}

Page 49: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Map properties

{{#display_point: zoom=10 |width=1200 |height=1000| 55.7557860, 37.6176330| service = google| type = physical| types = terrain, hybrid, earth| controls = large, overview-map, scale, type}}

Page 50: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Map properties

{{#display_point: zoom=10 |width=1200 |height=1000| 55.7557860, 37.6176330| service = google| type = physical| types = terrain, hybrid, earth| controls = large, overview-map, scale, type}}

Not in the list?

Page 51: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Service specific parametersGoogle Maps

Yahoo! Maps

Page 52: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Maps

Service specific parameters

OpenLayers

OpenStreetMap

Page 53: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic Maps

• MediaWiki extension• Hooks into

– Maps– Semantic MediaWiki– Semantic Forms

• Functionality– Aggregation of coordinates (Result formats)– Insertion of coordinates (Form inputs)

Page 54: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic Maps

Mapping services

• Identical to the ones of Maps– Google Maps– Yahoo! Maps– OpenLayers– OpenStreetMap

Page 55: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic Maps

Result formats

{{#ask: [[Category:City]] [[located in::Germany]] | ?population | ?area#km² = Size in km² | ?coordinates| format=map}}

Page 56: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic Maps

Result formats

{{#ask: [[Category:City]] [[located in::Germany]] | ?population | ?area#km² = Size in km² | ?coordinates| format=openlayers

}}

Page 57: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic Maps

Result formats: Parameters

{{#ask: [[Category:City]] [[located in::Germany]] | ?population | ?area#km² = Size in km² | ?coordinates| format=openlayers| width = 500 | height = 300| zoom = 10}}

Page 58: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic Maps

Result formats: Parameters

Page 59: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic Maps

Result formats: Example

{{ #ask: [[Category:City]] [[located in::Germany]]| ?population| ?area#km² = Size in km² | ?coordinates | format=openlayers | width=800 | height=500 | zoom=4| center={{#geocode:Moscow, Russia}} | layers=google-physical,yahoo,google,bing,openlayers,nasa}}

Page 60: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.
Page 61: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic Maps

Result formats: Using SCQ

• Semantic Compound Queries

{{#compound_query: [[Category:People]];?Has coordinates| [[Category:Organizations]];?Has coordinates;icon=Green marker.png| [[Category:Events]];?Has coordinates;icon=Blue marker.png| format=map}}

Page 62: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.
Page 63: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic Maps

Result formats: Using Semantic Drilldown

Page 64: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.
Page 65: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.
Page 66: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic Maps

Form Inputs

• Semantic Forms hook• Allows

– Coordinate insertion– Easy editing of coordinate dataWith a visual interface (= No wiki code!)

Page 67: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic Maps

Form Inputs: Syntax

{{{ field|The coordinates |input type=yahoomaps }}}

Page 68: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic Maps

Form Inputs: Parameters

{{{ field |The coordinates |input type=yahoomaps |width=800 |height=500 |zoom=8 |autozoom=off }}}

Page 69: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic Maps

Form Inputs : Parameters

Page 70: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Semantic Maps

Form Inputs: Example

{{{ field |The coordinates |input type=yahoomap |width=800 |height=500 |autozoom=off }}}

Page 71: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.
Page 72: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.
Page 73: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Future Plans

Awesome stuff that’s not there yet!

• Images as layers• Google Maps v3 support

• KML• Display_route• Bing Maps, Google Streetview• ...

Page 74: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

Thanks to

• Google, for the funding of both extensions• Yaron Koren, for mentoring me during the dev• Wikimedia Foundation, for all the support• Stichting Liedts-Meesen, for hosting this talk

Page 75: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.

References

• www.mediawiki.org• www.semantic-mediawiki.org• wiki.bn2vs.com• www.wikiworks.com

Jeroen De Dauw• [email protected]• blog.bn2vs.com

Page 76: Semantic Mapping with MediaWiki Jeroen De Dauw. Presentation outline Introduction to MediaWiki Introduction to Semantic MediaWiki – Questions Maps Semantic.