Difference between revisions of "Workdocumentation 2023-03-09"
Jump to navigation
Jump to search
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{PageSequence|prev=Workdocumentation 2023-03-03|next=Workdocumentation 2023-03-10|category=Workdocumentation}} | ||
+ | == Add properties to CeurwsSchema == | ||
Add properties url,urn,k10plus,dblp to CeurwsSchema | Add properties url,urn,k10plus,dblp to CeurwsSchema | ||
* https://ceur-ws.bitplan.com/index.php?title=CeurwsSchema&type=revision&diff=1126&oldid=968 | * https://ceur-ws.bitplan.com/index.php?title=CeurwsSchema&type=revision&diff=1126&oldid=968 | ||
Line 38: | Line 40: | ||
generating Python for Volume via Mediawiki Api... | generating Python for Volume via Mediawiki Api... | ||
diff: (1764) | diff: (1764) | ||
− | </source | + | </source> |
+ | == Sync new fields with wikidata == | ||
<source lang='bash'> | <source lang='bash'> | ||
smwsync -u -t ceur-ws --context CeurwsSchema --topic Volume -p url urn k10plus dblp --progress | smwsync -u -t ceur-ws --context CeurwsSchema --topic Volume -p url urn k10plus dblp --progress | ||
Line 46: | Line 49: | ||
Vol-3346→dlbp: 100%|████████████████████████████| 32/32 [00:40<00:00, 1.26s/it] | Vol-3346→dlbp: 100%|████████████████████████████| 32/32 [00:40<00:00, 1.26s/it] | ||
</source> | </source> | ||
+ | <source lang='bash'> | ||
+ | smwsync -u -t ceur-ws --context CeurwsSchema --topic Volume -pkv Q113542713 -p desc title | ||
+ | </source> | ||
+ | |||
+ | |||
+ | = Paper Template Example= | ||
+ | <pre> | ||
+ | {|class="wikitable" style="" | ||
+ | ! colspan="2"| Paper | ||
+ | |- | ||
+ | ![[Title::@@@]] | ||
+ | | {{#show: {{PAGENAME}}| ?title}} | ||
+ | |- | ||
+ | ![[Author::@@@]] | ||
+ | |{{#show: {{PAGENAME}}| ?author}} | ||
+ | |- | ||
+ | ![[DOI::@@@]] | ||
+ | |{{#show: {{PAGENAME}}| ?doi}} | ||
+ | |- | ||
+ | ![[Publication date::@@@]] | ||
+ | |{{#show: {{PAGENAME}}| ?publication_date}} | ||
+ | |- | ||
+ | ![[Wikidata id::@@@]] | ||
+ | |{{#show: {{PAGENAME}}| ?wikidata_id}} | ||
+ | |- | ||
+ | ![[Event::@@@]] | ||
+ | |{{#show: {{PAGENAME}}| ?event}} | ||
+ | |} | ||
+ | |||
+ | </pre> | ||
+ | * https://www.semantic-mediawiki.org/wiki/Help:Property_links |
Latest revision as of 16:06, 10 March 2023
Add properties to CeurwsSchema
Add properties url,urn,k10plus,dblp to CeurwsSchema
py-yprinciple-gen % ypgen --wikiId ceur-ws --context CeurwsSchema --topics Volume --genViaMwApi --noDry
generating Category for Volume via Mediawiki Api...
diff: https://ceur-ws.bitplan.com/index.php?title=Volume&type=revision&diff=1133&oldid=931(498)
generating Concept for Volume via Mediawiki Api...
diff: https://ceur-ws.bitplan.com/index.php?title=Volume&type=revision&diff=1134&oldid=932(223)
generating Form for Volume via Mediawiki Api...
diff: https://ceur-ws.bitplan.com/index.php?title=Volume&type=revision&diff=1135&oldid=933(487)
generating Help for Volume via Mediawiki Api...
diff: https://ceur-ws.bitplan.com/index.php?title=Volume&type=revision&diff=1136&oldid=934(223)
generating List of for Volume via Mediawiki Api...
diff: https://ceur-ws.bitplan.com/index.php?title=List of Volumes&type=revision&diff=1137&oldid=1008(350)
generating Template for Volume via Mediawiki Api...
diff: https://ceur-ws.bitplan.com/index.php?title=Volume&type=revision&diff=1138&oldid=936(1582)
generating Property for Volume via Mediawiki Api...
diff: https://ceur-ws.bitplan.com/index.php?title=Volume number&type=revision&diff=924&oldid=924(80)
generating Property for Volume via Mediawiki Api...
diff: https://ceur-ws.bitplan.com/index.php?title=Volume acronym&type=revision&diff=938&oldid=938(80)
generating Property for Volume via Mediawiki Api...
diff: https://ceur-ws.bitplan.com/index.php?title=Volume wikidataid&type=revision&diff=939&oldid=939(80)
generating Property for Volume via Mediawiki Api...
diff: https://ceur-ws.bitplan.com/index.php?title=Volume title&type=revision&diff=940&oldid=940(80)
generating Property for Volume via Mediawiki Api...
diff: https://ceur-ws.bitplan.com/index.php?title=Volume description&type=revision&diff=937&oldid=937(80)
generating Property for Volume via Mediawiki Api...
diff: https://ceur-ws.bitplan.com/index.php?title=Volume url&type=revision&diff=1139&oldid=0(0)
generating Property for Volume via Mediawiki Api...
diff: https://ceur-ws.bitplan.com/index.php?title=Volume date&type=revision&diff=1140&oldid=0(0)
generating Property for Volume via Mediawiki Api...
diff: https://ceur-ws.bitplan.com/index.php?title=Volume dblp&type=revision&diff=1141&oldid=0(0)
generating Property for Volume via Mediawiki Api...
diff: https://ceur-ws.bitplan.com/index.php?title=Volume k10plus&type=revision&diff=1142&oldid=0(0)
generating Property for Volume via Mediawiki Api...
diff: https://ceur-ws.bitplan.com/index.php?title=Volume urn&type=revision&diff=1143&oldid=0(0)
generating Python for Volume via Mediawiki Api...
diff: (1764)
Sync new fields with wikidata
smwsync -u -t ceur-ws --context CeurwsSchema --topic Volume -p url urn k10plus dblp --progress
updating cache for CeurwsSchema:Volume from wiki ceur-ws ...
stored 8 Volume items to /Users/wf/.smwsync/ceur-ws/CeurwsSchema/Volume.json
8 Volume items to sync ...
Vol-3346→dlbp: 100%|████████████████████████████| 32/32 [00:40<00:00, 1.26s/it]
smwsync -u -t ceur-ws --context CeurwsSchema --topic Volume -pkv Q113542713 -p desc title
Paper Template Example
{|class="wikitable" style="" ! colspan="2"| Paper |- ![[Title::@@@]] | {{#show: {{PAGENAME}}| ?title}} |- ![[Author::@@@]] |{{#show: {{PAGENAME}}| ?author}} |- ![[DOI::@@@]] |{{#show: {{PAGENAME}}| ?doi}} |- ![[Publication date::@@@]] |{{#show: {{PAGENAME}}| ?publication_date}} |- ![[Wikidata id::@@@]] |{{#show: {{PAGENAME}}| ?wikidata_id}} |- ![[Event::@@@]] |{{#show: {{PAGENAME}}| ?event}} |}