[owl-s] IfThenElse condition statement

ahtisham aslam ahtisham_a at yahoo.com
Tue Jun 6 06:26:54 EDT 2006


Hi,
I sended this query on OWL-S API mailing list last
month but got no response. I think last month quries
will go cold room and it is better to put query again.
May be someone took pity on my query.

i created a simple condition by using the following
statement


Atom atom = swrlFactory.createLessThan(
		
(SWRLDataObject)ap1.o1.castTo(SWRLDataObject.class),
			(SWRLDataObject)ap2.o2.castTo(SWRLDataObject.class)
		);

where ap1 is an atomic process and o1 is its output
and ap2 is an atomic process and o2 is it output

Q1: how we can create a condition statement e.g.

ap1.o1 > 1

where ap1 is an atomic process and o1 is output of
ap1.

Ans: ?



Q2: Also how i can create a condition e.g.

(ap1.o1 >1) or (ap2.o2 < 1)

where ap1 is an atomic process and o1 is its output of
type int and ap2 is another atomic 
process with output o2.

Ans: ?



Q3: Similarly another example of some complex output
that i want to creat is!

((ap1.o1 >1 or ap2.o2 < 1) and ap3.o3 <1)

above statement show that this condition will become
true if 

ap1.o1 will be greater than 1 or ap2.o2 will be less
than 1

and ap3.o3 will be less than 1.


Ans: ?





With tnx in advance.
Bye.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the OWL-S mailing list