[owl-s] OWL Multiple Datatypeproperty

Ganesh Subbiah ganesh.subbiah at student.utdallas.edu
Wed Jun 21 14:42:41 EDT 2006


There is a mistake while  posting (i.e)

OWLDataProperty rankinfo = kb.getDataProperty(URI.create(MyOnt + 
"rankinfo"));

Thanks in Advance
Ganesh Subbiah

Ganesh Subbiah wrote:


>HI All,
>
>Could anyone kindly help me solve this problem i am facing quite a long 
>time. 
>
>I need to get multiple datavalues for a OWLIndividual from the result 
>of OWL-S execution as shown below:
>-----------------------------------------------------------------
>ValueMap values = exec.execute(Providerprocess, inputvalues);
>// get the result
>OWLIndividual out = 
>values.getIndividualValue(Providerprocess.getOutput());
>OWLDataProperty rank = kb.getDataProperty(URI.create(MyOnt + "rank"));  
>   
>OWLDataProperty rankinfo = kb.getDataProperty(URI.create(MyOnt + 
>"rank"));     
>
>//rank ,rankinfo are multivalued datatypeproperties with max 
>cardinality 10
>
>OWLDataValueList rlist = out.getProperties(rank);
>OWLDataValueList rinfolist = out.getProperties(rankinfo);
>
>for(int i=0; i< 10;i++)
>{
> OWLDataValue n1 = rlist.valueAt(i);
> OWLDataValue n2 = rinfolist.valueAt(i);
>
>System.out.println(n1.toString()+ n2.toString());
>}
>
>I am able to retrieve the values from each of this multivalued 
>dataproperties but the order is not maintained.
>(i.e) rlist.valueAt(0) is not related to rinfolist.valueAt(0)
>
>Could you anyone kindly help me solve this issue and provide other 
>better approaches in this regard.
>
>Thanks and Regards
>Ganesh Subbiah
>


More information about the OWL-S mailing list