Can I suggest to use '->' instead of dots - this will make it much less probable to have in Property names, but still reasonable as syntax.

On Fri, Jun 6, 2008 at 6:02 AM, Markus Krötzsch <> 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

{{#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.

* "." 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.)



Markus Krötzsch
Semantic MediaWiki

Check out the new Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
Semediawiki-devel mailing list

Sergey Chernyshev