- From: Dónal Murtagh <domurtag@cs.tcd.ie>
- Date: Tue, 18 May 2004 16:25:34 +0100
- To: "Jeff Dalton" <jeff@inf.ed.ac.uk>
- Cc: <public-sws-ig@w3.org>
Thanks Jeff, Good work! I found out from the author of the API that the owl-s.jar in the current release is not the most recent. I downloaded the latest version from http://svn.mindswap.org/owl-s/trunk/lib/owl-s.jar and that fixed the problem too. Regards, Dónal ----- Original Message ----- From: "Jeff Dalton" <jeff@inf.ed.ac.uk> To: "Dnal Murtagh" <domurtag@cs.tcd.ie> Cc: <public-sws-ig@w3.org> Sent: Tuesday, May 18, 2004 4:11 PM Subject: Re: OWL-S API (how to make it read the work-flow) > I tried fixing the 2 problems I identified, and then it returned > all four services when I tried it on > > http://www.mindswap.org/2004/owl-s/1.0/BookPrice.owl > > It also worked on the FrenchDictionary service that's also at the > Mindswap site. > > I've just tried changing the reader class, rather than fixing > the vocabulary classes, etc. > > In OWLSReader_1_0.java: > > 1. Add this import: > > import com.hp.hpl.jena.rdf.model.ResourceFactory; // for fixing a bug /\/ > > 2. 2. In the body of the class add the lines: > > private Property OWLS_1_0_Process_theParameter = > ResourceFactory.createProperty("http://www.daml.org/services/owl-s/1.0/Proce ss.owl#theParameter"); > > private Property OWLS_1_0_Process_atProcess = > ResourceFactory.createProperty("http://www.daml.org/services/owl-s/1.0/Proce ss.owl#atProcess"); > > 3. Find the method > > createDataFlow(Process process, Resource processComponentInfo) > > Where it says getProperty(OWLS_1_0.Process.theProperty), > replace it with getProperty(OWLS_1_0_Process_theParameter) > (2 places). > > Where it says getProperty(OWLS_1_0.Process.atClass); > replace it with .getProperty(OWLS_1_0_Process_atProcess) > (2 places). > > -- Jeff >
Received on Tuesday, 18 May 2004 11:26:23 UTC