Markus Krötzsch пишет:
> On Freitag, 6. Juni 2008, CNIT wrote:
>
>> Hi all,
>>
>>
>>> I have a proposal for a simplification in #ask query syntax that I would
>>> like to get some feedback on.
>>>
>>> If you currently ask for property chains, you need something like the
>>> following:
>>>
>>> {{#ask: [[works at::<q>[[located
>>> in::<q>[[population::>1000000]]</q>]]</q>]]}}
>>>
>>> to find someone working at an organisation located in a place with more
>>> than 1000000 inhabitants. The many [[ and <q> are sure annoying.
>>>
>>> My proposal is to instead allow writing
>>>
>>> {{#ask: [[works at.located in.population::>1000000]] }}
>>>
>>> with exactly the same interpretation as above.
>>>
>>> Effects:
>>> * "." in property names become problematic (though some escape can be
>>> provided to allow them),
>>> * the syntax becomes shorter, and maybe also more readable.
>>>
>>> Would that be an improvement? Other comments? (There is also another
>>> issue regarding the syntax with <q>, but I will have to check what can be
>>> done there before proposing alternatives.)
>>>
>> Hi!
>> That would be great improvement of readability. Already existing pages
>> and templates
>> can be changed, accordingly.
>>
>
> The old syntax will certainly continue to work anyway.
>
>
>> It's much worse when you update from SVN and then template works
>> differently with
>> the same parameters and there's no way of make it work besides patching
>> the code
>> (as in my unanswered case).
>>
>
> Huh? I missed that, please provide a pointer.
>
>
Sorry, I haven't checked SVN before reply. My fault.
I've updated from SVN and it's fixed now. Thanks.
Dmitriy
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Semediawiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel