On Sonntag, 8. Juni 2008, Rolf Lampa wrote:
> 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).

I think I do not quite understand what the above shall mean. Overall, I think 
that combining both -> and . could easily be confusing.

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

Case is not a feature of all languages, and thus is not a possible syntax 
element for SMW.

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

I do not understand what "works at = Category(City)" means.

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

Well, I think I have some troubles here. Why do we need the Self? And why are 
some properties using . and others ->? Does that depend on their datatype (so 
you need to use -> for some types and . for others)?

Puzzled regards,

Markus

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



-- 
Markus Krötzsch
Semantic MediaWiki    http://semantic-mediawiki.org
http://korrekt.org    [EMAIL PROTECTED]

Attachment: signature.asc
Description: This is a digitally signed message part.

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