W3C home > Mailing lists > Public > www-rdf-interest@w3.org > April 2001

"If" and "else" in RDF

From: Jan Winkler <jan_wi@jan-winkler.de>
Date: Sat, 28 Apr 2001 13:13:29 +0100
To: www-rdf-interest@w3.org
Message-ID: <PM-CC.20010428131329.BCD52.2.D@post.strato.de>
Hello group.

I was wondering why there is nothing like "if" or "else" (or
something) in RDF to express differences between things. For example
to express that, if a person is male, he should be addressed with
'Mr.' else with 'Mrs.'. Maybe something like that:

xmlns="mysite.com/myspec#"

<gender>
 <can-be value="male"/>
 <can-be value="female"/>
</gender>
<if object="gender" has-value="male" />
<then>
 <address value="Mr."/>
</then>
<else>
 <address value="Mrs."/>
</else>

I think, I've to do it like that ...
<gender>
 <can-be value="male" address="Mr."/>
 <can-be value="female" address="Mrs."/>
</gender>

So, my questions are:
1) Why is there nothing like if and else?
2) Is the second example correct? - If not: How could I express this
thing?

Thanks,
Regards,
Jan Winkler.
-----------
Jan Winkler
Berlin.

info@jan-winkler.de
http://www.jan-winkler.de
Received on Saturday, 28 April 2001 07:15:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:49 GMT