Difference between revisions of "GenerateProperties"

From BITPlan royal-family Wiki
Jump to navigation Jump to search
(created by WikiTask 2017-10-03T19:15:21Z)
(created by WikiTask 2017-10-03T19:16:10Z)
Line 140: Line 140:
  
 
= result =
 
= result =
2017-10-03T19:15:06Z
+
2017-10-03T19:16:05Z
6 Topics need Properties to be generated
+
2 Topics need Properties to be generated
  
== Topic: Topic ==
+
== Topic: Person ==
=== properties of Topic ===
+
=== properties of Person ===
==== [[Property:Topic name]] ====
+
==== [[Property:Person name]] ====
  
 
<pre>
 
<pre>
Line 152: Line 152:
 
|name=name
 
|name=name
 
|label=name
 
|label=name
|documentation=The name of the topic
+
|documentation=
 
|type=Special:Types/Text
 
|type=Special:Types/Text
|index=1
+
|index=
 
|sortPos=
 
|sortPos=
|primaryKey=true
+
|primaryKey=
|mandatory=true
+
|mandatory=
 
|namespace=
 
|namespace=
|size=80
+
|size=
|uploadable=false
+
|uploadable=
 
|defaultValue=
 
|defaultValue=
 
|inputType=
 
|inputType=
Line 167: Line 167:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:Topic
+
|topic=Concept:Person
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 173: Line 173:
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
==== [[Property:Topic pluralName]] ====
+
==== [[Property:Person nobleTitle]] ====
  
 
<pre>
 
