Semantic MediaWiki
Bernhard Krabina, KM-A
Introduction
Managing partner at Knowledge
Mangement Associates
~ 20 years of experience in the
public sector (KDZ – Centre for
Public Administration Research)
Active member of the Semantic
MediaWiki community ~ 15 years
Knowledge Graph researcher at WU
Vienna
Knowledge Management
consulting, Wiki consulting and
implementation
• www.geschichtewiki.wien.gv.at
• www.wissensmanagement.gv.at
• www.verwaltungspreis.gv.at
• www.ogdcockpit.eu
• fina.oeaw.ac.at/wiki
• and many more…
2
2
1
2
3
Agenda
Use case: CAF-Network.eu
What is Semantic MediaWiki
How re-use EU vocabularies?
CAF – Common Assessment Framework
 CAF improves public sector
organisations through self-assessment
and contributes to Good Governance.
 Quality management tools based on
TQM and EFQM® models.
 Promoted by European Public
Administration Network (EUPAN)
1. Self-assessment
2. Improvement plan
3. Effective CAF-User
CAF Knowledge
 Knowledge about CAF in general including the latest (5th) revision 2020.
 Detailed knowledge about 9 criteria and 28 subcriteria
 Knowledge about the CAF process and implementation
But also
 Who uses CAF?
 Who can I contact?
 What tools do support the process?
 Where can I find the best information?
