Date: tbd (Friday?)
Host: @Krabina
Categories/Keywords: Semantic MediaWiki, Wikibase
Session type: Short presentation (including Q/A)
Session Details
An introduction to Semantic MediaWiki.
Requirements: No preparations required.
Target audience: Anyone interested in general. Anyone interested in managing data within MediaWiki and building knowledge bases.
What will participants get out of this session? Attendees get an overview of Semantic MediaWiki: What are strength and weaknesses, how it compares to other approaches (Wikibase, Cargo) and how they can join the community.
Notes from the session:
Introduction to Semantic MediaWiki
Date and time:
May 3rd, 2024 @ 11:00 am
Relevant links
- Phabricator task: https://phabricator.wikimedia.org/T360323
- Session slides: https://upload.wikimedia.org/wikipedia/commons/5/52/SMW_Introduction_Wikimedia_Hackathon_Krabina_2024.pdf
- (any more?)
Presenter
Participants
@Wfan
User:Danny_Benjafield_(WMDE)
User:Valerio Bozzolan
User:AnotherJensen
Notes
Introduction about what is the Semantic MediaWiki:
Krabina is an active member of the Semantic MediaWiki community ~ 15 years
Agenda:
1: Structured data in MediaWiki
2: What is Semantic MediaWiki
3: Hacking and event announcement
1: Structured data in MediaWiki
Ontology is the art of describing things in real life. MediaWiki alone does not allow to describe this indeed.
Categories example: https://en.wikipedia.org/wiki/Category:Actresses_from_Vienna
DBpedia: Extracting graph from wikipedia and make info available
Wikidata: source of information for Wikimedia Projects. The wikitext pages are not source of information.
MediaWiki + SemanticWIki: no backend, store and query data, can define structured data: result lists and formats via {{#ask:}} queries
- A table listing 10 random animals inhabiting savannah.
{{#ask:
[[Category:Animals]]
[[Habitat::Savannah]]
format=table |
order=rand |
limit=10 |
}}
- A bulleted list of wild animals sorted alphabetically.
{{#ask:
[[Category:Animals]]
[[Is domestic::No]]
format=ul |
order=asc |
}}
- A simple Dolphins’ diet name.
{{#show: Dolphin |?Diet}}
other Extensions:
new visualisations, SPARQL, responsive skins, data entry onlne forms, image annotations
The power of knowledge graphs:
Query for Austrian artists can retrieve Hedy Lamarr even when this is not tagged on her page.
Managing data in MediaWiki:
Semantic: Properties annotated with Wikitext or templates. "reference" can be used to describe items w/ statements
Wikibase: technology/code behind Wikidata
Cargo: relational tables, each represents a template
VIsualData : JSON content model
Diff between SMW and Wikibase?
- SPARQL in both w/ external triplestore Wikibase: datamodel is tied to Wikidata, P's must be pre-defined and cannot be changed later. no built-in querying of data SMW: datamdel is flexible, properties & datatypes can be changed on the fly. Internal Query language is easier to pick up than SPARQL's technical barrier to entry.
2: What is Semantic MediaWiki
open source project: – www.semantic-mediawiki.org – https://github.com/SemanticMediaWiki
built on the MediaWiki ecosystem: the wiki engine that powers Wikipedia
Building your Knowledge Base
Using External Vocabularies
e.g.: {{#set:Imported from=schema:geo}}
Linking to external identifiers:
e.g.: {{#set:Has type=External identifier |External formatter uri= http://www.wikidata.org/entity/$1}}
Internal query language
e.g.: {{#ask: [[Category:Practices]] [[Country::Austria]] |?Organisation |?Coordinates |format=table }}
70+ Result formats: timelines, median, GANTT etc.
3: Hacking and event announcement
Get involved in the SMW community: www.semantic-mediawiki.org
Join our Github account: https://github.com/SemanticMediaWiki/
Join mailing lists: https://www.semanticmediawiki.org/wiki/Semantic_MediaWiki_mailing_lists
Element/Matric/Telegram chat https://t.me/joinchat/MCG84k3OMoaYZoFA9yhyMg
Social Media channels (Twitter, Mastodon, LinkedIn, Facebook, YouTube)
Contact:
Write me: ▪ bernhard.krabina@km-a.net or ▪ https://www.mediawiki.org/wiki/User_talk:Krabina
Help us with testing, documentation, i18n, programming, reviewing PRs
Cpnference:
Empowering Knowledge Worker
Nov 4-6, 2024 @ Vienna Austria
-> Add to the Wikidata Weekly Summary: https://www.wikidata.org/wiki/Wikidata:Status_updates/Next
KnowledgeGraph extension (wikidata.org)
-> Announce to the Wikidata Summary:
https://www.wikidata.org/wiki/Wikidata:Status_updates/Next
"Smart Comments" extension
Questions
Q: How to find bernhard krabina
A:
Bernhard.krabina@km-a.net
https://www.mediawiki.org/wiki/User_talk:Krabina
Join https://www.mediawiki.org/wiki/MediaWiki_Users_and_Developers_Conference_Fall_2024
I'l be in room Las Vegas
Photos
- https://t.me/wmhack/31305 by [[User:Valerio Bozzolan]]
- ...
Socials
- https://mastodon.uno/@boz/112376137574805317 by [[User:Valerio Bozzolan]]
- ...