Sandbox/prop tree test

From Ring of Brodgar
Jump to navigation Jump to search

Some general (anonimus)subobject properties test setup

Used properties:
:[[property:Test_Page_3]]
:[[property:Test_Page_2]]
:[[property:Test_Text_3]]
:[[property:Test_Text_2]]

<!--
-->{{#subobject:| Test_Page_3 = Parent_1 | Test_Page_2 = Child_1a }}<!--
-->{{#subobject:| Test_Page_3 = Parent_1 | Test_Page_2 = Child_1b }}<!--
-->{{#subobject:| Test_Page_3 = Parent_2 | Test_Page_2 = Child_2a, Child_2b | +sep= }}<!--

-->{{#subobject:| Test_Text_3 = Parent_1 | Test_Text_2 = Child_1a }}<!--
-->{{#subobject:| Test_Text_3 = Parent_1 | Test_Text_2 = Child_1b }}<!--
-->{{#subobject:| Test_Text_3 = Parent_2 | Test_Text_2 = Child_2a, Child_2b | +sep= }}<!--

-->{{#subobject:| Test_Page_3 = Parent_3a | Test_Page_2 = Child_3 }}<!--
-->{{#subobject:| Test_Page_3 = Parent_3b | Test_Page_2 = Child_3 }}<!--

-->{{#subobject:| Test_Text_3 = Parent_3a | Test_Text_2 = Child_3 }}<!--
-->{{#subobject:| Test_Text_3 = Parent_3b | Test_Text_2 = Child_3 }}<!--

-->{{#subobject:| Test_Page_3 = Parent_4a, Parent_4b | +sep= | Test_Page_2 = Child_4 }}<!--
-->{{#subobject:| Test_Page_3 = aaa,bbb,ccc|+sep=| Test_Page_2 = ddd,eee,fff|+sep=}}<!--

-->{{#subobject:| Test_Text_3 = Parent_4a, Parent_4b | +sep= | Test_Text_2 = Child_4 }}<!--
-->{{#subobject:| Test_Text_3 = aaa,bbb,ccc|+sep=| Test_Text_2 = ddd,eee,fff|+sep=}}<!--
-->

...

== Specific Terrain vs Tree/Bush test data ==

Used properties:
:[[property:Test_Keyword_1]] <=> Terrain name.
:[[property:Test_Keyword_2]] <=> Object name.
:[[property:Test_Keyword_3]] <=> Object type.<!-- Similar property: "Property:Object_type", but not sure if saving this type-data affects other part that use this property (if there are any...) ... Alternatively a property-category could potentially be used for this (data only available in SMW queries). -->
:[[property:Test_Number_1]] <=> Relation value.

<!-- so far (anonimus) subopjects behave as dedicated and enclosed/stand-alone records. ie: can't be directly used to pull other data outside the given subobject record.
-->{{#subobject:| Test_Keyword_1=Terrain_A | Test_Keyword_3=tree | Test_Keyword_2=Tree_A | Test_Number_1=1.11 | @sortkey=C | @category=ABC;123|+sep=; }}<!--
-->{{#subobject:| Test_Keyword_1=Terrain_A | Test_Keyword_3=tree | Test_Keyword_2=Tree_B | Test_Number_1=2.21 | @sortkey=B | @category=ABC;123|+sep=; }}<!--
-->{{#subobject:| Test_Keyword_1=Terrain_A | Test_Keyword_3=tree | Test_Keyword_2=Tree_C | Test_Number_1=3.31 | @sortkey=A | @category=ABC;123|+sep=; }}<!--
-->{{#subobject:| Test_Keyword_1=Terrain_A | Test_Keyword_3=bush | Test_Keyword_2=Bush_A | Test_Number_1=4.41 | @category=ABC;456|+sep=; }}<!--
-->{{#subobject:| Test_Keyword_1=Terrain_A | Test_Keyword_3=bush | Test_Keyword_2=Bush_B | Test_Number_1=5.51 | @category=ABC;456|+sep=; }}<!--
-->{{#subobject:| Test_Keyword_1=Terrain_A | Test_Keyword_3=bush | Test_Keyword_2=Bush_C | Test_Number_1=6.61 | @category=ABC;456|+sep=; }}<!--
-->{{#subobject:| Test_Keyword_1=Terrain_B | Test_Keyword_3=tree | Test_Keyword_2=Tree_A | Test_Number_1=1.12 }}<!--
-->{{#subobject:| Test_Keyword_1=Terrain_B | Test_Keyword_3=tree | Test_Keyword_2=Tree_B | Test_Number_1=2.22 }}<!--
-->{{#subobject:| Test_Keyword_1=Terrain_B | Test_Keyword_3=tree | Test_Keyword_2=Tree_C | Test_Number_1=3.32 }}<!--
-->{{#subobject:| Test_Keyword_1=Terrain_B | Test_Keyword_3=bush | Test_Keyword_2=Bush_A | Test_Number_1=4.42 }}<!--
-->{{#subobject:| Test_Keyword_1=Terrain_B | Test_Keyword_3=bush | Test_Keyword_2=Bush_B | Test_Number_1=5.52 }}<!--
-->{{#subobject:| Test_Keyword_1=Terrain_B | Test_Keyword_3=bush | Test_Keyword_2=Bush_C | Test_Number_1=6.62 }}<!--
-->

:1) All data dump: {{#ask: [[Test_Keyword_1::+]]
 |?Test_Keyword_1
 |?Test_Keyword_2
 |?Test_Keyword_3
 |?Test_Number_1
 |?Category
 |format=table
 |sort=Test_Keyword_1,Test_Keyword_2
 |order=asc,asc
 |mainlabel=-
 |class=sortable wikitable smwtable
 |intro=1) All data dump:
 |limit=0
}}

:2) Trees: {{#ask: [[Test_Keyword_3::tree]]
 |?Test_Keyword_2
 |?Test_Keyword_1
 |?Test_Number_1
 |format=table
 |sort=Test_Keyword_2,Test_Keyword_1
 |order=asc,asc
 |mainlabel=-
 |class=sortable wikitable smwtable
 |intro=2) Trees:
 |limit=0
}}

:3) Tree_A: {{#ask: [[Test_Keyword_2::Tree_A]]
 |?Test_Keyword_1
 |?Test_Number_1
 |format=table
 |sort=Test_Keyword_2,Test_Keyword_1
 |order=asc,asc
 |mainlabel=-
 |class=sortable wikitable smwtable
 |intro=3) Tree_A:
 |limit=0
}}

:4) Terrain_A(bush): {{#ask: [[Test_Keyword_1::Terrain_A]][[Test_Keyword_3::bush]]
 |?Test_Keyword_2
 |?Test_Number_1
 |format=table
 |sort=Test_Keyword_2
 |order=asc
 |mainlabel=-
 |class=sortable wikitable smwtable
 |intro=4) Terrain_A(bush):
 |limit=0
}}

:5) Category(ABC): {{#ask: [[Category:ABC]]
 |?Test_Keyword_1
 |?Test_Keyword_2
 |?Test_Keyword_3
 |?Test_Number_1
 |format=table
 |sort=Test_Keyword_1,Test_Keyword_2
 |order=asc,asc
 |mainlabel=-
 |class=sortable wikitable smwtable
 |intro=5) Category(ABC):
 |limit=0
}}

:6) Relation: N<1.12 OR N>>4.42: {{#ask: [[Test_Number_1::<1.12||>>4.42]]
 |?Test_Keyword_1
 |?Test_Keyword_2
 |?Test_Number_1
 |format=table
 |sort=Test_Number_1
 |order=asc
 |mainlabel=-
 |class=sortable wikitable smwtable
 |intro=6) Relation: N<1.12 OR N>>4.42:
 |limit=0
}}

...