GenerateProperties: Difference between revisions

From BITPlan Wiki
Jump to navigation Jump to search
(created by WikiTask 2017-11-11T12:53:27Z)
 
(6 intermediate revisions by the same user not shown)
Line 20: Line 20:
=== sidif ===
=== sidif ===
<source lang='java' id='sidif'>
<source lang='java' id='sidif'>
Training isA Context
Context3D isA Context
"Training#sidif"is sidif of it
"Context3D#sidif"is sidif of it
Traininglocation needs Properties
Context3D needs Properties
Trainer needs Properties
Seminar needs Properties
SeminarTopic needs Properties
</source>
</source>
=== metamodelsidif ===
 
<source lang='java' id='metamodelsidif'>
=== MetaModelsidif ===
<source lang='java' id='metasidif'>
MetaModel isA Context
MetaModel isA Context
"MetaModel#sidif"is sidif of it
"MetaModel#sidif"is sidif of it
Line 38: Line 36:
Action needs Properties
Action needs Properties
</source>
</source>
=== presentation sidif ===
=== presentation sidif ===
<source lang='java' id='pressidif'>
<source lang='java' id='pressidif'>
Line 140: Line 139:


= result =
= result =
2017-11-11T12:53:17Z
2019-01-21T15:34:24Z
4 Topics need Properties to be generated
1 Topics need Properties to be generated


== Topic: Traininglocation ==
== Topic: Bogensportverein ==
=== properties of Traininglocation ===
=== properties of Bogensportverein ===
==== [[Property:Traininglocation name]] ====
==== [[Property:Bogensportverein name]] ====


<pre>
<pre>
Line 152: Line 151:
|name=name
|name=name
|label=name
|label=name
|documentation=The Name of the location
|documentation=Der Name des Vereins
|type=Special:Types/Text
|type=Special:Types/Text
|index=1
|index=1
Line 167: Line 166:
|showInGrid=true
|showInGrid=true
|isLink=false
|isLink=false
|topic=Concept:Traininglocation
|topic=Concept:Bogensportverein
|storemode=property
|storemode=property
}}
}}
Line 173: Line 172:
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
</pre>
==== [[Property:Traininglocation url]] ====
==== [[Property:Bogensportverein lat]] ====
 
<pre>
 
{{Property
|name=url
|label=url
|documentation=the url of the location e.g. the hotel / room provider
|type=Special:Types/URL
|index=4
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=false
|isLink=false
|topic=Concept:Traininglocation
|storemode=property
}}
[[Has type::URL]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Traininglocation coordinate]] ====


<pre>
<pre>


