www.kdz.or.at
Semantic MediaWiki as
Knowledge Graph interface
May 5, 2021
Bernhard Krabina
1
Introduction: Bernhard Krabina
 researcher, consulter, trainer at KDZ – Centre for
Public Administration Research
 www.kdz.eu
 active member of the Semantic MediaWiki
community
 www.semantic-mediawiki.org
 PhD candidate at Vienna University of Economics
and Business, Institute for Data, Process and
Knowledge Management
 www.wu.ac.at/en/dpkm
2
2
1
2
3
Agenda
What is SMW?
What makes it a Knowledge
Graph tool?
How to use it as KG interface?
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… 4
Knowledge Graphs and Wikipedia vs. custom KG
 extract structured information from Wikipedia and
make this information available on the Web
5
 free knowledge base that can be read and edited by
humans and machines alike… central storage for the
data that may be accessed by the client Wikipedias
 turns MediaWiki into a powerful and flexible
knowledge management system
 lets you store and query data within the wiki's pages
 a set of extensions for MediaWiki
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
 …
 online forms for data
entry
 more visualizations
 responsive skin
 authentication
 image annotation
 SPARQL
6
1
2
3
Agenda
What is SMW?
What makes it a Knowledge
Graph tool?
How to use it as KG interface?
Semantic MediaWiki as Knowledge Graph tool
KG Definition (Sack/Alam 2020) Semantic MediaWiki
concepts Concept:
classes Category: rdf:type
properties Property: with datatypes
relationships annotations via wikitext or templates
entity descriptions wiki pages
RDF(S)/OWL / (OWL 2 DL)
open/private/closed //
original/derived/agregated //
instance data wiki pages or subobjects (instances without wiki
pages)
schema data Help:Schema
metadata via special semantic properties
Taxonomies subcategories rdfs:subClassOf
links and mappings to external data datatype „External identifier“, vocabulary import 8
Building your Knowledge Graph
 page Vienna can have properties
 number of inhabitants, located in,
coordinates, WikidataID, …
 properties can have various data types
 page, text, number, date, URL, …
 external identifier links to external resources
 re-use external vocabularies
 “Lastname” imported from foaf:familyName
 a page should be put into a category
9
optional
 setup templates
 setup forms
 do internal
querying
 use built in search
interfaces
FINA Wiki:
https://fina.oeaw.ac.at/wiki
10
10
Map
(birth,
death place)
Literature
Work
References
Visualisation of
correspondence
Structured data
Iconography
Export (CSV, RDF)
Internal query language
11
{{#ask:
[[Category:Topographic Object]]
[[Named after::Sigmund Freud]]
|mainlabel=Objekt
|?District
|?Coordinates
|format=table
}}
Internal query language
{{#ask:
[[Category:Topographic Object]]
[[Named after::Sigmund Freud]]
|mainlabel=Objekt
|?District
|?Coordinates
|format=map
}}
12
> 70 result formats, supporting MediaWiki templates
|format=moderntimeline
|format=calendar
|format=median
|format=D3chart
|format=gantt
|format=tagcloud
|format=json
|format=rdf
|format=bibtex
…
13
1
2
3
Agenda
What is SMW?
What makes it a Knowledge
Graph tool?
How to use it as KG interface?
Semantic MediaWiki storage options
 SQL Store (default)
 extra tables in
the SQL store of
MediaWiki
 ElasticStore
 search engine, not
a storage backend
 data storage and
management
remains part of the
SQLStore
 SPARQL/RDF Store
 custom, default
 Virtuoso
 Blazegraph
 Fuseki
 Sesame
 4store
