Download - Semantic mapping with MediaWiki

Transcript
Page 1: Semantic  mapping with MediaWiki

Semantic mapping with MediaWiki

Jeroen De Dauw

Page 2: Semantic  mapping with MediaWiki

Presentation outline

• Introduction to MediaWiki• Introduction to Semantic MediaWiki– Questions

• Maps• Semantic Maps– Questions

Page 3: Semantic  mapping with MediaWiki

MediaWiki

Page 4: Semantic  mapping with MediaWiki

MediaWiki

Key features

Page 5: Semantic  mapping with MediaWiki

MediaWiki

Page 6: Semantic  mapping with MediaWiki

MediaWiki

Page 7: Semantic  mapping with MediaWiki

MediaWiki

Key features• Everyone can edit

Page 8: Semantic  mapping with MediaWiki

MediaWiki

Page 9: Semantic  mapping with MediaWiki

MediaWiki

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

Page 10: Semantic  mapping with MediaWiki

MediaWiki

Page 11: Semantic  mapping with MediaWiki

Semantic Web

So what are semantics?

• Make data understandbale for computers• Make queries possible– Cross site

Page 12: Semantic  mapping with MediaWiki

Semantic MediaWiki

Page 13: Semantic  mapping with MediaWiki

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

Semantic MediaWiki

Semantic search

Ask function

{{#ask: }}

{{#ask: }}

Page 15: Semantic  mapping with MediaWiki

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

Semantic MediaWiki

Semantic search

Criteria:• Which information should be displayed?

?population

?area#km²

Page 17: Semantic  mapping with MediaWiki

Semantic MediaWiki

Semantic search

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

Page 18: Semantic  mapping with MediaWiki

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

Semantic MediaWiki

Result Formats

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

Page 20: Semantic  mapping with MediaWiki

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
Page 22: Semantic  mapping with MediaWiki

Maps

• MediaWiki extension• API for mapping functionality• Parser functions

– display_point– display_points

• Geocoding– geocode– display_address– display_addresses

• Multi mapping/geocoding service support

Page 23: Semantic  mapping with MediaWiki

Maps

Mapping services

Page 24: Semantic  mapping with MediaWiki

Parser functions: display_point

{{#display_point:coordinates = 55.7557860, 37.6176330| service = googlemaps| type = hybrid}}

Maps

Page 25: Semantic  mapping with MediaWiki

Maps

Parser functions: Parameters

Page 26: Semantic  mapping with MediaWiki

Maps

Parser functions: Parameters

{{#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 27: Semantic  mapping with MediaWiki
Page 28: Semantic  mapping with MediaWiki

Maps

Parser functions: Parameters

{{#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 29: Semantic  mapping with MediaWiki

Maps

Parser functions: Spesific parametersGoogle Maps

Yahoo! Maps

OpenLayers

Page 30: Semantic  mapping with MediaWiki

What about multiple locations?(I can has muhltiple locathiunz?)

Page 31: Semantic  mapping with MediaWiki

Maps

Parser functions: display_points

{{#display_points: 55.7557860, 37.6176330; 42.424242, 42.424242}}

Page 32: Semantic  mapping with MediaWiki

Maps

Parser functions: Location info

{{#display_points:coordinates =42.424242, 42.424242~The answer!;55.7557860, 37.6176330~Moscow~The capital of Russia~green.png}}

Page 33: Semantic  mapping with MediaWiki
Page 34: Semantic  mapping with MediaWiki

Maps

Geocoding

{{#geocode:Moscow}} 55.7522222, 37.6155556

{{ #display_point: {{#geocode:Moscow}} }} = {{#display_address: Moscow}}

{{ #display_points: {{#geocode:Moscow}}, {{#geocode:New York}} }} = {{#display_addresses: Moscow, New York}}

Page 35: Semantic  mapping with MediaWiki

Maps

Geocoding: Services

{{#display_address: Moscow}} Uses the default

{{#display_address: Moscow |geoservice=yahoo }} Uses the Yahoo! Service

{{#geocode:Moscow, Russia|geonames}} Uses the GeoNames Service

Page 36: Semantic  mapping with MediaWiki

Maps

Geocoding: Parameters

Page 37: Semantic  mapping with MediaWiki

Semantic Maps

• MediaWiki extension• Hooks into

– Maps– Semantic MediaWiki– Semantic Forms

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

Page 38: Semantic  mapping with MediaWiki

Semantic Maps

Mapping service

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

Page 39: Semantic  mapping with MediaWiki

Semantic Maps

Result formats

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

Page 40: Semantic  mapping with MediaWiki

Semantic Maps

Result formats

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

}}

Page 41: Semantic  mapping with MediaWiki

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 42: Semantic  mapping with MediaWiki

Semantic Maps

Result formats: Parameters

Page 43: Semantic  mapping with MediaWiki

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 44: Semantic  mapping with MediaWiki
Page 45: Semantic  mapping with MediaWiki

Semantic Maps

Form Inputs

• Semantic Forms hook• Allows

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

Page 46: Semantic  mapping with MediaWiki

Semantic Maps

Form Inputs: Syntaxis

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

Page 47: Semantic  mapping with MediaWiki

Semantic Maps

Form Inputs: Parameters

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

Page 48: Semantic  mapping with MediaWiki

Semantic Maps

Form Inputs : Parameters

Page 49: Semantic  mapping with MediaWiki

Semantic Maps

Form Inputs: Example

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

Page 50: Semantic  mapping with MediaWiki
Page 51: Semantic  mapping with MediaWiki
Page 52: Semantic  mapping with MediaWiki

Thanks to• Google, for the funding of both extensions• Yaron Koren, for mentoring me during the dev• Wikimedia Foundation, for all the support

Page 53: Semantic  mapping with MediaWiki

References• MediaWiki: mediawiki.org• Semantic MediaWiki: semantic-mediawiki.org• Maps: mediawiki.org/wiki/Extension:Maps• Semantic Maps: mediawiki.org/wiki/Semantic_Maps

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

Page 54: Semantic  mapping with MediaWiki