540 likes | 773 Views
Semantic mapping with MediaWiki. Jeroen De Dauw. Presentation outline. Introduction to MediaWiki Introduction to Semantic MediaWiki Questions Maps Semantic Maps Questions. MediaWiki. MediaWiki. Key features. MediaWiki. MediaWiki. MediaWiki. Key features Everyone can edit.
E N D
Semantic mapping with MediaWiki Jeroen De Dauw
Presentation outline • Introduction to MediaWiki • Introduction to Semantic MediaWiki • Questions • Maps • Semantic Maps • Questions
MediaWiki Key features
MediaWiki Key features • Everyone can edit
MediaWiki Key features • Everyone can edit • Rich content • Organization • Customization • Internationalization • Scalable
Semantic Web So what are semantics? • Make data understandbale for computers • Make queries possible • Cross site
Semantic MediaWiki • Automatically-generated lists • Visual display of information • Improved data structure • Searching information • Inter-language consistency • External reuse “Collaborative Database”
Semantic MediaWiki Semantic search Ask function {{#ask: }} {{ #ask: }}
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]]
Semantic MediaWiki Semantic search Criteria: • Which information should be displayed? ?population ?area#km²
Semantic MediaWiki Semantic search Example: {{ #ask: [[Category:City]] [[located in::Germany]] | ?population | ?area#km² = Size in km² }}
Semantic MediaWiki Semantic Properties MediaWiki link: [[Germany]] [[capital of::Germany]] MediaWiki text: 3,396,990 [[population::3,396,990]]
Semantic MediaWiki Result Formats {{ #ask: [[Category:City]] [[located in::Germany]] | ?population | format=ul }}
Semantic MediaWiki Result Formats {{ #ask: [[Category:City]] [[located in::Germany]] | ?population | ?area#km² = Size in km² | ?coordinates | format=map }}
Maps • MediaWiki extension • API for mapping functionality • Parser functions • display_point • display_points • Geocoding • geocode • display_address • display_addresses • Multi mapping/geocoding service support
Maps Mapping services
Maps Parser functions: display_point {{ #display_point: coordinates = 55.7557860, 37.6176330 | service = googlemaps | type = hybrid }}
Maps Parser functions: Parameters
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 }}
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?
Maps Parser functions: Spesific parameters Google Maps Yahoo! Maps OpenLayers
What about multiple locations? (I can has muhltiple locathiunz?)
Maps Parser functions: display_points {{#display_points: 55.7557860, 37.6176330; 42.424242, 42.424242}}
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 }}
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}}
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
Maps Geocoding: Parameters
Semantic Maps • MediaWiki extension • Hooks into • Maps • Semantic MediaWiki • Semantic Forms • Functionality • Aggregation of coordinates (Result formats) • Insertion of coordinates (Form inputs)
Semantic Maps Mapping service • Identical to the ones of Maps • Google Maps • Yahoo! Maps • OpenLayers
Semantic Maps Result formats {{ #ask: [[Category:City]] [[located in::Germany]] | ?population | ?area#km² = Size in km² | ?coordinates | format=map }}
Semantic Maps Result formats {{ #ask: [[Category:City]] [[located in::Germany]] | ?population | ?area#km² = Size in km² | ?coordinates | format=openlayers }}
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 }}
Semantic Maps Result formats: Parameters
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 }}
Semantic Maps Form Inputs • Semantic Forms hook • Allows • Coordinate insertion • Easy editing of coordinate data With a visual interface (= No wiki code!)
Semantic Maps Form Inputs: Syntaxis {{{ field |The coordinates |input type=yahoomaps }}}
Semantic Maps Form Inputs: Parameters {{{ field |The coordinates |input type=yahoomaps |width=800 |height=500 |zoom=8 |autozoom=off }}}
Semantic Maps Form Inputs : Parameters
Semantic Maps Form Inputs: Example {{{ field |The coordinates |input type=yahoomap |width=800 |height=500 |autozoom=off }}}