User: Andre

From Security Vision
Revision as of 12:29, 18 January 2022 by Andre (talk | contribs)
Jump to: navigation, search

Statements about statements: levels of certainty[edit | ]

Property:Potentially_used_by is of type Record

The datatype record is used for property values that consist of a short list of values of other datatypes. For each property that uses this datatype, the order and type of the individual fields of the record is fixed, based on a declaration with special property "Has fields" on the property page.

Searching_a_record

 Potentially used byInstitution Information Certainty Citation referenceThis property is a special property in this wiki. Description 
AFR at Brøndby IFBrøndby IF (?, , descritption value)
Amdocs (?, , descritption value)
Brøndby IF
Amdocs
 
 
descritption value
descritption value
IFRS (Interpol)Interpol (Documented, , p.149-150)InterpolDocumented p.149-150
Reporty App Nice (Stopped)Nice Municipal Police (Documented, , ?)Nice Municipal PoliceDocumented 
Statements About StatementsTest Institution (Rumoured, , Test Description)
Test Institution2 (Documented, , Test Description2)
Test Institution
Test Institution2
Rumoured
Documented
 
 
Test Description
Test Description2

2 new records

Test Institution (Rumoured, , Test Description)

Test Institution2 (Documented, , Test Description2)


Issue 1: when more than 1 Potentially used by exist in the same page[edit | ]

As shown in the query below when a page has more than 1 Potentially used by entries, the entries are joint into 1 single row - making it hard to separate the statements, which becomes an issue when more than one Potentially used by statement is made in the same page: they are not separate. See discussion in https://www.semantic-mediawiki.org/wiki/Help:Type_Record/Record_vs._subobject


Institution Information Certainty Citation referenceThis property is a special property in this wiki. Description 
Brøndby IF
Amdocs
 
 
descritption value
descritption value
InterpolDocumented p.149-150
Nice Municipal PoliceDocumented 
Test Institution
Test Institution2
Rumoured
Documented
 
 
Test Description
Test Description2


 Has Budget Institution Citation referenceThis property is a special property in this wiki. 
Project KICK331,100 euro390,698 dollar <br />
33,110 euro39,069.8 dollar <br />
132,440 euro156,279.2 dollar <br />
66,200 euro78,116 dollar <br />
Brugge Municipality
Province West-Flanders
ERDF
Hermes Foundation
 
 
 
 


Alternative: subobject[edit | ]

{{#subobject:
 |Institution=Test Institution;
 |Information Certainty=Rumoured
 |Citation reference=thelocalCopenhagenPoliceCalls2019
 |Description=Test Description
 |@category=Used By
}}

{{#subobject:
 |Institution=Test Institution2
 |Information Certainty=Speculative
 |Citation reference=sirgmetsSummaryReportProject2021
 |Description=Test Description2
 |@category=Used By
}}




Ask for all the Subobject of type:Category:Used By this page: User:Andre

{{#ask: [[-Has subobject::{{FULLPAGENAME}}]][[Category:Used By]]
 |?Institution
 |?Information Certainty
 |?Citation reference
 |?Description
 |format=broadtable
 |limit=50
 |offset=0
 |link=all
 |sort=
 |order=asc
 |headers=show
}}


changes required to use subobjects[edit | ]

in Form:Deployments


! Used by (new format)
| {{{field|Potentially used by|holds template|autocomplete on category=Institution}}}

...

{{{for template|PotentiallyUsedBy|multiple|embed in field=Deployments[Potentially used by]}}}
'''Institution:''' {{{field|1|property=Institution|input type=combobox}}}

'''Certainty:''' {{{field|2|property=Certainty|input type=tokens}}}

'''Citekey of source:''' {{{field|3|property=Source}}}
'''Description:''' {{{field|4|property=Description}}}
{{{end template}}}

Would be changed by swapping the number vars with named vars:


! Used by (new format)
| {{{field|Potentially used by|holds template|autocomplete on category=Institution}}}

...

{{{for template|PotentiallyUsedBy|multiple|embed in field=Deployments[Potentially used by]}}}
'''Institution:''' {{{field|Institution|property=Institution|input type=combobox}}}

'''Certainty:''' {{{field|Certainty|property=Certainty|input type=tokens}}}

'''Citekey of source:''' {{{field|Citekey|property=Source}}}
'''Description:''' {{{field|Description|property=Description}}}
{{{end template}}}

in Template:PotentiallyUsedBy - which creates the record

[[Potentially used by::{{{1|}}};{{{2|}}};{{{3|}}};{{{4|}}}]]
<includeonly>
<!--[[{{{1|}}}]] ({{{2|}}}, {{{3|}}}-{{{4|}}})-->
<includeonly>

would be changed with the subobject template


<includeonly>
{{#subobject:
 |Institution={{{Institution|}}}
 |Information Certainty={{{Certainty|}}}
 |Citation reference={{{Citekey|}}}
 |Description={{{Description|}}}
 |@category=Used By
}}
<includeonly>



In templates ie. Template:Deployments

|-
! used by 
| {{#arraymap:{{{used by|}}}|,|x|[[used by::x]]}}
|-
! Potentially used by
| {{{Potentially used by|}}}

Needs to be swapped by a query

What Properties have type Record?[edit | ]

and might need to be replaced with subobjects

 
Has Funding
Has event
Potentially used by
Studied At

Issue 2: values of prop Citation reference[edit | ]

The special Property:Citation reference seems to be doing some, which makes the values of the citations disapear from the queries

Alternative[edit | ]