{{Property
{{Property
|name=coordinate
|name=lat
|label=maploc
|label=lat
|documentation=geographic coordinate of the location
|documentation=Breitengrad
|type=Special:Types/Geographic_coordinate
|index=4
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=true
|isLink=false
|topic=Concept:Traininglocation
|storemode=property
}}
[[Has type::Geographic_coordinate]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Traininglocation address]] ====
 
<pre>
 
{{Property
|name=address
|label=address
|documentation=the street address of the location e.g. Walzwerkstr. 10
|type=Special:Types/Text
|type=Special:Types/Text
|index=4
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=true
|isLink=false
|topic=Concept:Traininglocation
|storemode=property
}}
[[Has type::Text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Traininglocation city]] ====
<pre>
{{Property
|name=city
|label=city
|documentation=the city of the training location e.g. Willich
|type=Special:Types/Text
|index=5
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=
|isLink=false
|topic=Concept:Traininglocation
|storemode=property
}}
[[Has type::Text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Traininglocation country]] ====
<pre>
{{Property
|name=country
|label=country
|documentation=the country of the training location
|type=Special:Types/Text
|index=6
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=true
|isLink=false
|topic=Concept:Traininglocation
|storemode=property
}}
[[Has type::Text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
== Topic: Trainer ==
=== properties of Trainer ===
==== [[Property:Trainer name]] ====
<pre>
{{Property
|name=name
|label=name
|documentation=The Name of the trainer
|type=Special:Types/Text
|index=1
|sortPos=1
|primaryKey=true
|mandatory=true
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=true
|isLink=false
|topic=Concept:Trainer
|storemode=property
}}
[[Has type::Text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Trainer picture]] ====
<pre>
{{Property
|name=picture
|label=picture
|documentation=the picture of the trainer
|type=Special:Types/Page
|index=2
|index=2
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=true
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=true
|isLink=false
|topic=Concept:Trainer
|storemode=property
}}
[[Has type::Page]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Trainer description]] ====
<pre>
{{Property
|name=description
|label=description
|documentation=the description of the trainer
|type=Special:Types/text
|index=3
|sortPos=
|sortPos=
|primaryKey=false
|primaryKey=false
Line 394: Line 194:
|showInGrid=true
|showInGrid=true
|isLink=false
|isLink=false
|topic=Concept:Trainer
|topic=Concept:Bogensportverein
|storemode=property
}}
[[Has type::text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Trainer description_de]] ====
 
<pre>
 
{{Property
|name=description_de
|label=description de
|documentation=the german description of the trainer
|type=Special:Types/text
|index=4
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=true
|isLink=false
|topic=Concept:Trainer
|storemode=property
}}
[[Has type::text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Trainer rank]] ====
 
<pre>
 
{{Property
|name=rank
|label=rank
|documentation=rank / number of trainings held
|type=Special:Types/number
|index=5
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=true
|isLink=false
|topic=Concept:Trainer
|storemode=property
}}
[[Has type::number]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
 
== Topic: Seminar ==
=== properties of Seminar ===
==== [[Property:Seminar kind]] ====
 
<pre>
 
{{Property
|name=kind
|label=kind
|documentation=kind of
for example CPSA-F, CPRE-FL, CPRE-AL RQ Management, UML-Tag, UML2
|type=Special:Types/Page
|index=1
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=dropdown
|allowedValues=
|values_from=category=SeminarKind
|showInGrid=
|isLink=false
|topic=Concept:Seminar
|storemode=property
}}
[[Has type::Page]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Seminar lang]] ====
 
<pre>
 
{{Property
|name=lang
|label=lang
|documentation=The language of the seminar
|type=Special:Types/Text
|index=2
|sortPos=
|primaryKey=false
|mandatory=true
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=radiobutton
|allowedValues=de,en
|values_from=
|showInGrid=
|isLink=false
|topic=Concept:Seminar
|storemode=property
|storemode=property
}}
}}
Line 516: Line 200:
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
</pre>
==== [[Property:Seminar year]] ====
==== [[Property:Bogensportverein url]] ====


<pre>
<pre>


