EMWConTalk2023-04

From BITPlan Wiki
Revision as of 16:37, 24 April 2023 by Wf (talk | contribs)
Jump to navigation Jump to search

EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "wolfgangfahl"." is not a number.</li> <!--br--><li>"WolfgangFahl" is not a number.</li></ul> EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "bitplangmbh"." is not a number.</li> <!--br--><li>"BITPlanGmbH" is not a number.</li></ul> EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "agenda"." is not a number.</li> <!--br--><li>"Agenda" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "smwwikidatastorage"." is not a number.</li> <!--br--><li>"SMWWikidataStorage" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "smwwikidatadatabases"." is not a number.</li> <!--br--><li>"SMWWikidataDatabases" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "smwrelationaloperators"." is not a number.</li> <!--br--><li>"SMWRelationalOperators" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "modifyingasingletriple"." is not a number.</li> <!--br--><li>"ModifyingASingleTriple" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "exampleusecases"." is not a number.</li> <!--br--><li>"ExampleUseCases" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "exampleroyalfamily"." is not a number.</li> <!--br--><li>"ExampleRoyalFamily" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "syncroyalfamily"." is not a number.</li> <!--br--><li>"SyncRoyalFamily" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "examplescholarlycommunication"." is not a number.</li> <!--br--><li>"ExampleScholarlyCommunication" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "synceventseries"." is not a number.</li> <!--br--><li>"SyncEventSeries" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "syncinstitutions"." is not a number.</li> <!--br--><li>"SyncInstitutions" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "howsmwsyncworks"." is not a number.</li> <!--br--><li>"HowSMWSyncWorks" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "selfdescribingproperties"." is not a number.</li> <!--br--><li>"SelfDescribingProperties" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "metamodelsidifandlinkml"." is not a number.</li> <!--br--><li>"MetaModelSiDIFandLinkMl" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "mappingsmwandwikidataproperties"." is not a number.</li> <!--br--><li>"MappingSMWAndWikiDAtaProperties" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "commandlinetool"." is not a number.</li> <!--br--><li>"CommandLineTool" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "todos"." is not a number.</li> <!--br--><li>"Todos" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "links"." is not a number.</li> <!--br--><li>"Links" is not a number.</li></ul> {EMWConTalk2023-04/<ul><li>"Expression error: Unrecognized word "questionsdiscussion"." is not a number.</li> <!--br--><li>"QuestionsDiscussion" is not a number.</li></ul>



Sync Event Series

https://cr.bitplan.com/index.php/List_of_EventSeries

smwsync -u -t cr --topic EventSeries -p desc title home --progress
updating cache for CrSchema:EventSeries from wiki cr ...
stored 10 EventSeries items to /Users/wf/.smwsync/cr/CrSchema/EventSeries.json
10 EventSeries items to sync ...
SGAI→homepage: 100%|██████████████████████████████████| 30/30 [00:28<00:00,  1.05it/s]

Sync Institutions

smwsync -u -t cr --topic Institution -p desc home --progress
updating cache for CrSchema:Institution from wiki cr ...
stored 4 Institution items to /Users/wf/.smwsync/cr/CrSchema/Institution.json
4 Institution items to sync ...
Universität Stuttgart→homepage: 100%|█████████████████| 12/12 [00:12<00:00,  1.06s/it]

How SMWSync works

  • Self describing Properties
  • MetaModel, SiDIF, LinkML
  • Mapping SMW Properties to Wikidata properties
  • Command Line Tool

Self describing Properties

MetaModel, SiDIF, LinkML

YpgenScreenShotFamilyContext2023-04-19.png

ypgen --wikiId family --context FamilyContext --serve --host localhost

FamilyContext SiDIF is in legacy SiDIF triple format.

pyMetaModel mm_cmd command line tool will generate LinkML yaml markup and other target formats. LinkML can then generate even form format see:

pyMetaModel family example files

Mapping SMW Properties to Wikidata properties

# list of property mappings
# for family  versus wikidata
- topic: Person
  prop_list:
  - pid: qid
    smw_prop: qid
  - arg: label
    pid: label
    smw_prop: label
  - arg: desc
    pid: description
    pid_label: description
    smw_prop: description
  - arg: died
    pid: P570
    pid_label: date of death
    smw_prop: died
  - arg: died_at
    pid: P20
    pid_label: place of death
    smw_prop: died_at

Command Line Tool

usage: smwsync [-h] [-a] [--context CONTEXT] [-cpm CREATEPROPERTYMAP] [-d] [--dry]
               [-e ENDPOINT] [--progress] [-p PROPS [PROPS ...]] [--proplist]
               [-pm PROPERTYMAP] [-pk PRIMARYKEY]
               [-pkv PRIMARYKEYVALUES [PRIMARYKEYVALUES ...]] [-t TARGET] [-u]
               [--topic TOPIC] [--verbose] [-V]

Todos

  • synchronization of complete entities or sets of properties (--all option for properties)
    • detection of sync conflicts
  • bidirectional sync
    • publish to wikidata from smw
  • GUI
    • Sync dialog
  • generation of smw topics and properties from wikidata
  • mapping information in property definition page
  • support of intext annotation

Links

Questions / Discussion

Bitplanpartner.png