Difference between revisions of "Help:Uncertain information"

From Security Vision
Jump to: navigation, search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
=Qualifiers with Record (datatype) Property=
+
__TOC__
Previously qualifiers and other statements about statements were implemented by [[User:Ruben]] using Properties with Record type, such as [[Property:Potentially used by]] with fields [[Property:Institution]], [[Property:Information Certainty]], [[Property:Citation reference]], [[Property:Description]]
 
  
Example:
+
=Forms with Uncertain information section=
[[Potentially used by::TestInstitution;Speculative]]
+
'''In Forms+templates Uncertain information is expressed in a"Uncertain information" section.
 +
'''
  
Deployments Form and Template invokes [[Template:InstitutionCertainty]] to create the record.
+
The "Uncertain information" section contains an invocation of the '''[[Template:Subobject Uncertain Information]]''' ie from [[Form:Deployments]]
 +
<pre>
 +
== Uncertain information ==
  
 +
{{{for template|Subobject Uncertain Information|multiple|add button text=Add uncertain information}}}
 +
* '''Field:''' {{{field|Propertyname|input type=dropdown|max values=1|values=City,Country,Managed by,Used by,Involved Entities,Datasets Used|mandatory}}}
 +
* '''Value:''' {{{field|value|input type=text|mandatory}}}
 +
* '''Certainty:''' {{{field|Certainty|default=Rumoured|input type=dropdown|values=Rumoured,Speculative|mandatory}}}
 +
* '''Citekey of source:''' {{{field|Citekey|input type=combobox|values={{#ask:[[-Citation resource::+]]|?Citation key=|mainlabel=-|limit=10000|order by=Citation key}} }}}
 +
* '''Description:''' {{{field|Description}}}
 +
{{{end template}}}
 +
</pre>
 +
* in the  ''Field:'' field the "values=" parameter determines the option of uncertain field/property
 +
* the ''Value:'' field determines the the value for a given the chosen field
 +
* the ''Certainty'' field defines the value of certainty
  
  
=Form with Uncertain information section=
+
* the "for template" multi sub-form allows for multiple "Uncertain fields" to be created in a single form page
 +
* the [[Template:Subobject Uncertain Information]] creates a [https://www.semantic-mediawiki.org/wiki/Subobject SMW subobject] with the [[:Category:Uncertain Information]]
 +
* The contents of '''a subobject are not visible in the page which holds it, but can be displayed with a query''', which is done in the [[Template:Subobject Uncertain Information]]
 +
** Note: '''A compound query, is used instead of an ask query''', to display the values (via query) of the Uncertain Information subobject, since it uses the Cite extension for citation, hence the query has to be done, both the the suboject and references (read more about querying Cite values in https://github.com/SemanticMediaWiki/SemanticCite/issues/95)
  
* fields that might include uncertain information are double in a section "Uncertain Information"
+
===Uses===
* there a multiple subform is used where the different Uncertain fields are able to be chose
+
* [[Form:Deployments]]
* for each a record property is invoked: [[Property:Uncertain information]] OR a subobject with category Uncertain Information
+
* [[Form:Dataset]]
  
trying with:
+
===Examples===
* [[Form:Prototype Uncertain Information]]
+
* [[TestDataset]]
* [[Template:Prototype Uncertain Information]]
 
* [[Template:Subobject Uncertain Information]]
 
* [[:Category:Prototype Uncertain Information]] - Temporary
 
* [[:Category:Uncertain Information]]
 
  
= How to turn single property into record=
+
=Qualifiers with Record (datatype) Property=
[[Property:City]] will be integrated into Record [[Property:City certainty]]  
+
Previously qualifiers and other statements about statements were implemented by [[User:Ruben]] using Properties with Record type, such as [[Property:Potentially used by]] with fields [[Property:Institution]], [[Property:Information Certainty]], [[Property:Citation reference]], [[Property:Description]]
  
[[Property:City certainty]] will have <nowiki>[[Has fields::City;Information Certainty;CiteRef;Description]]</nowiki> or <nowiki>[[Has fields::City;Information Certainty]]</nowiki>
+
Example:
 +
<nowiki>[[Potentially used by::TestInstitution;Speculative]]</nowiki>
  
to include it in a form, it is not needed to use sub form, since there wont be a need to include different Cities, with different levels of certainty
+
Deployments Form and Template invokes [[Template:InstitutionCertainty]] to create the record.
 
 
hence something like
 
<source>
 
{| class="formtable"
 
|-
 
! City:
 
| {{{field|City|input type=combobox}}} {{{field|City_Certainty|dropdown}}}
 
|}
 
</source>
 

Latest revision as of 10:41, 6 May 2022

Forms with Uncertain information section[ ]

In Forms+templates Uncertain information is expressed in a"Uncertain information" section.

The "Uncertain information" section contains an invocation of the Template:Subobject Uncertain Information ie from Form:Deployments

== Uncertain information ==

{{{for template|Subobject Uncertain Information|multiple|add button text=Add uncertain information}}}
* '''Field:''' {{{field|Propertyname|input type=dropdown|max values=1|values=City,Country,Managed by,Used by,Involved Entities,Datasets Used|mandatory}}}
* '''Value:''' {{{field|value|input type=text|mandatory}}}
* '''Certainty:''' {{{field|Certainty|default=Rumoured|input type=dropdown|values=Rumoured,Speculative|mandatory}}}
* '''Citekey of source:''' {{{field|Citekey|input type=combobox|values={{#ask:[[-Citation resource::+]]|?Citation key=|mainlabel=-|limit=10000|order by=Citation key}} }}}
* '''Description:''' {{{field|Description}}}
{{{end template}}}
  • in the Field: field the "values=" parameter determines the option of uncertain field/property
  • the Value: field determines the the value for a given the chosen field
  • the Certainty field defines the value of certainty


Uses[ ]

Examples[ ]

Qualifiers with Record (datatype) Property[ ]

Previously qualifiers and other statements about statements were implemented by User:Ruben using Properties with Record type, such as Property:Potentially used by with fields Property:Institution, Property:Information Certainty, Property:Citation reference, Property:Description

Example: [[Potentially used by::TestInstitution;Speculative]]

Deployments Form and Template invokes Template:InstitutionCertainty to create the record.