<pre>
  
 
{{Property
 
{{Property
|name=pluralName
+
|name=nobleTitle
|label=pluralName
+
|label=nobleTitle
|documentation=The plural of a topic name. E.g. for the topic 'City' the pluralName is 'Cities'. If no pluralName is specified an 's' is appended. E.g. for the topic 'Book' the default pluralName is 'Books'
+
|documentation=
 
|type=Special:Types/Text
 
|type=Special:Types/Text
|index=2
+
|index=
 
|sortPos=
 
|sortPos=
|primaryKey=false
+
|primaryKey=
|mandatory=false
+
|mandatory=
 
|namespace=
 
|namespace=
|size=50
+
|size=
|uploadable=false
+
|uploadable=
 
|defaultValue=
 
|defaultValue=
 
|inputType=
 
|inputType=
Line 195: Line 195:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:Topic
+
|topic=Concept:Person
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 201: Line 201:
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
==== [[Property:Topic icon]] ====
+
==== [[Property:Person born]] ====
  
 
<pre>
 
<pre>
  
 
{{Property
 
{{Property
|name=icon
+
|name=born
|label=icon
+
|label=born
|documentation=an Icon for the topic
+
|documentation=
|type=Special:Types/Page
 
|index=3
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=File
 
|size=55
 
|uploadable=true
 
|defaultValue=
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=false
 
|isLink=false
 
|topic=Concept:Topic
 
|storemode=property
 
}}
 
[[Has type::Page]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Topic iconUrl]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=iconUrl
 
|label=icon Url
 
|documentation=the url of an icon
 
|type=Special:Types/URL
 
|index=4
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=80
 
|uploadable=false
 
|defaultValue=
 
|inputType=text
 
|allowedValues=
 
|values_from=
 
|showInGrid=false
 
|isLink=false
 
|topic=Concept:Topic
 
|storemode=property
 
}}
 
[[Has type::URL]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Topic documentation]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=documentation
 
|label=documentation
 
|documentation=The plaintext documentation of a Topic. Please do not use markup for this.
 
 
|type=Special:Types/Text
 
|type=Special:Types/Text
|index=5
+
|index=
 
|sortPos=
 
|sortPos=
|primaryKey=false
+
|primaryKey=
|mandatory=false
+
|mandatory=
 
|namespace=
 
|namespace=
|size=50
+
|size=
|uploadable=false
+
|uploadable=
 
|defaultValue=
 
|defaultValue=
 
|inputType=
 
|inputType=
Line 279: Line 223:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:Topic
+
|topic=Concept:Person
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 285: Line 229:
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
==== [[Property:Topic wikiDocumentation]] ====
+
==== [[Property:Person yearBorn]] ====
  
 
<pre>
 
<pre>
  
 
{{Property
 
{{Property
|name=wikiDocumentation
+
|name=yearBorn
|label=wikiDocumentation
+
|label=yearBorn
|documentation=Documentation of the Topic using MediaWiki / Semantic Mediawiki markup
+
|documentation=
 
|type=Special:Types/Text
 
|type=Special:Types/Text
|index=6
+
|index=
 
|sortPos=
 
|sortPos=
|primaryKey=false
+
|primaryKey=
|mandatory=false
+
|mandatory=
 
|namespace=
 
|namespace=
|size=50
+
|size=
|uploadable=false
+
|uploadable=
 
|defaultValue=
 
|defaultValue=
 
|inputType=
 
|inputType=
Line 307: Line 251:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:Topic
+
|topic=Concept:Person
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 313: Line 257:
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
==== [[Property:Topic defaultstoremode]] ====
+
==== [[Property:Person monthBorn]] ====
  
 
<pre>
 
<pre>
  
 
{{Property
 
{{Property
|name=defaultstoremode
+
|name=monthBorn
|label=default storemode
+
|label=monthBorn
|documentation=The default storemode of the topic
+
|documentation=
 
|type=Special:Types/Text
 
|type=Special:Types/Text
|index=7
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=50
 
|uploadable=false
 
|defaultValue=
 
|inputType=radiobutton
 
|allowedValues=none,property,subobject
 
|values_from=
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:Topic
 
|storemode=property
 
}}
 
[[Has type::Text]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Topic listLimit]] ====
 
 
<pre>
 
 
{{Property
 
|name=listLimit
 
|label=list Limit
 
|documentation=What is the default #ask list limit for this Topic?
 
|type=Special:Types/Number
 
|index=8
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=4
 
|uploadable=false
 
|defaultValue=200
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=true
 
|isLink=false
 
|topic=Concept:Topic
 
|storemode=property
 
}}
 
[[Has type::Number]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Topic cargo]] ====
 
 
<pre>
 
 
{{Property
 
|name=cargo
 
|label=use cargo
 
|documentation=Should the Topic be stored using the [https://www.mediawiki.org/wiki/Extension:Cargo Cargo Extension?]
 
|type=Special:Types/Boolean
 
|index=9
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=
 
|uploadable=false
 
|defaultValue=
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=false
 
|isLink=false
 
|topic=Concept:Topic
 
|storemode=property
 
}}
 
[[Has type::Boolean]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Topic headerTabs]] ====
 
 
<pre>
 
 
{{Property
 
|name=headerTabs
 
|label=headerTabs
 
|documentation=shall the forms be generated with header tabs?
 
|type=Special:Types/Boolean
 
|index=10
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=
 
|uploadable=false
 
|defaultValue=
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=true
 
|isLink=false
 
|topic=Concept:Topic
 
|storemode=property
 
}}
 
[[Has type::Boolean]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Topic context]] ====
 
 
<pre>
 
 
{{Property
 
|name=context
 
|label=context
 
|documentation=
 
|type=Special:Types/Page
 
 
|index=
 
|index=
 
|sortPos=
 
|sortPos=
Line 441: Line 273:
 
|size=
 
|size=
 
|uploadable=
 
|uploadable=
|defaultValue=
 
|inputType=dropdown
 
|allowedValues=
 
|values_from=concept=Context
 
|showInGrid=
 
|isLink=true
 
|topic=Concept:Topic
 
|storemode=property
 
}}
 
[[Has type::Page]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
 
== Topic: Property ==
 
=== properties of Property ===
 
==== [[Property:Property name]] ====
 
 
<pre>
 
 
{{Property
 
|name=name
 
|label=name
 
|documentation=The name of the property
 
|type=Special:Types/Text
 
|index=1
 
|sortPos=1
 
|primaryKey=true
 
|mandatory=true
 
|namespace=
 
|size=50
 
|uploadable=false
 
 
|defaultValue=
 
|defaultValue=
 
|inputType=
 
|inputType=
Line 478: Line 279:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:Property
+
|topic=Concept:Person
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 484: Line 285:
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
==== [[Property:Property label]] ====
+
==== [[Property:Person birthPlace]] ====
  
 
<pre>
 
<pre>
  
 
{{Property
 
{{Property
|name=label
+
|name=birthPlace
|label=label
+
|label=birthPlace
|documentation=The label to be shown when in a form
+
|documentation=
 
|type=Special:Types/Text
 
|type=Special:Types/Text
|index=2
+
|index=
 
|sortPos=
 
|sortPos=
|primaryKey=false
+
|primaryKey=
|mandatory=false
+
|mandatory=
|namespace=
 
|size=50
 
|uploadable=false
 
|defaultValue=
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:Property
 
|storemode=property
 
}}
 
[[Has type::Text]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Property type]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=type
 
|label=type
 
|documentation=The type of a Property
 
|type=Special:Types/Page
 
|index=3
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
 
|namespace=
 
|namespace=
 
|size=
 
|size=
|uploadable=false
+
|uploadable=
|defaultValue=Special:Types/Text
 
|inputType=dropdown
 
|allowedValues=
 
|values_from=property=Property_type
 
|showInGrid=true
 
|isLink=false
 
|topic=Concept:Property
 
|storemode=property
 
}}
 
[[Has type::Page]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Property index]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=index
 
|label=index
 
|documentation=A positive number that specifies at which position of a Topic the given property should show. The first property to show has the index 1 each following property has an index that is +1 of the previous.
 
|type=Special:Types/Number
 
|index=4
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=
 
|uploadable=false
 
|defaultValue=
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=true
 
|isLink=false
 
|topic=Concept:Property
 
|storemode=property
 
}}
 
[[Has type::Number]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Property sortPos]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=sortPos
 
|label=sortPos
 
|documentation=If none empty >0 this is the position in the sort clause of this
 
property. This is used when displaying list of the topic as the default sort order
 
and it is used for selecting topics .
 
 
 
E.g.
 
Sortpos 1 for attribute lastname and sortpos 2 for attribute firstname leads to  sort by lastname,firstname
 
|type=Special:Types/Number
 
|index=5
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=3
 
|uploadable=false
 
|defaultValue=
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:Property
 
|storemode=property
 
}}
 
[[Has type::Number]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Property primaryKey]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=primaryKey
 
|label=primary key
 
|documentation=is this property a primary key of it's topic?
 
|type=Special:Types/Boolean
 
|index=6
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=4
 
|uploadable=false
 
|defaultValue=
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:Property
 
|storemode=property
 
}}
 
[[Has type::Boolean]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Property mandatory]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=mandatory
 
|label=mandatory
 
|documentation=Specifies that this field must be filled in by the user. Note: mandatory should not be used in conjunction with hidden. Use of both in any field will cause the mandatory check on any field to fail when the form is saved.
 
 
 
see http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#.27field.27_tag
 
|type=Special:Types/Boolean
 
|index=7
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=4
 
|uploadable=false
 
 
|defaultValue=
 
|defaultValue=
 
|inputType=
 
|inputType=
Line 653: Line 307:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:Property
+
|topic=Concept:Person
|storemode=property
 
}}
 
[[Has type::Boolean]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Property namespace]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=namespace
 
|label=namespace
 
|documentation=namespace prefix
 
|type=Special:Types/Text
 
|index=8
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=20
 
|uploadable=false
 
|defaultValue=
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:Property
 
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 687: Line 313:
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
==== [[Property:Property size]] ====
+
==== [[Property:Person died]] ====
  
 
<pre>
 
<pre>
  
 
{{Property
 
{{Property
|name=size
+
|name=died
|label=size
+
|label=died
|documentation=the display size of the field for the property
+
|documentation=
|type=Special:Types/Number
 
|index=9
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=3
 
|uploadable=false
 
|defaultValue=
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:Property
 
|storemode=property
 
}}
 
[[Has type::Number]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Property uploadable]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=uploadable
 
|label=uploadable
 
|documentation=Specifies that a link should be placed next to this field, that opens a popup window to let the user upload a file; see 'Uploading files', below. See
 
* https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#.27field.27_tag
 
* https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#Uploading_files
 
 
 
The type of the target property needs to be Page for this to work
 
|type=Special:Types/Boolean
 
|index=10
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=4
 
|uploadable=false
 
|defaultValue=
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:Property
 
|storemode=property
 
}}
 
[[Has type::Boolean]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Property defaultValue]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=defaultValue
 
|label=default
 
|documentation=default value - Specifies a default value for this field. For date-related fields, default=now will set the value to the current date and possibly time. For text fields, default=current user will set the value to the username of the user adding this page. For the checkbox input type, default=yes will check the checkbox by default. (The 'checkboxes' input type, on the other hand, like the 'listbox' type, requires specifying the actual values, like default=Value A, Value C.) You can also include templates, parser functions, and magic words within the 'default=' value.
 
 
 
see http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#.27field.27_tag (default)
 
|type=Special:Types/Code
 
|index=11
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=80
 
|uploadable=false
 
|defaultValue=
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:Property
 
|storemode=property
 
}}
 
