Difference between revisions of "EMWConTalk2023-04"

From BITPlan Wiki
Jump to navigation Jump to search
Line 32: Line 32:
 
* Mapping SMW Properties to Wikidata properties
 
* Mapping SMW Properties to Wikidata properties
 
* Command Line Tool
 
* Command Line Tool
}}
 
== Self describing Properties ==
 
{{Font-size|
 
* [https://www.semantic-mediawiki.org/wiki/Metadata_management#Pierre_Racine 2013: Pierr Racine]
 
* [https://www.semantic-mediawiki.org/wiki/Metadata_management#ProfiWiki 2015: BITPlan ProfiWiki]
 
* [http://family.bitplan.com/index.php/Property:Person_label Person Label (to be synced with wikidata)]
 
 
}}
 
}}
 
== MetaModel, SiDIF, LinkML ==
 
== MetaModel, SiDIF, LinkML ==

Revision as of 20:29, 24 April 2023

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>



How SMWSync works

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

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]