15
easy (to install) harder to install but more powerful
SPARQL
 Internal querying
{{#ask: …}}
RDF dump can be imported in
triplestores, or direct connection:
 Other approaches via extensions
 LinkedWiki: SPARQL queries of
internal/external data in the wiki
 SPARQLResultFormat: query
external data
 RDFIO: PHP-based SPARQL
endpoint
16
Maintaining your Knowledge Graph
Data/ontology curation: “semantic gardening”
 user rights
 admins, curators, users
 property annotation health
 Outdated properties/entities
 Similar properties
 Property uniqueness
 Improper annotations and failed queries
 Missing redirect annotations
https://www.semantic-
mediawiki.org/wiki/Semantic_gardening
17
Inferencing
 subcategories
 subproperties
 equality of pages:
redirects
 subqueries
https://www.semantic-
mediawiki.org/wiki/Help:Inferencing
Semantic MediaWiki or Wikibase?
https://www.mediawiki.org/wiki/Manual:Managing_data_in_MediaWiki
Semantic MediaWiki Wikibase
flexible data model data model of Wikidata
properties can be pre-defined or declared by
annotating
properties need to be pre-defined
requires extensions for form-based input comes with a fixed, built-in edit interface
SPARQL only with external triplestore
internal query language (easier than SPARQL) no built-in querying of data
enterprise-ready (stability, commercial support)
18
@KGConference
linkedin.com/company/the-knowldge-graph-conference/
youtube.com/playlist?list=PLAiy7NYe9U2Gjg-600CTV1HGypiF95d_D
#KGC2021
#SemanticMW
Join the Conversation
@krabina
linkedin.com/in/krabina

More Related Content

PPT
Data-driven Applications with conStruct
ODP
Short introduction to Conzilla
PDF
Linking Knowledge Organization Systems via Wikidata (DCMI conference 2018)
PPSX
Types of Databases
PDF
Notes about SWAT4LS 2018
PPT
Metadata for Brittle Books Page Turner
PPTX
HDL - Towards A Harmonized Dataset Model for Open Data Portals
PPTX
Day 1
Data-driven Applications with conStruct
Short introduction to Conzilla
Linking Knowledge Organization Systems via Wikidata (DCMI conference 2018)
Types of Databases
Notes about SWAT4LS 2018
Metadata for Brittle Books Page Turner
HDL - Towards A Harmonized Dataset Model for Open Data Portals
Day 1

What's hot (18)

PPT
Metadata: A concept
PPTX
COAR Venice 2017 Next Generation Repository Session: What can be done, right ...
PPTX
Bing Zheng SQL Portfolio
PDF
How to enhance your DSpace repository: use cases for DSpace-CRIS, DSpace-RDM,...
PPTX
Enhancing Interoperability: The Implementation of OpenAIRE Guidelines and COA...
PPTX
DSpace-CRIS 7: What is Coming? OR2020
PPTX
Database and types of databases
PDF
Linked Open Data & XIMDEX CMS (OKIOconf 2014)
PPTX
Do You Have Big Data? (Most Likely!)
PPTX
Self-Service Linked Government Data with dcat and Gridworks
PPTX
Mest
PDF
Querying the Wikidata Knowledge Graph
KEY
Linking Open, Big Data Using Semantic Web Technologies - An Introduction
PPT
Applying Digital Library Metadata Standards
PPTX
DSpace for Cultural Heritage: adding support for images visualization,audio/v...
PDF
Discovering Related Data Sources in Data Portals
PPTX
Leverage DSpace for an enterprise, mission critical platform
Metadata: A concept
COAR Venice 2017 Next Generation Repository Session: What can be done, right ...
Bing Zheng SQL Portfolio
How to enhance your DSpace repository: use cases for DSpace-CRIS, DSpace-RDM,...
Enhancing Interoperability: The Implementation of OpenAIRE Guidelines and COA...
DSpace-CRIS 7: What is Coming? OR2020
Database and types of databases
Linked Open Data & XIMDEX CMS (OKIOconf 2014)
Do You Have Big Data? (Most Likely!)
Self-Service Linked Government Data with dcat and Gridworks
Mest
Querying the Wikidata Knowledge Graph
Linking Open, Big Data Using Semantic Web Technologies - An Introduction
Applying Digital Library Metadata Standards
DSpace for Cultural Heritage: adding support for images visualization,audio/v...
Discovering Related Data Sources in Data Portals
Leverage DSpace for an enterprise, mission critical platform
Ad

Similar to Semantic MediaWiki as Knowledge Graph Interface (20)

PPTX
Knowledge.Wiki Semantics Conference 2022
PPTX
Semantic MediaWiki - a Linked Open Data Platform
PDF
SMW Introduction Wikimedia Hackathon Krabina 2024.pdf
PDF
MWCon KnowledgeGraph Extension Krabina 2024.pdf
PPT
A Short Tutorial to Semantic Media Wiki (SMW)
PPTX
Tutorial semantic wikis and applications
PPTX
Semantic MediaWiki for Community Driven Data Spaces
PPT
Sensor metadata management with SWM (SMWCon fall 2013)
PDF
The Unbearable Lightness of Wiking
PPTX
Semantic MediaWiki - Knowledge Management and Open Data Use Cases
PPTX
SMWCon Spring 2012 SMW+ Team Dev Update
PPTX
Semantic Wikis - Social Semantic Web in Action
PDF
Applying And Extending Semantic Wikis For Semantic Web Courses
PPTX
Pre-SMWCon Spring 2012 meetup (short)
PPTX
Smwcon spring2011 tutorial applied semantic mediawiki
PPTX
Semantic MediaWiki Survey 2021
PPTX
Wikidata and Semantic MediaWiki
PPTX
SMW between OpenData, OpenGLAM, Linked Data and the Semantic Web, Bernhard Kr...
PPT
KnowIT, semantic informatics knowledge base
PDF
Semantic Media Wiki & Semantic Forms
Knowledge.Wiki Semantics Conference 2022
Semantic MediaWiki - a Linked Open Data Platform
SMW Introduction Wikimedia Hackathon Krabina 2024.pdf
MWCon KnowledgeGraph Extension Krabina 2024.pdf
A Short Tutorial to Semantic Media Wiki (SMW)
Tutorial semantic wikis and applications
Semantic MediaWiki for Community Driven Data Spaces
Sensor metadata management with SWM (SMWCon fall 2013)
The Unbearable Lightness of Wiking
Semantic MediaWiki - Knowledge Management and Open Data Use Cases
SMWCon Spring 2012 SMW+ Team Dev Update
Semantic Wikis - Social Semantic Web in Action
Applying And Extending Semantic Wikis For Semantic Web Courses
Pre-SMWCon Spring 2012 meetup (short)
Smwcon spring2011 tutorial applied semantic mediawiki
Semantic MediaWiki Survey 2021
Wikidata and Semantic MediaWiki
SMW between OpenData, OpenGLAM, Linked Data and the Semantic Web, Bernhard Kr...
KnowIT, semantic informatics knowledge base
Semantic Media Wiki & Semantic Forms
Ad

More from Bernhard Krabina (20)

PDF
Update from the Semantic MediaWiki community - MediaWiki Users and Developers...
PDF
OGD Cockpit am 4. OpenData Barcamp Erfurt 2025
PDF
Factors influencing the use of wikis in organizations - MediaWiki Users & Dev...
PDF
10 years of Vienna History Wiki, MediaWiki Users & Developers Conference
PDF
Informationsfreiheit: Wird das Ende der Amtsverschwiegenheit ein Treiber für ...
PDF
MediaWiki Users and Developers Conference MWCon Fall 2024 Announcement
PDF
SMW Linked Open Data Barcamp Krabina 2023.pdf
PDF
OGD Cockpit Barcamp Bochum Krabina 2022.pdf
PPTX
Linked open data with Semantic MediaWiki - ENDORSE 2021
PDF
Mehr offene Daten in Kommunen - Smart Country 2021
PPTX
Linked Open Data with Semantic MediaWiki
PPTX
Knowledge Management in Austrian Government institutions
PPTX
FINA Wiki – SMW supporting numismatic research
PPTX
Rethinking public sector data ecosystems - Open Government Data, Semantic Med...
PPTX
Open Spending Austria EU 2018 - Impacts on Performance Management
PPTX
Data cockpit: Semantic MediaWiki as GDPR compliance tool SMWCon 2018
PPTX
Aktives Datenschutzmanagement mit Datencockpit.at
PPTX
Smart Government - Schritte zur Umsetzung einer offene Verwaltungskultur
PPTX
Datenmonitoring am Beispiel OGD
PPTX
Data Manaement with Semantic MediaWiki - fulfilling GPDR requirements
Update from the Semantic MediaWiki community - MediaWiki Users and Developers...
OGD Cockpit am 4. OpenData Barcamp Erfurt 2025
Factors influencing the use of wikis in organizations - MediaWiki Users & Dev...
10 years of Vienna History Wiki, MediaWiki Users & Developers Conference
Informationsfreiheit: Wird das Ende der Amtsverschwiegenheit ein Treiber für ...
MediaWiki Users and Developers Conference MWCon Fall 2024 Announcement
SMW Linked Open Data Barcamp Krabina 2023.pdf
OGD Cockpit Barcamp Bochum Krabina 2022.pdf
Linked open data with Semantic MediaWiki - ENDORSE 2021
Mehr offene Daten in Kommunen - Smart Country 2021
Linked Open Data with Semantic MediaWiki
Knowledge Management in Austrian Government institutions
FINA Wiki – SMW supporting numismatic research
Rethinking public sector data ecosystems - Open Government Data, Semantic Med...
Open Spending Austria EU 2018 - Impacts on Performance Management
Data cockpit: Semantic MediaWiki as GDPR compliance tool SMWCon 2018
Aktives Datenschutzmanagement mit Datencockpit.at
Smart Government - Schritte zur Umsetzung einer offene Verwaltungskultur
Datenmonitoring am Beispiel OGD
Data Manaement with Semantic MediaWiki - fulfilling GPDR requirements

Recently uploaded (20)

PDF
WOOl fibre morphology and structure.pdf for textiles
PPTX
Tartificialntelligence_presentation.pptx
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PPTX
Web Crawler for Trend Tracking Gen Z Insights.pptx
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
STKI Israel Market Study 2025 version august
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
Five Habits of High-Impact Board Members
PDF
Architecture types and enterprise applications.pdf
PDF
August Patch Tuesday
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
Getting Started with Data Integration: FME Form 101
PPTX
The various Industrial Revolutions .pptx
WOOl fibre morphology and structure.pdf for textiles
Tartificialntelligence_presentation.pptx
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Hindi spoken digit analysis for native and non-native speakers
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Web Crawler for Trend Tracking Gen Z Insights.pptx
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
Getting started with AI Agents and Multi-Agent Systems
STKI Israel Market Study 2025 version august
Developing a website for English-speaking practice to English as a foreign la...
Taming the Chaos: How to Turn Unstructured Data into Decisions
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
O2C Customer Invoices to Receipt V15A.pptx
Five Habits of High-Impact Board Members
Architecture types and enterprise applications.pdf
August Patch Tuesday
A contest of sentiment analysis: k-nearest neighbor versus neural network
DP Operators-handbook-extract for the Mautical Institute
Getting Started with Data Integration: FME Form 101
The various Industrial Revolutions .pptx

Semantic MediaWiki as Knowledge Graph Interface

  • 1. www.kdz.or.at Semantic MediaWiki as Knowledge Graph interface May 5, 2021 Bernhard Krabina 1
  • 2. Introduction: Bernhard Krabina  researcher, consulter, trainer at KDZ – Centre for Public Administration Research  www.kdz.eu  active member of the Semantic MediaWiki community  www.semantic-mediawiki.org  PhD candidate at Vienna University of Economics and Business, Institute for Data, Process and Knowledge Management  www.wu.ac.at/en/dpkm 2 2
  • 3. 1 2 3 Agenda What is SMW? What makes it a Knowledge Graph tool? How to use it as KG interface?
  • 4. 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… 4
  • 5. Knowledge Graphs and Wikipedia vs. custom KG  extract structured information from Wikipedia and make this information available on the Web 5  free knowledge base that can be read and edited by humans and machines alike… central storage for the data that may be accessed by the client Wikipedias  turns MediaWiki into a powerful and flexible knowledge management system  lets you store and query data within the wiki's pages  a set of extensions for MediaWiki
  • 6. 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  …  online forms for data entry  more visualizations  responsive skin  authentication  image annotation  SPARQL 6
  • 7. 1 2 3 Agenda What is SMW? What makes it a Knowledge Graph tool? How to use it as KG interface?
  • 8. Semantic MediaWiki as Knowledge Graph tool KG Definition (Sack/Alam 2020) Semantic MediaWiki concepts Concept: classes Category: rdf:type properties Property: with datatypes relationships annotations via wikitext or templates entity descriptions wiki pages RDF(S)/OWL / (OWL 2 DL) open/private/closed // original/derived/agregated // instance data wiki pages or subobjects (instances without wiki pages) schema data Help:Schema metadata via special semantic properties Taxonomies subcategories rdfs:subClassOf links and mappings to external data datatype „External identifier“, vocabulary import 8
  • 9. Building your Knowledge Graph  page Vienna can have properties  number of inhabitants, located in, coordinates, WikidataID, …  properties can have various data types  page, text, number, date, URL, …  external identifier links to external resources  re-use external vocabularies  “Lastname” imported from foaf:familyName  a page should be put into a category 9 optional  setup templates  setup forms  do internal querying  use built in search interfaces
  • 11. Internal query language 11 {{#ask: [[Category:Topographic Object]] [[Named after::Sigmund Freud]] |mainlabel=Objekt |?District |?Coordinates |format=table }}
  • 12. Internal query language {{#ask: [[Category:Topographic Object]] [[Named after::Sigmund Freud]] |mainlabel=Objekt |?District |?Coordinates |format=map }} 12
  • 13. > 70 result formats, supporting MediaWiki templates |format=moderntimeline |format=calendar |format=median |format=D3chart |format=gantt |format=tagcloud |format=json |format=rdf |format=bibtex … 13
  • 14. 1 2 3 Agenda What is SMW? What makes it a Knowledge Graph tool? How to use it as KG interface?
  • 15. Semantic MediaWiki storage options  SQL Store (default)  extra tables in the SQL store of MediaWiki  ElasticStore  search engine, not a storage backend  data storage and management remains part of the SQLStore  SPARQL/RDF Store  custom, default  Virtuoso  Blazegraph  Fuseki  Sesame  4store 15 easy (to install) harder to install but more powerful
  • 16. SPARQL  Internal querying {{#ask: …}} RDF dump can be imported in triplestores, or direct connection:  Other approaches via extensions  LinkedWiki: SPARQL queries of internal/external data in the wiki  SPARQLResultFormat: query external data  RDFIO: PHP-based SPARQL endpoint 16
  • 17. Maintaining your Knowledge Graph Data/ontology curation: “semantic gardening”  user rights  admins, curators, users  property annotation health  Outdated properties/entities  Similar properties  Property uniqueness  Improper annotations and failed queries  Missing redirect annotations https://www.semantic- mediawiki.org/wiki/Semantic_gardening 17 Inferencing  subcategories  subproperties  equality of pages: redirects  subqueries https://www.semantic- mediawiki.org/wiki/Help:Inferencing
  • 18. Semantic MediaWiki or Wikibase? https://www.mediawiki.org/wiki/Manual:Managing_data_in_MediaWiki Semantic MediaWiki Wikibase flexible data model data model of Wikidata properties can be pre-defined or declared by annotating properties need to be pre-defined requires extensions for form-based input comes with a fixed, built-in edit interface SPARQL only with external triplestore internal query language (easier than SPARQL) no built-in querying of data enterprise-ready (stability, commercial support) 18