[[Has type::Code]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Property inputType]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=inputType
 
|label=inputType
 
|documentation=see
 
* http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#.27field.27_tag<br>input type - Specifies the type of input this field will have in the form. If a field corresponds to an SMW property or Cargo field, the form will usually have the correct input type by default; otherwise the default is text. If the corresponding SMW property, or Cargo field, cannot be automatically determined, you can use the parameter 'property', or the parameters 'cargo table' and 'cargo field', to manually specify it (see below). The allowed set of input types is different for every semantic property type; see below for the full list of options.
 
* http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#Allowed_input_types_for_data_types
 
* http://www.mediawiki.org/wiki/Extension:Semantic_Forms_Inputs
 
 
|type=Special:Types/Text
 
|type=Special:Types/Text
|index=12
+
|index=
 
|sortPos=
 
|sortPos=
|primaryKey=false
+
|primaryKey=
|mandatory=false
+
|mandatory=
 
|namespace=
 
|namespace=
|size=50
+
|size=
|uploadable=false
+
|uploadable=
|defaultValue=
 
|inputType=dropdown
 
|allowedValues=text, combobox, dropdown, textarea, tree, datetime, datepicker, timepicker, datetimepicker, menuselect,two listboxes, datecheck, regexp, radiobutton, googlemaps
 
|values_from=
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:Property
 
|storemode=property
 
}}
 
[[Has type::Text]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Property allowedValues]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=allowedValues
 
|label=allowedValues
 
|documentation=There are two ways to specified allowed Values:
 
