Playing around with Records to see how it works in practice and where the boundaries are.
At some point the idea of a record inside a record came up (_data based inspired_).
Setting it up was the easy part. Just including a record-type inside the Has_Fields of an other Record-type did the job.
Saving data to it took a little bit more reading/thinking. But escaping the correct field delimited in the #set command did that job.
But ... the last part, retrieving individual record data on the sub-record so far has eluded me. Figure it might actually not be possible to do that directly with an #ask query. Ergo ...
Is it somehow possible (or completely impossible/currently unsupported) to directly retrieve a single data element, on a record that is included in an other record, by way of an #ask query ?
(_ie: getting only "456" or "789" as #ask output?_)
_Property pages_:
_Data Input_:
_(known) Date Retrieval_:
Local resolution (_in case of silence_)
Figure the Record-type property is also some "special purpose query formats" and as such falls under its own limitations.
(_Ps: "... etc." is nice, for those that already know what it entails. For new-users to a particular app, its might not be so helpful. ... Just a thought._)
Is it somehow possible (or completely impossible/currently unsupported) to directly retrieve a single data element
What about?
{{#ask: [[Test Record::+]] |?Test Record.Test_Record_1.Test_Value_1}} --> should print 456
{{#ask: [[Test Record::+]] |?Test Record.Test_Record_1.Test_Value_2}} --> should print 789
PS: Would be nice if could recreate your example on the sandbox.
I have never seen that syntax/usage before.
...
Aha. So that's what its called, a "property chain".
So far I only found two SMW pages that talk, or even hint, towards that particular usage.
...
But ... Yep. Its working.
Also solved that big question mark that was hanging over "How to #Show specific elements on normal-records" on this side.
Needless to say. Good docs ... Saves time (and other stuff) ... on both sides.
...
Thanks for info anyway. :-)
So far I only found two SMW pages that talk, or even hint, towards that particular usage.
This feature came with #1824, applicable to all page type properties (those that represent a resource or in wiki terms a link).
@kghbln FYI
I have never seen that syntax/usage before.
FYI, i've update the docs on Record type to explain also this capability:
https://www.semantic-mediawiki.org/w/index.php?title=Help:Type_Record&oldid=66118
Most helpful comment
FYI, i've update the docs on Record type to explain also this capability:
https://www.semantic-mediawiki.org/w/index.php?title=Help:Type_Record&oldid=66118