Markus Krötzsch skrev:
> could ever be name clashes on "."? (Is there anyone who ever used a 
> "." within a property name?) I can do both ... whatever most users 
> prefer.

Yes, in Mediawiki I planned to use dots for just that. Sometimes there'e 
a need to distinguish Class1.PropertyName from Class2.PropertyName in 
just that manner (i.e. <Class name> - dot - <property name>)

As for the arrows, one could think of using -> to refer to classes (or 
in MW, Categories) and once the class (category) is reached one could 
switch to dot. Thus:

Class->Class.propertyName

Example:

Self->Parent.firstName

(A Self variable to determine the context would be fine too, by the way).

One could also think of distinguishing Class/Category from property by 
capital letter for Class/Category and lower case for properties? (like 
in OCL) One could more lend ideas from OCL.

> Here is again the new proposal in comparison to the old one:
>
> {{#ask: [[works at->located in->population::>1000000]] }}

Assuming works at = Category(City) and located in = Category(Country):

Self.works at->located in.population

>
> Old:
>
> {{#ask: [[works at.located in.population::>1000000]] }}
>
> (Personally, I find the old slightly more readable, maybe because the 
> . is smaller and just one symbol).

{{#ask: [[works at->located in.population::>1000000]] }} or (using Self)

{{#ask: [[Self.works at->located in.population::>1000000]] }}


...would contain more info, and still be, well, readable...

Regards,

// Rolf Lampa


-------------------------------------------------------------------------
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

Reply via email to