DblpConf

From OPENRESEARCH th copy Wiki
Revision as of 12:57, 4 February 2021 by Tim Holzheim (talk | contribs)
Jump to navigation Jump to search

Task

Migrate SiDIF template generator from java to python

Goal

- Start with simple things like help or listof
- use lamda actions
- Given a topic and a selected template generate page e.g. topic=Sourcecode template=help

Procdure

Checkout dblp Read https://www.semantic-mediawiki.org/wiki/Metadata_management von Pierre Racine wikitask background

Abstract deadline, Acceptance rate, Accepted papers, Accepted short papers, Acronym, Action actionpage, Action author, Action comment, Action engine, Action input, Action inputtype, Action name, Action output, Action service, Action servicetype, Action since, Attendance fee, Attendance fee currency, Attendance fee reduced, Bigstock file, Bigstock id, BlogEntry author, BlogEntry date, BlogEntry pdf, BlogEntry title, Bogensportverein lat, Bogensportverein lon, Bogensportverein name, Bogensportverein url, Bogenturnier date, Bogenturnier name, Bogenturnier url, Bogenturnier veranstalter, Brainteaser date, Brainteaser finishDate, Brainteaser issue, Brainteaser page, Brainteaser pdf, Brainteaser problem, Brainteaser solution, CANInfo description, CANInfo name, CANInfo pid, CANInfo unit, Camera ready due, City name, City wikidataid, Commit date, Commit hash, Commit host... further results

Sourcecode concept

pushconcept -s test -t wiki Sourcecode
pushing concept Sourcecode from test to wiki
copying 5 pages from test to wiki
1/5 (  20%): copying Concept:Sourcecode ...✅
copying image File:SourceCodeLogo-64px.png ...❌:'url'
2/5 (  40%): copying Template:Sourcecode ...✅
3/5 (  60%): copying Form:Sourcecode ...✅
4/5 (  80%): copying Help:Sourcecode ...✅
copying image File:SourceCodeLogo-64px.png ...❌:'url'
copying image File:Help Icon.png ...False:exists
nochange
duplicateversions

5/5 ( 100%): copying Category:Sourcecode ...✅
copying 6 pages from test to wiki
1/6 (  17%): copying Property:Sourcecode author ...✅
2/6 (  33%): copying Property:Sourcecode id ...✅
3/6 (  50%): copying Property:Sourcecode lang ...✅
4/6 (  67%): copying Property:Sourcecode since ...✅
5/6 (  83%): copying Property:Sourcecode text ...✅
6/6 ( 100%): copying Property:Sourcecode url ...✅
copying 1 pages from test to wiki
1/1 ( 100%): copying CodeSchema ...


Template Example

@include(wiki.SiDIFTemplates.defs)
@def help(Topic topic) {
[[File:Help_Icon.png|right]]
== Help for @(topic.name) ==
@topicheader(topic)
=== Documentation ===
@topic.wikiDocumentation
=== Example @(topic.pluralName) ===
{{#ask: [[Concept:@(topic.name)]]
}}
=== Properties ===
{{#ask: [[Concept:Property]][[Property topic::Concept:@(topic.name)]]
| ?Property documentation = documentation
| ?Property type = type
| ?Property name = name
| ?Property label = label
| ?Property allowedValues = allowedValues
| ?Property mandatory = mandatory
| ?Property uploadable = uploadable
|format=table
}}

@uml("uml",topic)
@seealso(topic)
[[Category:@topic.name]]
}
@{
  ContextSetting contextSetting=ContextSetting.fromWikiTask(wikiTask);
}
@help(contextSetting.getMaintopic())