{{Property
{{Property
|name=year
|name=url
|label=year
|label=url
|documentation=year of the event
|documentation=
|type=Special:Types/Text
|type=Special:Types/URL
|index=4
|index=4
|sortPos=-1
|primaryKey=false
|mandatory=true
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=true
|isLink=false
|topic=Concept:Seminar
|storemode=property
}}
[[Has type::Text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Seminar month]] ====
<pre>
{{Property
|name=month
|label=month
|documentation=month of the event
|type=Special:Types/Text
|index=5
|sortPos=-2
|primaryKey=false
|mandatory=true
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=true
|isLink=false
|topic=Concept:Seminar
|storemode=property
}}
[[Has type::Text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Seminar inHouse]] ====
<pre>
{{Property
|name=inHouse
|label=inHouse
|documentation=is this an in house event?
|type=Special:Types/Boolean
|index=6
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=
|isLink=false
|topic=Concept:Seminar
|storemode=property
}}
[[Has type::Boolean]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Seminar from]] ====
<pre>
{{Property
|name=from
|label=von
|documentation=start date of course
|type=Special:Types/Date
|index=8
|sortPos=
|primaryKey=false
|mandatory=true
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=datepicker
|allowedValues=
|values_from=
|showInGrid=
|isLink=false
|topic=Concept:Seminar
|storemode=property
}}
[[Has type::Date]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Seminar to]] ====
<pre>
{{Property
|name=to
|label=bis
|documentation=end date of course
|type=Special:Types/Date
|index=9
|sortPos=
|primaryKey=false
|mandatory=true
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=datepicker
|allowedValues=
|values_from=
|showInGrid=
|isLink=false
|topic=Concept:Seminar
|storemode=property
}}
[[Has type::Date]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Seminar title]] ====
<pre>
{{Property
|name=title
|label=title
|documentation=
|type=Special:Types/Text
|index=10
|sortPos=
|sortPos=
|primaryKey=
|primaryKey=
Line 678: Line 222:
|showInGrid=
|showInGrid=
|isLink=false
|isLink=false
|topic=Concept:Seminar
|topic=Concept:Bogensportverein
|storemode=property
|storemode=property
}}
}}
[[Has type::Text]]
[[Has type::URL]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
</pre>
==== [[Property:Seminar contact]] ====
==== [[Property:Bogensportverein lon]] ====


<pre>
<pre>


{{Property
{{Property
|name=contact
|name=lon
|label=contact
|label=lon
|documentation=the contact person for the seminar as a CRM WikiSon
|documentation=Längengrad
|type=Special:Types/Text
|type=Special:Types/Text
|index=11
|index=3
|sortPos=
|sortPos=
|primaryKey=
|primaryKey=
Line 706: Line 250:
|showInGrid=
|showInGrid=
|isLink=false
|isLink=false
|topic=Concept:Seminar
|topic=Concept:Bogensportverein
|storemode=property
|storemode=property
}}
}}
[[Has type::Text]]
[[Has type::Text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Seminar customer]] ====
<pre>
{{Property
|name=customer
|label=customer
|documentation=the organization that ordered / organizes the event
|type=Special:Types/Text
|index=12
|sortPos=
|primaryKey=
|mandatory=
|namespace=
|size=
|uploadable=
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=
|isLink=false
|topic=Concept:Seminar
|storemode=property
}}
[[Has type::Text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Seminar documentation]] ====
<pre>
{{Property
|name=documentation
|label=documentation
|documentation=the path to a directory in the BITPlan volume
|type=Special:Types/Text
|index=12
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=
|isLink=false
|topic=Concept:Seminar
|storemode=property
}}
[[Has type::Text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Seminar trainer]] ====
<pre>
{{Property
|name=trainer
|label=trainer
|documentation=
|type=Special:Types/Page
|index=
|sortPos=
|primaryKey=
|mandatory=
|namespace=
|size=
|uploadable=
|defaultValue=
|inputType=dropdown
|allowedValues=
|values_from=concept=Trainer
|showInGrid=
|isLink=true
|topic=Concept:Seminar
|storemode=property
}}
[[Has type::Page]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Seminar city]] ====
<pre>
{{Property
|name=city
|label=city
|documentation=
|type=Special:Types/Page
|index=
|sortPos=
|primaryKey=
|mandatory=
|namespace=
|size=
|uploadable=
|defaultValue=
|inputType=dropdown
|allowedValues=
|values_from=concept=Traininglocation
|showInGrid=
|isLink=true
|topic=Concept:Seminar
|storemode=property
}}
[[Has type::Page]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:Seminar thema]] ====
<pre>
{{Property
|name=thema
|label=thema
|documentation=
|type=Special:Types/Page
|index=
|sortPos=
|primaryKey=
|mandatory=
|namespace=
|size=
|uploadable=
|defaultValue=
|inputType=dropdown
|allowedValues=
|values_from=concept=SeminarTopic
|showInGrid=
|isLink=true
|topic=Concept:Seminar
|storemode=property
}}
[[Has type::Page]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
== Topic: SeminarTopic ==
=== properties of SeminarTopic ===
==== [[Property:SeminarTopic name]] ====
<pre>
{{Property
|name=name
|label=name
|documentation=the seminar name for this Seminar Topic
|type=Special:Types/Text
|index=1
|sortPos=
|primaryKey=true
|mandatory=true
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=false
|isLink=false
|topic=Concept:SeminarTopic
|storemode=property
}}
[[Has type::Text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:SeminarTopic logo]] ====
<pre>
{{Property
|name=logo
|label=logo
|documentation=the logo for this Seminar Topic
|type=Special:Types/Page
|index=2
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=true
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=false
|isLink=false
|topic=Concept:SeminarTopic
|storemode=property
}}
[[Has type::Page]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:SeminarTopic level]] ====
<pre>
{{Property
|name=level
|label=level
|documentation=the level for this Seminar Topic
|type=Special:Types/Text
|index=3
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=false
|isLink=false
|topic=Concept:SeminarTopic
|storemode=property
}}
[[Has type::Text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:SeminarTopic licensee]] ====
<pre>
{{Property
|name=licensee
|label=licensee
|documentation=the licensee for this Seminar Topic
|type=Special:Types/Text
|index=4
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=false
|isLink=false
|topic=Concept:SeminarTopic
|storemode=property
}}
[[Has type::Text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:SeminarTopic licenseeUrl]] ====
<pre>
{{Property
|name=licenseeUrl
|label=licenseeUrl
|documentation=the licenseeUrl for this Seminar Topic
|type=Special:Types/Text
|index=5
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=false
|isLink=false
|topic=Concept:SeminarTopic
|storemode=property
}}
[[Has type::Text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:SeminarTopic overview]] ====
<pre>
{{Property
|name=overview
|label=overview
|documentation=overview of the seminar - e.g. outline of syllabus chapters
|type=Special:Types/Text
|index=6
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=textarea
|allowedValues=
|values_from=
|showInGrid=true
|isLink=false
|topic=Concept:SeminarTopic
|storemode=property
}}
[[Has type::Text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:SeminarTopic syllabus]] ====
<pre>
{{Property
|name=syllabus
|label=syllabus
|documentation=the syllabus for this Seminar Topic
|type=Special:Types/Page
|index=7
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=false
|isLink=false
|topic=Concept:SeminarTopic
|storemode=property
}}
[[Has type::Page]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:SeminarTopic syllabus_en]] ====
<pre>
{{Property
|name=syllabus_en
|label=syllabus_en
|documentation=the english syllabus page for this Seminar Topic
|type=Special:Types/Page
|index=8
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=false
|isLink=false
|topic=Concept:SeminarTopic
|storemode=property
}}
[[Has type::Page]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:SeminarTopic syllabusPdf]] ====
<pre>
{{Property
|name=syllabusPdf
|label=syllabusPdf
|documentation=the Url of the PDF for this SeminarTopic
|type=Special:Types/URL
|index=9
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=false
|isLink=false
|topic=Concept:SeminarTopic
|storemode=property
}}
[[Has type::URL]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
==== [[Property:SeminarTopic syllabusPdf_en]] ====
<pre>
{{Property
|name=syllabusPdf_en
|label=syllabusPdf en
|documentation=the Url of the english syllabus PDF for this SeminarTopic
|type=Special:Types/URL
|index=10
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=false
|isLink=false
|topic=Concept:SeminarTopic
|storemode=property
}}
[[Has type::URL]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
</pre>
</pre>

Latest revision as of 09:10, 21 February 2019

Action
edit
name  GenerateProperties
servicetype  WikiTask
service  
inputtype  Page
input  GenerateProperties#sidif
actionpage  GenerateProperties#template→GenerateProperties#template
output  GenerateProperties#result
engine  rythm
author  Wf→Wf
since  2015/11/18
comment  This saves a lot of work!


[edit]

sidif

Context3D isA Context
"Context3D#sidif"is sidif of it
Context3D needs Properties

MetaModelsidif

MetaModel isA Context
"MetaModel#sidif"is sidif of it
Topic needs Properties
Property needs Properties
SMW_Type needs Properties
Context needs Properties
TopicLink needs Properties
Action needs Properties

presentation sidif

Presentation isA Context
"Presentation#sidif"is sidif of it
Bigstock needs Properties

Training sidif

Training isA Context
"Training#sidif"is sidif of it
Quizkarte needs Properties

Syllabus sidif

Syllabus isA Context
"Syllabus#sidif"is sidif of it
LearningGoal needs Properties

CRM Sidif

CRM isA Context
"CRM#sidif"is sidif of it
Organization needs Properties
Person needs Properties
Contact needs Properties
SocialLink needs Properties
[edit]
@// This is a rythm template
@import org.sidif.triple.TripleQuery
@import org.sidif.triple.Triple
@import org.sidif.wiki.SSLWiki
@import com.bitplan.topic.ContextSetting.TripleStoreMode
@import com.alibaba.fastjson.JSON
@import com.bitplan.mediawiki.japi.MediawikiApi
@import com.bitplan.mediawiki.japi.Mediawiki
@import com.bitplan.mediawiki.japi.api.Api
@include(wiki.SiDIFTemplates.propertiesdefs)
@args() {
  String title 
  String logo
  org.sidif.wiki.WikiTask wikiTask
  org.sidif.triple.TripleStore tripleStore
}
@{
  TripleQuery query=tripleStore.query();
  TripleQuery needed=query.query(null,"needs","Properties");
  Triple contextTriple=query.selectSingle(null,"isA","Context");
  String contextName=contextTriple.getSubject().toString();
  Triple sidifTriple=query.selectSingle(contextName,"sidif", null);
  String contextSidif=sidifTriple.getObject().toString();
  // now get the context
  ContextSetting contextSetting=ContextSetting.fromWikiTask(wikiTask);
  contextSetting.setContextName(contextName);
  contextSetting.setSidifInput(contextSidif);
  contextSetting.setTripleStoreMode(TripleStoreMode.SiDIF);
  Context context = ContextFactory.getInstance().getContext(contextSetting);
}
@(wikiTask.getWiki().getIsoTimeStamp())
@(needed.size()) Topics need Properties to be generated
@for (Triple neededTriple:needed.getTriples()) {
@{
  String topicName=neededTriple.getSubject().toString();
  Topic topic=context.byName(topicName);
}
== Topic: @(topicName) ==
=== properties of @(topic.name) ===
@for (Property property:topic.getProperties()) {
==== [[Property:@(topic.name) @(property.name)]] ====
@{
  Throwable error=null;
  try {
    // get the Rythm template result
    org.rythmengine.utils.RawData pageContentRaw=property(topic,property);
    String pageContent=pageContentRaw.toString();
    String pageTitle="Property:"+topic.name+" "+property.name;
    SSLWiki wiki=(SSLWiki)wikiTask.getWiki();
    String currentContent=wiki.getPageContent(pageTitle);
    // if (currentContent==null || currentContent.length()==0) {
      String summary="generated by GenerateProperties at "+wiki.getIsoTimeStamp();
      wiki.edit(pageTitle,pageContent,summary);
    // }
  } catch (Throwable th) {
    error=th;
  }
}
@if (error) {
<span style='color:red'>Error: @(error.getMessage())</span>
}
<pre>
@property(topic,property)
</pre>
}
}


[edit]

2019-01-21T15:34:24Z 1 Topics need Properties to be generated

Topic: Bogensportverein

properties of Bogensportverein

Property:Bogensportverein name


{{Property
|name=name
|label=name
|documentation=Der Name des Vereins
|type=Special:Types/Text
|index=1
|sortPos=
|primaryKey=true
|mandatory=true
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=true
|isLink=false
|topic=Concept:Bogensportverein
|storemode=property
}}
[[Has type::Text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}

Property:Bogensportverein lat


{{Property
|name=lat
|label=lat
|documentation=Breitengrad
|type=Special:Types/Text
|index=2
|sortPos=
|primaryKey=false
|mandatory=false
|namespace=
|size=
|uploadable=false
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=true
|isLink=false
|topic=Concept:Bogensportverein
|storemode=property
}}
[[Has type::Text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}

Property:Bogensportverein url


{{Property
|name=url
|label=url
|documentation=
|type=Special:Types/URL
|index=4
|sortPos=
|primaryKey=
|mandatory=
|namespace=
|size=
|uploadable=
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=
|isLink=false
|topic=Concept:Bogensportverein
|storemode=property
}}
[[Has type::URL]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}

Property:Bogensportverein lon


{{Property
|name=lon
|label=lon
|documentation=Längengrad
|type=Special:Types/Text
|index=3
|sortPos=
|primaryKey=
|mandatory=
|namespace=
|size=
|uploadable=
|defaultValue=
|inputType=
|allowedValues=
|values_from=
|showInGrid=
|isLink=false
|topic=Concept:Bogensportverein
|storemode=property
}}
[[Has type::Text]]
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}