tamara.matevc wrote:
> How to make a list of actors, sort by zodiak? To get, for example, 
> everybody who is born in Aries, then in Taurus etc? 

Take a look at http://ontoworld.org/wiki/Attribute:Astrological_sign

The big limitation is you can't control the sorting of the signs; this 
attribute is just of Type:String, so all you can do is sort it 
alphabetically.

You've just provided us with the first use case for an enumerated type, 
discussed here 
http://www.mail-archive.com/[email protected]/msg00023.html

> But I don't want to 
> make the mark about the zodiak in an article about the actor or I don't 
> want that this mark can be seen.

I'm not clear what you're asking for.  If you don't want to see an 
attribute in an article, put "| " on the end of it as I did for the 
Astrological signs.  You'll still see it in the fact box.

If you want to infer Astrological sign from Date of birth, so that you 
only have to enter
   [[date of birth:=1965-11-21]]
but not
   [[Astrological sign:=Scorpio| ]]
that can't be done.  Current SMW doesn't have the notion of computed 
properties.  (Someone's been trying to work with dates on ontoworld.org 
and created separate attributes and relations for born in year, year of 
birth, etc. instead of deriving these from Date of birth)

It seems you could write an query for "birthdays in the sign of Aries" 
that queries for everyone with a date of birth matching the patterns
   %-03-21|%-03-22|%-03-23|...|%-04-0%|%-04-1%
, but I wasn't able to write an inline query that does this.  I don't 
think inline queries currently support partial string matches.


If you want something else, please clarify.

--
=S

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Semediawiki-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Reply via email to