Difference between revisions of "Form:Concept"
From TDWG Terms Wiki
m |
m (concept type: +annotation property) |
||
Line 33: | Line 33: | ||
THEN property exists-->|{{#ifexist: Category:{{PAGENAME}}<!-- | THEN property exists-->|{{#ifexist: Category:{{PAGENAME}}<!-- | ||
THEN both property and class exists-->|<!-- | THEN both property and class exists-->|<!-- | ||
− | -->{{{field|concept type|mandatory|input type=dropdown|values=class,property,value,data type,undecided|default=undecided}}}<!-- | + | -->{{{field|concept type|mandatory|input type=dropdown|values=class,property,annotation property,value,data type,undecided|default=undecided}}}<!-- |
-->{{#info: message=The semantic web distinguishes between different kinds of concepts (class, property, instance/value, etc.) You can create concepts and leave this decision open (select "undecided"). Another worker can then add the information at a later time.|icon=warning}}<!-- | -->{{#info: message=The semantic web distinguishes between different kinds of concepts (class, property, instance/value, etc.) You can create concepts and leave this decision open (select "undecided"). Another worker can then add the information at a later time.|icon=warning}}<!-- | ||
-->Warning: Both a [{{fullurl: Category:{{PAGENAME}} }} class-] and [{{fullurl: Property:{{PAGENAME}} }} property page] exist. A concept should normally only be one of Property, Class, or Value. Please delete the erroneous class or property page.<!-- | -->Warning: Both a [{{fullurl: Category:{{PAGENAME}} }} class-] and [{{fullurl: Property:{{PAGENAME}} }} property page] exist. A concept should normally only be one of Property, Class, or Value. Please delete the erroneous class or property page.<!-- | ||
ELSE only property (no class)-->|<!-- | ELSE only property (no class)-->|<!-- | ||
− | -->{{{field|concept type|mandatory|input type=dropdown|values=class,property,value,data type,undecided|default=property|show on select=class=>id_is_class;property=>id_is_property}}}<!-- | + | -->{{{field|concept type|mandatory|input type=dropdown|values=class,property,value,data type,undecided|default=property|show on select=class=>id_is_class;annotation property=>id_is_annotation_property;property=>id_is_property}}}<!-- |
-->{{#info: message=The semantic web distinguishes between different kinds of concepts (class, property, instance/value, etc.) You can create concepts and leave this decision open (select "undecided"). Another worker can then add the information at a later time.}}<!-- | -->{{#info: message=The semantic web distinguishes between different kinds of concepts (class, property, instance/value, etc.) You can create concepts and leave this decision open (select "undecided"). Another worker can then add the information at a later time.}}<!-- | ||
--><span id="id_class" style="display:none;">[[:Category:{{PAGENAME}} | Create Category:{{PAGENAME}}]]. Warning: You have selected “Class”, but a property page ([{{fullurl: Property:{{PAGENAME}} }} Property:{{PAGENAME}}]) already exists. “Concept type=property” might be correct.</span><!-- | --><span id="id_class" style="display:none;">[[:Category:{{PAGENAME}} | Create Category:{{PAGENAME}}]]. Warning: You have selected “Class”, but a property page ([{{fullurl: Property:{{PAGENAME}} }} Property:{{PAGENAME}}]) already exists. “Concept type=property” might be correct.</span><!-- | ||
--><span id="id_is_property" style="display:none;">→ [{{fullurl:Property:{{PAGENAME}} }} Property:{{PAGENAME}}]</span><!-- | --><span id="id_is_property" style="display:none;">→ [{{fullurl:Property:{{PAGENAME}} }} Property:{{PAGENAME}}]</span><!-- | ||
+ | --><span id="id_is_annotation_property" style="display:none;">→ [{{fullurl:Property:{{PAGENAME}} }} Property:{{PAGENAME}}]</span><!-- | ||
-->}}<!-- | -->}}<!-- | ||
ELSE no property | ELSE no property | ||
-->|{{#ifexist: Category:{{PAGENAME}}<!-- | -->|{{#ifexist: Category:{{PAGENAME}}<!-- | ||
− | THEN only class exists-->|{{{field|concept type|mandatory|input type=dropdown|values=class,property,value,data type,undecided|default=class|show on select=class=>id_is_class;property=>id_is_property}}}<!-- | + | THEN only class exists-->|{{{field|concept type|mandatory|input type=dropdown|values=class,property,value,data type,undecided|default=class|show on select=class=>id_is_class;annotation property=>id_is_annotation_property;property=>id_is_property}}}<!-- |
-->{{#info: message=The semantic web distinguishes between different kinds of concepts (class, property, instance/value, etc.) You can create concepts and leave this decision open (select "undecided"). Another worker can then add the information at a later time.}}<!-- | -->{{#info: message=The semantic web distinguishes between different kinds of concepts (class, property, instance/value, etc.) You can create concepts and leave this decision open (select "undecided"). Another worker can then add the information at a later time.}}<!-- | ||
--><span id="id_is_class" style="display:none;">→ [{{fullurl: Category:{{PAGENAME}} }} Category:{{PAGENAME}}]</span><!-- | --><span id="id_is_class" style="display:none;">→ [{{fullurl: Category:{{PAGENAME}} }} Category:{{PAGENAME}}]</span><!-- | ||
--><span id="id_is_property" style="display:none;"><!-- | --><span id="id_is_property" style="display:none;"><!-- | ||
+ | -->{{#formlink: form=Property setting | ||
+ | |target=Property:{{PAGENAME}} | ||
+ | |link type=link | ||
+ | |link text=Create “Property:{{PAGENAME}}” | ||
+ | |query string=Property setting[has type]=String{{ | ||
+ | #if: {{#pos: {{PAGENAME}}|:}}<!-- prefix:name in page name | ||
+ | THEN-->|&Property setting[imported from]={{#explode: {{PAGENAME}} |:|0 }}<!-- | ||
+ | ELSE-->|<!-- additional no query string | ||
+ | -->}} }}<!-- end if, end formlink | ||
+ | --></span><!-- | ||
+ | --><span id="id_is_annotation_property" style="display:none;"><!-- | ||
-->{{#formlink: form=Property setting | -->{{#formlink: form=Property setting | ||
|target=Property:{{PAGENAME}} | |target=Property:{{PAGENAME}} | ||
Line 60: | Line 72: | ||
--></span><!-- | --></span><!-- | ||
− | ELSE neither class nor property found -->|{{{field|concept type|mandatory|input type=dropdown|values=class,property,value,data type,undecided|default=undecided|show on select=class=>id_is_class;property=>id_is_property}}}<!-- | + | ELSE neither class nor property found -->|{{{field|concept type|mandatory|input type=dropdown|values=class,property,value,data type,undecided|default=undecided|show on select=class=>id_is_class;annotation property=>id_is_annotation_property;property=>id_is_property}}}<!-- |
-->{{#info: message=The semantic web distinguishes between different kinds of concepts (class, property, instance/value, etc.) You can create concepts and leave this decision open (select "undecided"). Another worker can then add the information at a later time.}}<!-- | -->{{#info: message=The semantic web distinguishes between different kinds of concepts (class, property, instance/value, etc.) You can create concepts and leave this decision open (select "undecided"). Another worker can then add the information at a later time.}}<!-- | ||
--><span id="id_is_class" style="display:none;">[[:Category:{{PAGENAME}}| Create Category:{{PAGENAME}}]]</span><!-- | --><span id="id_is_class" style="display:none;">[[:Category:{{PAGENAME}}| Create Category:{{PAGENAME}}]]</span><!-- | ||
--><span id="id_is_property" style="display:none;">{{#formlink: form=Property setting | --><span id="id_is_property" style="display:none;">{{#formlink: form=Property setting | ||
+ | |target=Property:{{PAGENAME}} | ||
+ | |link type=link | ||
+ | |link text=Create “Property:{{PAGENAME}}” | ||
+ | |query string=Property setting[has type]=String&Property setting[imported from]=<!-- | ||
+ | -->{{#if: {{#pos: {{PAGENAME}}|:}}<!-- prefix:name, assume prefix refers to import page | ||
+ | -->|{{PAGENAME}}<!-- | ||
+ | ELSE Page has no prefix:name | ||
+ | -->|check SMW import<!-- | ||
+ | -->}} }}<!-- end if, end formlink | ||
+ | --></span><!-- | ||
+ | --><span id="id_is_annotation_property" style="display:none;">{{#formlink: form=Property setting | ||
|target=Property:{{PAGENAME}} | |target=Property:{{PAGENAME}} | ||
|link type=link | |link type=link |
Revision as of 11:58, 5 December 2012
This is the "Concept" form. To create a page with this form, enter the page name below. If a page with that name already exists, this page will be opened in the form.