CAF-Network.eu
CAF-Network.eu as website
CAF-Network.eu as Wiki
Wiki
gardener
1
2
3
Agenda
Use case: CAF-Network.eu
What is Semantic MediaWiki
How re-use EU vocabularies?
What is Semantic MediaWiki (SMW)?
• open source project:
– www.semantic-mediawiki.org
– https://github.com/SemanticMediaWiki
• the „swiss army knife“ for data and semantics
• built on the MediaWiki ecosystem:
the wiki engine that powers Wikipedia
can be used for much more than just wikis…
10
MediaWiki + SMW + more extensions
• collaborative editing
• version history of every edit
• no backend:
everything is a wiki page
• structure via categories and
namespaces
• API
• …
• structured data
(Web database)
• result lists and formats
via {{#ask:}} queries
• Semantic Web standards
• triplestore support
• API
• …
• online forms for data entry
• more visualizations
• responsive skin
• authentication
• image annotation
• SPARQL
• …
11
Semantic MediaWiki storage options
SQL Store (default)
• extra tables in the
SQL store of
MediaWiki
ElasticStore
• search engine, not a
storage backend
SPARQL/RDF Store
• custom, default
• Virtuoso
• Blazegraph
• Fuseki
• Sesame
• 4store 12
easy (to install) harder to install but more powerful
Internal query language
13
{{#ask:
[[Category:Practices]]
[[Country::Austria]]
|?Organisation
|?Coordinates
|format=table
}}
Internal query language
{{#ask:
[[Category:Practices]]
[[Country::Austria]]
|?Organisation
|?Coordinates
|format=map
}}
14
> 70 result formats, supporting
MediaWiki templates
|format=moderntimeline
|format=calendar
|format=median
|format=D3chart
|format=gantt
|format=tagcloud
|format=json
|format=rdf
|format=bibtex
…
15
Where to start?
 https://www.semantic-mediawiki.org
 https://www.semantic-mediawiki.org/wiki/Help:Using_Docker
Projects you should look into
 https://www.open-csp.org
 https://www.mediawiki.org/wiki/Project_Canasta
1
2
3
Agenda
Use case: CAF-Network.eu
What is Semantic MediaWiki
How re-use EU vocabularies?
5 Star-Schema of Linked (Open) Data
Linking to external identifiers
 Define a property
 Assign datatype „External identifier“
– Links to external ids
 Look for other identifiers
– ORCID https://orcid.org/
– GND
– …..
[[Has type::External identifier]]
[[External formatter uri::
http://www.wikidata.org/entity/$1]]
Using External Vocabularies
1. Add a page MediaWiki:Smw import foaf
2. Instead of local datatype declarations, use
[[Imported from::foaf:familyName]]
on the property page (e. g. Property:Last name)
Ad more vocabulary terms any
time…
Unique IDs in MediaWiki
 Every page has a unique page ID
 You can display it and use it to link to a
page without using the page name (that
could change over time)
 https://www.caf-network.eu/?curid=185
Core Public Service Vocabulary
CAF-Network.eu
 Address
 Country
 City
 Organisation
 Person
 Level of government
 Organisation size
 Organisation type
 Website
 Year
 ZIP
https://www.semantic-mediawiki.org/wiki/Help:Import_vocabulary
Changing data types in SMW
https://www.caf-network.eu/MediaWiki:Smw_import_dcterms
Matching vocabularies
CAF-Network.eu Vocabulary (examples) External Vocabulary
Address cv:hasAddress
City dct:location?
Coordinates
Country dct:location
Description dc:description -> dct:description
Effective CAF user (yes/no)
Government level
Organisation hasCompetentAuthority
Organisation function cv:sector or cv:thematicArea ?
Organisation size
Organisation type dct:type
Person cv:hasContactPoint
Website
Year
ZIP
Questions – Ideas – Comments?
KMA Knowledge Management Associates | Gersthofer Straße 162 | A-1180 Wien | office@km-a.net | www.km-a.net 26
 Knowledge Management
 Wiki consulting, Semantic MediaWiki
 Open Government, Open Data
Bernhard Krabina
+43 676 5103593
Bernhard.krabina@km-a.net
linkedin.com/in/krabina
@krabina

Semantic MediaWiki for Community Driven Data Spaces

  • 1.
  • 2.
    Introduction Managing partner atKnowledge Mangement Associates ~ 20 years of experience in the public sector (KDZ – Centre for Public Administration Research) Active member of the Semantic MediaWiki community ~ 15 years Knowledge Graph researcher at WU Vienna Knowledge Management consulting, Wiki consulting and implementation • www.geschichtewiki.wien.gv.at • www.wissensmanagement.gv.at • www.verwaltungspreis.gv.at • www.ogdcockpit.eu • fina.oeaw.ac.at/wiki • and many more… 2 2
  • 3.
    1 2 3 Agenda Use case: CAF-Network.eu Whatis Semantic MediaWiki How re-use EU vocabularies?
  • 4.
    CAF – CommonAssessment Framework  CAF improves public sector organisations through self-assessment and contributes to Good Governance.  Quality management tools based on TQM and EFQM® models.  Promoted by European Public Administration Network (EUPAN) 1. Self-assessment 2. Improvement plan 3. Effective CAF-User
  • 5.
    CAF Knowledge  Knowledgeabout CAF in general including the latest (5th) revision 2020.  Detailed knowledge about 9 criteria and 28 subcriteria  Knowledge about the CAF process and implementation But also  Who uses CAF?  Who can I contact?  What tools do support the process?  Where can I find the best information?
  • 6.
  • 9.
    1 2 3 Agenda Use case: CAF-Network.eu Whatis Semantic MediaWiki How re-use EU vocabularies?
  • 10.
    What is SemanticMediaWiki (SMW)? • open source project: – www.semantic-mediawiki.org – https://github.com/SemanticMediaWiki • the „swiss army knife“ for data and semantics • built on the MediaWiki ecosystem: the wiki engine that powers Wikipedia can be used for much more than just wikis… 10
  • 11.
    MediaWiki + SMW+ more extensions • collaborative editing • version history of every edit • no backend: everything is a wiki page • structure via categories and namespaces • API • … • structured data (Web database) • result lists and formats via {{#ask:}} queries • Semantic Web standards • triplestore support • API • … • online forms for data entry • more visualizations • responsive skin • authentication • image annotation • SPARQL • … 11
  • 12.
    Semantic MediaWiki storageoptions SQL Store (default) • extra tables in the SQL store of MediaWiki ElasticStore • search engine, not a storage backend SPARQL/RDF Store • custom, default • Virtuoso • Blazegraph • Fuseki • Sesame • 4store 12 easy (to install) harder to install but more powerful
  • 13.
  • 14.
  • 15.
    > 70 resultformats, supporting MediaWiki templates |format=moderntimeline |format=calendar |format=median |format=D3chart |format=gantt |format=tagcloud |format=json |format=rdf |format=bibtex … 15
  • 16.
    Where to start? https://www.semantic-mediawiki.org  https://www.semantic-mediawiki.org/wiki/Help:Using_Docker Projects you should look into  https://www.open-csp.org  https://www.mediawiki.org/wiki/Project_Canasta
  • 17.
    1 2 3 Agenda Use case: CAF-Network.eu Whatis Semantic MediaWiki How re-use EU vocabularies?
  • 18.
    5 Star-Schema ofLinked (Open) Data
  • 19.
    Linking to externalidentifiers  Define a property  Assign datatype „External identifier“ – Links to external ids  Look for other identifiers – ORCID https://orcid.org/ – GND – ….. [[Has type::External identifier]] [[External formatter uri:: http://www.wikidata.org/entity/$1]]
  • 20.
    Using External Vocabularies 1.Add a page MediaWiki:Smw import foaf 2. Instead of local datatype declarations, use [[Imported from::foaf:familyName]] on the property page (e. g. Property:Last name) Ad more vocabulary terms any time…
  • 21.
    Unique IDs inMediaWiki  Every page has a unique page ID  You can display it and use it to link to a page without using the page name (that could change over time)  https://www.caf-network.eu/?curid=185
  • 22.
    Core Public ServiceVocabulary CAF-Network.eu  Address  Country  City  Organisation  Person  Level of government  Organisation size  Organisation type  Website  Year  ZIP https://www.semantic-mediawiki.org/wiki/Help:Import_vocabulary
  • 23.
    Changing data typesin SMW https://www.caf-network.eu/MediaWiki:Smw_import_dcterms
  • 24.
    Matching vocabularies CAF-Network.eu Vocabulary(examples) External Vocabulary Address cv:hasAddress City dct:location? Coordinates Country dct:location Description dc:description -> dct:description Effective CAF user (yes/no) Government level Organisation hasCompetentAuthority Organisation function cv:sector or cv:thematicArea ? Organisation size Organisation type dct:type Person cv:hasContactPoint Website Year ZIP
  • 25.
    Questions – Ideas– Comments?
  • 26.
    KMA Knowledge ManagementAssociates | Gersthofer Straße 162 | A-1180 Wien | office@km-a.net | www.km-a.net 26  Knowledge Management  Wiki consulting, Semantic MediaWiki  Open Government, Open Data Bernhard Krabina +43 676 5103593 Bernhard.krabina@km-a.net linkedin.com/in/krabina @krabina