Help: Statements About Statements

From Security Vision
Jump to: navigation, search

Statements about statements: levels of certainty[ ]

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.


How to Search a Record[ ]

SMW documentation on Searching_a_record


All pages with Potentially used by property and their (Record) "subproperty"

{{#ask: [[Potentially used by::+]]
 |?Potentially used by
 |?Potentially used by.Institution=Institution
 |?Potentially used by.Information Certainty=Information Certainty
 |?Potentially used by.Citation reference=Citation reference
 |?Potentially used by.Description=Description
 |format=broadtable
}}
 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


Potentially used by property values in Category:Deployments pages

{{#ask: [[Potentially used by::+]][[Category:Deployments]] 
 |?Potentially used by
 |?Potentially used by.Institution=Institution
 |?Potentially used by.Information Certainty=Information Certainty
 |?Potentially used by.Citation reference=Citation reference
 |?Potentially used by.Description=Description
 |format=broadtable
}}
 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 


Potentially used by property values in page AFR at Brøndby IF

{{#ask: [[Potentially used by::+]][[AFR at Brøndby IF]] 
 |?Potentially used by
 |?Potentially used by.Institution=Institution
 |?Potentially used by.Information Certainty=Information Certainty
 |?Potentially used by.Citation reference=Citation reference
 |?Potentially used by.Description=Description
 |format=broadtable
}}
 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

query link

Resulting JSON:

  • note that "Potentially used by": as list, with each of the results as a separate item
{
    "printrequests": [ ],
    "results": {
        "AFR at Brøndby IF": {
            "printouts": {
                "Potentially used by": [
                    {
                        "Institution": {
                            "label": "Institution",
                            "key": "Institution",
                            "typeid": "_wpg",
                            "item": [
                                {
                                    "fulltext": "Amdocs",
                                    "fullurl": "https://www.securityvision.io/wiki/index.php/Amdocs",
                                    "namespace": 0,
                                    "exists": "",
                                    "displaytitle": ""
                                }
                            ]
                        },
                        "Information Certainty": {
                            "label": "Information Certainty",
                            "key": "Information_Certainty",
                            "typeid": "_txt",
                            "item": [
                                "Speculative"
                            ]
                        },
                        "Citation reference": {
                            "label": "Citation reference",
                            "key": "__sci_cite_reference",
                            "typeid": "_sci_ref",
                            "item": [
                                "citekeyvalue"
                            ]
                        },
                        "Description": {
                            "label": "Description",
                            "key": "Description",
                            "typeid": "_wpg",
                            "item": [
                                {
                                    "fulltext": "Descritption value",
                                    "fullurl": "https://www.securityvision.io/wiki/index.php/Descritption_value",
                                    "namespace": 0,
                                    "exists": "",
                                    "displaytitle": ""
                                }
                            ]
                        }
                    },
                    {
                        "Institution": {
                            "label": "Institution",
                            "key": "Institution",
                            "typeid": "_wpg",
                            "item": [
                                {
                                    "fulltext": "Brøndby IF",
                                    "fullurl": "https://www.securityvision.io/wiki/index.php/Br%C3%B8ndby_IF",
                                    "namespace": 0,
                                    "exists": "1",
                                    "displaytitle": ""
                                }
                            ]
                        },
                        "Information Certainty": {
                            "label": "Information Certainty",
                            "key": "Information_Certainty",
                            "typeid": "_txt",
                            "item": [
                                "Documented"
                            ]
                        },
                        "Citation reference": {
                            "label": "Citation reference",
                            "key": "__sci_cite_reference",
                            "typeid": "_sci_ref",
                            "item": [
                                "panasonicPanasonicFacialRecognition2019"
                            ]
                        },
                        "Description": {
                            "label": "Description",
                            "key": "Description",
                            "typeid": "_wpg",
                            "item": [
                                {
                                    "fulltext": "Descritption value",
                                    "fullurl": "https://www.securityvision.io/wiki/index.php/Descritption_value",
                                    "namespace": 0,
                                    "exists": "",
                                    "displaytitle": ""
                                }
                            ]
                        }
                    }
                ],
                "Institution": [
                    {
                        "fulltext": "Amdocs",
                        "fullurl": "https://www.securityvision.io/wiki/index.php/Amdocs",
                        "namespace": 0,
                        "exists": "",
                        "displaytitle": ""
                    },
                    {
                        "fulltext": "Brøndby IF",
                        "fullurl": "https://www.securityvision.io/wiki/index.php/Br%C3%B8ndby_IF",
                        "namespace": 0,
                        "exists": "1",
                        "displaytitle": ""
                    }
                ],
                "Information Certainty": [
                    "Speculative",
                    "Documented"
                ],
                "Citation reference": [
                    "citekeyvalue",
                    "panasonicPanasonicFacialRecognition2019"
                ],
                "Description": [
                    {
                        "fulltext": "Descritption value",
                        "fullurl": "https://www.securityvision.io/wiki/index.php/Descritption_value",
                        "namespace": 0,
                        "exists": "",
                        "displaytitle": ""
                    },
                    {
                        "fulltext": "Descritption value",
                        "fullurl": "https://www.securityvision.io/wiki/index.php/Descritption_value",
                        "namespace": 0,
                        "exists": "",
                        "displaytitle": ""
                    }
                ]
            },
            "fulltext": "AFR at Brøndby IF",
            "fullurl": "https://www.securityvision.io/wiki/index.php/AFR_at_Br%C3%B8ndby_IF",
            "namespace": 0,
            "exists": "1",
            "displaytitle": ""
        }
    },
    "serializer": "SMW\\Serializers\\QueryResultSerializer",
    "version": 2,
    "rows": 1
}


2 test 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[ ]

This issue and its alternative has been resolved, by the fact the queries to Record, in json, return the entries of "Potentially used by": as list, with each of the results as a separate item Andre (talk) 14:54, 18 January 2022 (CET)


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[ ]

{{#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: Help:Statements About Statements

{{#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
}}
 InstitutionInformation CertaintyCitation referenceThis property is a special property in this wiki.Description
Statements About StatementsTest Institution2Speculative Test Description2
Statements About StatementsTest Institution1Rumoured Test Description1

changes required to use subobjects[ ]

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


subobject queries[ ]

{{#ask: 
[[Category:Deployments]]
|? = Entry name
|? Country
|? City
|? Software Deployed|Technology
 |?Software Deployed.Developed by=Software Developer
 |?Software Deployed.Technology Type
|? Deployment Type
|? Cited references
|headers=plain
|mainlabel=- 
}}


What Properties have type Record?[ ]

and might need to be replaced with subobjects

 
Has Funding
Has event
Potentially used by
Studied At

--- By citebot ---

This page uses the following references:

  • Security_Vision_Wiki_References#_SCITE0c45db0784fd92c246a44a25075e6244

--- end citebot ---