Difference between revisions of "User:Andre"

From Security Vision
Jump to: navigation, search
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Name::Andre]] [[Name::Castro]]
 
  
=Statements about statements: levels of certainty=
+
[[Special:Browse/ABIS_(Deployment,_Croatia)#_e79cd79ebb3f6de7e9a43ac33a5fabca]]
[[Property:Potentially_used_by]] is of type [https://www.semantic-mediawiki.org/wiki/Help:Type_Record Record]  
 
  
<blockquote>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.</blockquote>
+
Pages with research & technical notes
  
[https://www.semantic-mediawiki.org/wiki/Help:Type_Record/Searching_a_record Searching_a_record]
+
* [[Help:Statements About Statements]]  
 
+
* [[Help:Cite]]
{{#ask: [[Potentially used by::+]]
+
* [[Help:Unknown Entities Pages]]
|?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
 
}}
 
 
 
'''2 new records'''
 
 
 
[[Potentially used by::Test Institution;Rumoured;thelocalCopenhagenPoliceCalls2019;Test Description]]
 
 
 
[[Potentially used by::Test Institution2;Documented;thelocalCopenhagenPoliceCalls2019;Test Description2]]
 
 
 
 
 
==Issue 1: when more than 1 <code>Potentially used by</code> exist in the same page==
 
As shown in the query below when a page has more than 1 <code>Potentially used by</code> entries, the entries are joint into 1 single row - making it hard to separate the statements, which becomes an issue when more than one <code>Potentially used by</code> 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
 
 
 
 
 
{{#ask: [[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
 
|limit=50
 
|offset=0
 
|link=all
 
|sort=
 
|order=asc
 
|headers=show
 
|mainlabel=-
 
|searchlabel=... further results
 
|class=sortable wikitable smwtable
 
}}
 
 
 
 
 
{{#ask: [[Has Funding::+]]
 
|?Has Funding.Has Budget=Has Budget
 
|?Has Funding.Institution=Institution
 
|?Has Funding.Citation reference=Citation reference
 
|format=broadtable
 
|limit=50
 
|offset=0
 
|link=all
 
|sort=
 
|order=asc
 
|headers=show
 
|searchlabel=... further results
 
|class=sortable wikitable smwtable
 
}}
 
 
 
{{#ask: [[Studied At::+]]
 
|?Studied At.Position=Position
 
|?Studied At.Institution=Institution
 
|?Studied At.Start Date=Start Date
 
|?Studied At.End Date=End Date
 
|format=broadtable
 
|limit=50
 
|offset=0
 
|link=all
 
|sort=
 
|order=asc
 
|headers=show
 
|searchlabel=... further results
 
|class=sortable wikitable smwtable
 
}}
 
 
 
===Alternative: [https://www.semantic-mediawiki.org/wiki/Subobject subobject]===
 
 
 
<pre>
 
{{#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
 
}}
 
</pre>
 
 
 
{{#subobject:
 
|Institution=Test Institution1
 
|Information Certainty=Rumoured
 
|Citation reference=thelocalCopenhagenPoliceCalls2019
 
|Description=Test Description1
 
|@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: {{FULLPAGENAME}}'''
 
<pre>{{#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
 
}}
 
</pre>
 
 
 
{{#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===
 
in [[Form:Deployments]]
 
 
 
<pre>
 
 
 
! 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}}}
 
 
 
</pre>
 
 
 
Would be changed by swapping the number vars with named vars:
 
<pre>
 
 
 
! 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}}}
 
 
 
</pre>
 
in [[Template:PotentiallyUsedBy]] - which creates the record
 
 
 
<pre>
 
[[Potentially used by::{{{1|}}};{{{2|}}};{{{3|}}};{{{4|}}}]]
 
<includeonly>
 
<!--[[{{{1|}}}]] ({{{2|}}}, {{{3|}}}-{{{4|}}})-->
 
<includeonly>
 
</pre>
 
 
 
would be changed with the subobject template
 
 
 
 
 
<pre>
 
<includeonly>
 
{{#subobject:
 
|Institution={{{Institution|}}}
 
|Information Certainty={{{Certainty|}}}
 
|Citation reference={{{Citekey|}}}
 
|Description={{{Description|}}}
 
|@category=Used By
 
}}
 
<includeonly>
 
</pre>
 
 
 
 
 
 
 
 
 
In templates ie. [[Template:Deployments]]
 
 
 
<pre>
 
|-
 
! used by
 
| {{#arraymap:{{{used by|}}}|,|x|[[used by::x]]}}
 
|-
 
! Potentially used by
 
| {{{Potentially used by|}}}
 
</pre>
 
 
 
Needs to be swapped by a query
 
 
 
 
 
===subobject queries===
 
 
 
 
 
<pre>
 
{{#ask:
 
[[Category:Deployments]]
 
|? = Entry name
 
|? Country
 
|? City
 
|? Software Deployed|Technology
 
|?Software Deployed.Developped by (institutions)=Software Developer
 
|?Software Deployed.Technology Type
 
|? Deployment Type
 
|? Cited references
 
|headers=plain
 
|mainlabel=-
 
}}
 
</pre>
 
 
 
 
 
 
 
===What Properties have type Record?===
 
'''and might need to be replaced with subobjects'''
 
 
 
{{#ask: [[Has type::Record]][[Property:+]]|format=broadtable}}
 
 
 
 
 
 
 
==Issue 2:  values of prop <code>Citation reference</code>==
 
 
 
The special [[Property:Citation reference]] seems to be doing some, which makes the values of the citations disapear from the queries
 
 
 
===Alternative===
 
* like in [[Property:Potentially_used_by_test]] use a different property, such as [[Property:Citation Reference]] to mention the reference from semantic cite
 
* look further into semantic cite and the use of [[Property:Citation reference]]
 

Latest revision as of 14:55, 6 May 2022