# https://semantic-mediawiki.org/wiki/Help:Special_property_Allows_value. <br>Use [[Property:Allows_value]] to see which values are allowed for certain properties
 
# http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#.27field.27_tag<br>values=possible values - Specifies a set of either possible values or autocompletion values (depending on the input type) that this field can have, overriding whatever set of values may have been set from the Semantic MediaWiki property. This set of values is separated by commas by default, but the delimiter can be modified using the delimiter= parameter.
 
 
 
If you specify any values method number 2 will be used here which might override any allowed Values specified with method number 1.
 
|type=Special:Types/Text
 
|index=13
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=50
 
|uploadable=false
 
 
|defaultValue=
 
|defaultValue=
 
|inputType=
 
|inputType=
Line 834: Line 335:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:Property
+
|topic=Concept:Person
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 840: Line 341:
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
==== [[Property:Property documentation]] ====
+
==== [[Property:Person diedAt]] ====
  
 
<pre>
 
<pre>
  
 
{{Property
 
{{Property
|name=documentation
+
|name=diedAt
|label=documentation
+
|label=diedAt
|documentation=The documentation for a property
+
|documentation=
 
|type=Special:Types/Text
 
|type=Special:Types/Text
|index=14
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=500
 
|uploadable=false
 
|defaultValue=
 
|inputType=textarea
 
|allowedValues=
 
|values_from=
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:Property
 
|storemode=property
 
}}
 
[[Has type::Text]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Property values_from]] ====
 
 
<pre>
 
 
{{Property
 
|name=values_from
 
|label=values from
 
|documentation=Specifies where to get the possible values to be displayed in a form from see
 
http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#.27field.27_tag
 
 
* values from property=property name - Similar to values=, but gets its values from the the set of all values that a certain SMW property points to.
 
* values from category=category name - Similar to values=, but gets its values from the names of all pages belonging to a specific category.
 
* values from concept=concept name - Similar to values=, but gets its values from the names of all pages belonging to a specific concept.
 
* values from namespace=namespace name - Similar to values=, but gets its values from the names of all pages belonging to a specific namespace. (To get values from the main namespace, use 'Main' for the namespace name, or just leave it blank.)
 
* values from url=URL identifier - Used only for autocompletion. Specifies that autocompletion should be based on the values retrieved from an outside URL; see Autocompleting on outside values for how to do this.
 
* values from external data=variable name - Used for autocompletion. You need to have theExternal Data extension installed to be able to use this parameter. It specifies that autocompletion should be based on the data retrieved from an outside source. A large number of data sources are supported, including web APIs, regular wiki pages, files on the local server, databases and LDAP directories. See Autocompletion using External Data.
 
|type=Special:Types/Code
 
|index=15
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=200
 
|uploadable=false
 
|defaultValue=
 
|inputType=textarea
 
|allowedValues=
 
|values_from=
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:Property
 
|storemode=property
 
}}
 
[[Has type::Code]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Property showInGrid]] ====
 
 
<pre>
 
 
{{Property
 
|name=showInGrid
 
|label=showInGrid
 
|documentation=I am true if this property is displayed in the default list of properties for my topic as
 
a column
 
|type=Special:Types/Boolean
 
|index=16
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=
 
|uploadable=false
 
|defaultValue=true
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=true
 
|isLink=false
 
|topic=Concept:Property
 
|storemode=property
 
}}
 
[[Has type::Boolean]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Property isLink]] ====
 
 
<pre>
 
 
{{Property
 
|name=isLink
 
|label=isLink
 
|documentation=true if this Property is derived form a Link. It will not be exported to SiDIF separately and automatically be added by the Property Generator
 
|type=Special:Types/Boolean
 
|index=17
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=
 
|uploadable=false
 
|defaultValue=
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=false
 
|isLink=false
 
|topic=Concept:Property
 
|storemode=property
 
}}
 
[[Has type::Boolean]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Property nullable]] ====
 
 
<pre>
 
 
{{Property
 
|name=nullable
 
|label=allow nulls?
 
|documentation=should nullvalues be allowed and value set to NULL when empty?
 
|type=Special:Types/Boolean
 
|index=18
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=
 
|uploadable=false
 
|defaultValue=false
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=false
 
|isLink=false
 
|topic=Concept:Property
 
|storemode=property
 
}}
 
[[Has type::Boolean]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Property topic]] ====
 
 
<pre>
 
 
{{Property
 
|name=topic
 
|label=topic
 
|documentation=
 
|type=Special:Types/Page
 
 
|index=
 
|index=
 
|sortPos=
 
|sortPos=
Line 1,005: Line 357:
 
|size=
 
|size=
 
|uploadable=
 
|uploadable=
|defaultValue=
 
|inputType=dropdown
 
|allowedValues=
 
|values_from=concept=Topic
 
|showInGrid=
 
|isLink=true
 
|topic=Concept:Property
 
|storemode=property
 
}}
 
[[Has type::Page]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
 
== Topic: SMW_Type ==
 
=== properties of SMW_Type ===
 
==== [[Property:SMW_Type type]] ====
 
 
<pre>
 
 
{{Property
 
|name=type
 
|label=type
 
|documentation=The Semantic MediaWiki type  without the prefix e.g. Text, Number, Boolean
 
|type=Special:Types/Text
 
|index=1
 
|sortPos=
 
|primaryKey=true
 
|mandatory=true
 
|namespace=
 
|size=50
 
|uploadable=false
 
 
|defaultValue=
 
|defaultValue=
 
|inputType=
 
|inputType=
Line 1,042: Line 363:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:SMW_Type
+
|topic=Concept:Person
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 1,048: Line 369:
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
==== [[Property:SMW_Type documentation]] ====
+
==== [[Property:Person yearDied]] ====
  
 
<pre>
 
<pre>
  
 
{{Property
 
{{Property
|name=documentation
+
|name=yearDied
|label=type
+
|label=yearDied
|documentation=The documentation of this Semantic Media Wiki type
+
|documentation=
 
|type=Special:Types/Text
 
|type=Special:Types/Text
|index=2
+
|index=
 
|sortPos=
 
|sortPos=
|primaryKey=false
+
|primaryKey=
|mandatory=false
+
|mandatory=
 
|namespace=
 
|namespace=
|size=50
+
|size=
|uploadable=false
+
|uploadable=
 
|defaultValue=
 
|defaultValue=
 
|inputType=
 
|inputType=
Line 1,070: Line 391:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:SMW_Type
+
|topic=Concept:Person
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 1,076: Line 397:
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
==== [[Property:SMW_Type helppage]] ====
+
==== [[Property:Person monthDied]] ====
  
 
<pre>
 
<pre>
  
 
{{Property
 
{{Property
|name=helppage
+
|name=monthDied
|label=type
+
|label=monthDied
|documentation=The url of the 'official' documentation page of this type
+
|documentation=
|type=Special:Types/URL
 
|index=3
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=50
 
|uploadable=false
 
|defaultValue=
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:SMW_Type
 
|storemode=property
 
}}
 
[[Has type::URL]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:SMW_Type typepage]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=typepage
 
|label=typepage
 
|documentation=The Semantic Media Wiki Special page for this specific type e.g. Special:Types/Text, Special:Types/Boolean, Special:Types/Date, Special:Types/Number, Special:Types/Page
 
|type=Special:Types/Page
 
|index=4
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=50
 
|uploadable=false
 
|defaultValue=
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:SMW_Type
 
|storemode=property
 
}}
 
[[Has type::Page]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:SMW_Type javaType]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=javaType
 
|label=java Type
 
|documentation=Java mapping of this type
 
 
|type=Special:Types/Text
 
|type=Special:Types/Text
|index=5
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=50
 
|uploadable=false
 
|defaultValue=
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:SMW_Type
 
|storemode=property
 
}}
 
[[Has type::Text]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:SMW_Type usedByProperties]] ====
 
 
<pre>
 
 
{{Property
 
|name=usedByProperties
 
|label=usedByProperties
 
|documentation=the properties having this type
 
|type=Special:Types/Page
 
 
|index=
 
|index=
 
|sortPos=
 
|sortPos=
Line 1,176: Line 413:
 
|size=
 
|size=
 
|uploadable=
 
|uploadable=
|defaultValue=
 
|inputType=dropdown
 
|allowedValues=
 
|values_from=concept=Property
 
|showInGrid=
 
|isLink=true
 
|topic=Concept:SMW_Type
 
|storemode=property
 
}}
 
[[Has type::Page]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
 
== Topic: Context ==
 
=== properties of Context ===
 
==== [[Property:Context name]] ====
 
 
<pre>
 
 
{{Property
 
|name=name
 
|label=name
 
|documentation=Name of the context
 
|type=Special:Types/Text
 
|index=1
 
|sortPos=1
 
|primaryKey=true
 
|mandatory=true
 
|namespace=
 
|size=80
 
|uploadable=false
 
 
|defaultValue=
 
|defaultValue=
 
|inputType=
 
|inputType=
Line 1,213: Line 419:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:Context
+
|topic=Concept:Person
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 1,219: Line 425:
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
==== [[Property:Context since]] ====
 
  
<pre>
+
== Topic: Family ==
 
+
=== properties of Family ===
{{Property
+
==== [[Property:Family name]] ====
|name=since
 
|label=since
 
|documentation=since when is this context available?
 
|type=Special:Types/Date
 
|index=2
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=
 
|uploadable=false
 
|defaultValue=
 
|inputType=datepicker
 
|allowedValues=
 
|values_from=
 
|showInGrid=true
 
|isLink=false
 
|topic=Concept:Context
 
|storemode=property
 
}}
 
[[Has type::Date]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Context master]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=master
 
|label=master
 
|documentation=what is the original master source of this context
 
|type=Special:Types/URL
 
|index=3
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=
 
|uploadable=false
 
|defaultValue=
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=true
 
|isLink=false
 
|topic=Concept:Context
 
|storemode=property
 
}}
 
[[Has type::URL]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
 
 
== Topic: TopicLink ==
 
=== properties of TopicLink ===
 
==== [[Property:TopicLink name]] ====
 
  
 
<pre>
 
<pre>
Line 1,285: Line 435:
 
|name=name
 
|name=name
 
|label=name
 
|label=name
|documentation=The name of the topic link
+
|documentation=
 
|type=Special:Types/Text
 
|type=Special:Types/Text
|index=1
+
|index=
 
|sortPos=
 
|sortPos=
|primaryKey=false
+
|primaryKey=
|mandatory=false
+
|mandatory=
 
|namespace=
 
|namespace=
|size=50
+
|size=
|uploadable=false
+
|uploadable=
 
|defaultValue=
 
|defaultValue=
 
|inputType=
 
|inputType=
Line 1,300: Line 450:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:TopicLink
+
|topic=Concept:Family
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 1,306: Line 456:
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
==== [[Property:TopicLink source]] ====
+
==== [[Property:Family weddingDate]] ====
  
 
<pre>
 
<pre>
  
 
{{Property
 
{{Property
|name=source
+
|name=weddingDate
|label=source
+
|label=weddingDate
|documentation=the source of a topic Link
 
|type=Special:Types/Page
 
|index=2
 
|sortPos=
 
|primaryKey=false
 
|mandatory=true
 
|namespace=
 
|size=50
 
|uploadable=false
 
|defaultValue=
 
|inputType=dropdown
 
|allowedValues=
 
|values_from=concept=Topic
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:TopicLink
 
|storemode=property
 
}}
 
[[Has type::Page]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:TopicLink sourceRole]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=sourceRole
 
|label=sourceRole
 
 
|documentation=
 
|documentation=
 
|type=Special:Types/Text
 
|type=Special:Types/Text
|index=3
+
|index=
 
|sortPos=
 
|sortPos=
|primaryKey=false
+
|primaryKey=
|mandatory=false
+
|mandatory=
 
|namespace=
 
|namespace=
|size=50
+
|size=
|uploadable=false
+
|uploadable=
 
|defaultValue=
 
|defaultValue=
 
|inputType=
 
|inputType=
Line 1,356: Line 478:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:TopicLink
+
|topic=Concept:Family
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 1,362: Line 484:
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
==== [[Property:TopicLink sourceMultiple]] ====
+
==== [[Property:Family weddingPlace]] ====
  
 
<pre>
 
<pre>
  
 
{{Property
 
{{Property
|name=sourceMultiple
+
|name=weddingPlace
|label=sourceMultiple
+
|label=weddingPlace
 
|documentation=
 
|documentation=
|type=Special:Types/Boolean
+
|type=Special:Types/Text
|index=4
+
|index=
 
|sortPos=
 
|sortPos=
|primaryKey=false
+
|primaryKey=
|mandatory=false
+
|mandatory=
 
|namespace=
 
|namespace=
|size=50
+
|size=
|uploadable=false
+
|uploadable=
 
|defaultValue=
 
|defaultValue=
 
|inputType=
 
|inputType=
Line 1,384: Line 506:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:TopicLink
+
|topic=Concept:Family
|storemode=property
 
}}
 
[[Has type::Boolean]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:TopicLink sourceDocumentation]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=sourceDocumentation
 
|label=source Doc
 
|documentation=Documentation for the source Role
 
|type=Special:Types/Text
 
|index=5
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=300
 
|uploadable=false
 
|defaultValue=
 
|inputType=textarea
 
|allowedValues=
 
|values_from=
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:TopicLink
 
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 1,418: Line 512:
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
==== [[Property:TopicLink target]] ====
+
==== [[Property:Family yearMarried]] ====
  
 
<pre>
 
<pre>
  
 
{{Property
 
{{Property
|name=target
+
|name=yearMarried
|label=target
+
|label=yearMarried
 
|documentation=
 
|documentation=
|type=Special:Types/Page
+
|type=Special:Types/Text
|index=6
+
|index=
 
|sortPos=
 
|sortPos=
|primaryKey=false
+
|primaryKey=
|mandatory=false
+
|mandatory=
 
|namespace=
 
|namespace=
|size=50
+
|size=
|uploadable=false
+
|uploadable=
 
|defaultValue=
 
|defaultValue=
 
|inputType=
 
|inputType=
Line 1,440: Line 534:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:TopicLink
+
|topic=Concept:Family
 
|storemode=property
 
|storemode=property
 
}}
 
}}
[[Has type::Page]]
+
[[Has type::Text]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
==== [[Property:TopicLink targetRole]] ====
+
==== [[Property:Family monthMarried]] ====
  
 
<pre>
 
<pre>
  
 
{{Property
 
{{Property
|name=targetRole
+
|name=monthMarried
|label=targetRole
+
|label=monthMarried
 
|documentation=
 
|documentation=
 
|type=Special:Types/Text
 
|type=Special:Types/Text
|index=7
+
|index=
 
|sortPos=
 
|sortPos=
|primaryKey=false
+
|primaryKey=
|mandatory=false
+
|mandatory=
 
|namespace=
 
|namespace=
|size=50
+
|size=
|uploadable=false
+
|uploadable=
 
|defaultValue=
 
|defaultValue=
 
|inputType=
 
|inputType=
Line 1,468: Line 562:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:TopicLink
+
|topic=Concept:Family
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 1,474: Line 568:
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
==== [[Property:TopicLink targetMultiple]] ====
+
==== [[Property:Family divorced]] ====
  
 
<pre>
 
<pre>
  
 
{{Property
 
{{Property
|name=targetMultiple
+
|name=divorced
|label=sourceMultiple
+
|label=divorced
 
|documentation=
 
|documentation=
|type=Special:Types/Boolean
 
|index=8
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=50
 
|uploadable=false
 
|defaultValue=
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:TopicLink
 
|storemode=property
 
}}
 
[[Has type::Boolean]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:TopicLink targetDocumentation]] ====
 
 
<pre>
 
 
{{Property
 
|name=targetDocumentation
 
|label=target Doc
 
|documentation=Documentation for the target Role
 
 
|type=Special:Types/Text
 
|type=Special:Types/Text
|index=9
+
|index=
 
|sortPos=
 
|sortPos=
|primaryKey=false
+
|primaryKey=
|mandatory=false
+
|mandatory=
|namespace=
 
|size=300
 
|uploadable=false
 
|defaultValue=
 
|inputType=textarea
 
|allowedValues=
 
|values_from=
 
|showInGrid=
 
|isLink=false
 
|topic=Concept:TopicLink
 
|storemode=property
 
}}
 
[[Has type::Text]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:TopicLink masterDetail]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=masterDetail
 
|label=masterDetail
 
|documentation=should the details be displayed in the same form and template?
 
If no
 
* for a 1:1 link there will be a linking attribute used and that can be selected.
 
* for a 1:n link a link to the list of neighbours will be displayed
 
if yes
 
* for a 1:1 link the details
 
* for a 1:n link
 
|type=Special:Types/Boolean
 
|index=10
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
 
|namespace=
 
|namespace=
 
|size=
 
|size=
|uploadable=false
+
|uploadable=
 
|defaultValue=
 
|defaultValue=
 
|inputType=
 
|inputType=
Line 1,558: Line 590:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:TopicLink
+
|topic=Concept:Family
 
|storemode=property
 
|storemode=property
 
}}
 
}}
[[Has type::Boolean]]
+
[[Has type::Text]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
 
+
==== [[Property:Family childOf]] ====
== Topic: Action ==
 
=== properties of Action ===
 
==== [[Property:Action name]] ====
 
  
 
<pre>
 
<pre>
  
 
{{Property
 
{{Property
|name=name
+
|name=childOf
|label=name
+
|label=childOf
|documentation=The name of the Action
+
|documentation=
 
|type=Special:Types/Text
 
|type=Special:Types/Text
|index=0
+
|index=
 
|sortPos=
 
|sortPos=
|primaryKey=true
+
|primaryKey=
|mandatory=true
+
|mandatory=
 
|namespace=
 
|namespace=
 
|size=
 
|size=
|uploadable=false
+
|uploadable=
 
|defaultValue=
 
|defaultValue=
 
|inputType=
 
|inputType=
Line 1,589: Line 618:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:Action
+
|topic=Concept:Family
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 1,595: Line 624:
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
==== [[Property:Action servicetype]] ====
+
==== [[Property:Family parentOf]] ====
  
 
<pre>
 
<pre>
  
 
{{Property
 
{{Property
|name=servicetype
+
|name=parentOf
|label=servicetype
+
|label=parentOf
|documentation=The type of the service
+
|documentation=
 
|type=Special:Types/Text
 
|type=Special:Types/Text
|index=1
+
|index=
|sortPos=
 
|primaryKey=false
 
|mandatory=true
 
|namespace=
 
|size=
 
|uploadable=false
 
|defaultValue=WikiTask
 
|inputType=radiobutton
 
|allowedValues=WikiTask
 
|values_from=
 
|showInGrid=true
 
|isLink=false
 
|topic=Concept:Action
 
|storemode=property
 
}}
 
[[Has type::Text]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Action service]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=service
 
|label=service
 
|documentation=The service to be used
 
|type=Special:Types/URL
 
|index=2
 
 
|sortPos=
 
|sortPos=
 
|primaryKey=
 
|primaryKey=
Line 1,645: Line 646:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:Action
+
|topic=Concept:Family
|storemode=property
 
}}
 
[[Has type::URL]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Action inputtype]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=inputtype
 
|label=inputtype
 
|documentation=What is the type of the input?
 
|type=Special:Types/Text
 
|index=3
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=
 
|uploadable=false
 
|defaultValue=Page
 
|inputType=radiobutton
 
|allowedValues=Query,Page,URL
 
|values_from=
 
|showInGrid=true
 
|isLink=false
 
|topic=Concept:Action
 
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 1,679: Line 652:
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
</pre>
==== [[Property:Action input]] ====
+
==== [[Property:Family husbandOf]] ====
  
 
<pre>
 
<pre>
  
 
{{Property
 
{{Property
|name=input
+
|name=husbandOf
|label=input
+
|label=husbandOf
|documentation=the decription of the input e.g. a page name, url or SMW ask query
+
|documentation=
|type=Special:Types/Code
 
|index=4
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=300
 
|uploadable=false
 
|defaultValue=
 
|inputType=textarea
 
|allowedValues=
 
|values_from=
 
|showInGrid=true
 
|isLink=false
 
|topic=Concept:Action
 
|storemode=property
 
}}
 
[[Has type::Code]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Action actionpage]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=actionpage
 
|label=actionpage
 
|documentation=What page will 'steer' this action?
 
|type=Special:Types/Page
 
|index=5
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=
 
|uploadable=false
 
|defaultValue=Property:Action actionpage
 
|inputType=
 
|allowedValues=
 
|values_from=
 
|showInGrid=true
 
|isLink=false
 
|topic=Concept:Action
 
|storemode=property
 
}}
 
[[Has type::Page]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Action output]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=output
 
|label=output
 
|documentation=where the output of the action should go
 
 
|type=Special:Types/Text
 
|type=Special:Types/Text
|index=6
+
|index=
 
|sortPos=
 
|sortPos=
 
|primaryKey=
 
|primaryKey=
Line 1,757: Line 674:
 
|showInGrid=
 
|showInGrid=
 
|isLink=false
 
|isLink=false
|topic=Concept:Action
+
|topic=Concept:Family
|storemode=property
 
}}
 
[[Has type::Text]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Action engine]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=engine
 
|label=engine
 
|documentation=the template engine to be used either [[Rythm]] or [[Freemarker]]
 
|type=Special:Types/Text
 
|index=7
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=
 
|uploadable=false
 
|defaultValue=rythm
 
|inputType=radiobutton
 
|allowedValues=rythm,freemarker
 
|values_from=
 
|showInGrid=true
 
|isLink=false
 
|topic=Concept:Action
 
|storemode=property
 
}}
 
[[Has type::Text]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Action author]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=author
 
|label=author
 
|documentation=the author of this action
 
|type=Special:Types/Page
 
|index=8
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=
 
|uploadable=false
 
|defaultValue=
 
|inputType=combobox
 
|allowedValues=
 
|values_from=namespace=User
 
|showInGrid=true
 
|isLink=false
 
|topic=Concept:Action
 
|storemode=property
 
}}
 
[[Has type::Page]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Action since]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=since
 
|label=since
 
|documentation=since when is this action available?
 
|type=Special:Types/Date
 
|index=9
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=
 
|uploadable=false
 
|defaultValue=
 
|inputType=datepicker
 
|allowedValues=
 
|values_from=
 
|showInGrid=true
 
|isLink=false
 
|topic=Concept:Action
 
|storemode=property
 
}}
 
[[Has type::Date]]
 
This is a Property with type {{#show: {{FULLPAGENAMEE}} | ?Property type#- }}
 
</pre>
 
==== [[Property:Action comment]] ====
 
 
 
<pre>
 
 
 
{{Property
 
|name=comment
 
|label=comment
 
|documentation=a comment for the action
 
|type=Special:Types/Text
 
|index=10
 
|sortPos=
 
|primaryKey=false
 
|mandatory=false
 
|namespace=
 
|size=400
 
|uploadable=false
 
|defaultValue=
 
|inputType=textarea
 
|allowedValues=
 
|values_from=
 
|showInGrid=false
 
|isLink=false
 
|topic=Concept:Action
 
 
|storemode=property
 
|storemode=property
 
}}
 
}}

Revision as of 21:16, 3 October 2017

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

login reset runtemplate -> GenerateProperties#result


[edit]

sidif

FamilyContext isA Context
"FamilyContext#sidif"is sidif of it
Person needs Properties
Family needs Properties

metamodel sidif

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]

2017-10-03T19:16:05Z 2 Topics need Properties to be generated

Topic: Person

properties of Person

Property:Person name


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

Property:Person nobleTitle


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

Property:Person born


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

Property:Person yearBorn


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

Property:Person monthBorn


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

Property:Person birthPlace


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

Property:Person died


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

Property:Person diedAt


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

Property:Person yearDied


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

Property:Person monthDied


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

Topic: Family

properties of Family

Property:Family name


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

Property:Family weddingDate


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

Property:Family weddingPlace


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

Property:Family yearMarried


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

Property:Family monthMarried


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

Property:Family divorced


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

Property:Family childOf


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

Property:Family parentOf


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

Property:Family husbandOf


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