Hi Kaarel,<br>Yup,exactly right. The problem was because of Firefox. As you said, Firefox doesn't show all the<br>
attributes of the XML root element.<br>Thanks for your time and helpful contribution.<br>Alireza.<br><br><div class="gmail_quote">On Wed, Mar 18, 2009 at 7:16 PM, Kaarel Kaljurand <span dir="ltr"><<a href="mailto:kaljurand@gmail.com">kaljurand@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Dear Alireza,<br>
<div class="im"><br>
On Wed, Mar 18, 2009 at 3:49 PM, Alireza <<a href="mailto:alireza.khoshkbari@gmail.com">alireza.khoshkbari@gmail.com</a>> wrote:<br>
<br>
> I’m going to use APE Webservice to translate ACE text to owl. The output of<br>
> the web service for the text “Every+man+is+a+human.” Is as follows:<br>
><br>
> <rdf:RDF xml:base="<a href="http://attempto.ifi.uzh.ch/ontologies/owlswrl/test" target="_blank">http://attempto.ifi.uzh.ch/ontologies/owlswrl/test</a>"><br>
> <owl:Ontology rdf:about=""/><br>
> <owl:Class rdf:about="#man"><br>
> <rdfs:subClassOf><br>
> <owl:Class rdf:about="#human"/><br>
> </rdfs:subClassOf><br>
> </owl:Class><br>
> </rdf:RDF><br>
<br>
</div>I'm getting a different output, namely:<br>
<br>
$ curl "<a href="http://attempto.ifi.uzh.ch/ws/ape/apews.perl?text=Every+man+is+a+human.&solo=owlrdf" target="_blank">http://attempto.ifi.uzh.ch/ws/ape/apews.perl?text=Every+man+is+a+human.&solo=owlrdf</a>"<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<div class="im"><br>
<rdf:RDF<br>
xml:base="<a href="http://attempto.ifi.uzh.ch/ontologies/owlswrl/test" target="_blank">http://attempto.ifi.uzh.ch/ontologies/owlswrl/test</a>"<br>
</div> xmlns="<a href="http://attempto.ifi.uzh.ch/ontologies/owlswrl/test#" target="_blank">http://attempto.ifi.uzh.ch/ontologies/owlswrl/test#</a>"<br>
<div class="im"> xmlns:owl="<a href="http://www.w3.org/2002/07/owl#" target="_blank">http://www.w3.org/2002/07/owl#</a>"<br>
</div> xmlns:owl11="<a href="http://www.w3.org/2006/12/owl11#" target="_blank">http://www.w3.org/2006/12/owl11#</a>"<br>
xmlns:swrl="<a href="http://www.w3.org/2003/11/swrl#" target="_blank">http://www.w3.org/2003/11/swrl#</a>"<br>
xmlns:swrlb="<a href="http://www.w3.org/2003/11/swrlb#" target="_blank">http://www.w3.org/2003/11/swrlb#</a>"<br>
<div class="im"> xmlns:rdf="<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#" target="_blank">http://www.w3.org/1999/02/22-rdf-syntax-ns#</a>"<br>
</div><div class="im"> xmlns:rdfs="<a href="http://www.w3.org/2000/01/rdf-schema#" target="_blank">http://www.w3.org/2000/01/rdf-schema#</a>"><br>
</div><div class="im"> <owl:Ontology rdf:about=""/><br>
<owl:Class rdf:about="#man"><br>
<rdfs:subClassOf><br>
<owl:Class rdf:about="#human"/><br>
</rdfs:subClassOf><br>
</owl:Class><br>
</rdf:RDF><br>
<br>
</div>This seems to contain all the required namespace prefix definitions.<br>
In fact it contains even ones that are not needed but this would not hurt.<br>
<br>
I haven't really tested the outputs with Jena much. I'm mainly using<br>
the webservice with OWL-API, and mainly make it generate the<br>
new OWL 2 XML, but the RDF/XML output should be also OK.<br>
<div class="im"><br>
> As I needed to call and use the APE web service directly in my project, I’m<br>
> wondering whether the web service can generate the flawless owl code or I<br>
> should modify automatically the output, before using in the project.<br>
<br>
</div>Maybe you are using an older version of the webservice? Btw, are you querying<br>
the Attempto server, or do you have the APE installed locally (and you're using<br>
"ape.exe -httpserver" to launch the service)?<br>
<br>
Actually, one likely source of confusion is that Firefox does not show all the<br>
attributes of the XML root element. Could that be the problem? I.e. if you're<br>
using Firefox to explore the webservice outputs then try "view source"<br>
and see if the attributes are there.<br>
<font color="#888888"><br>
--<br>
kaarel<br>
_______________________________________________<br>
attempto mailing list<br>
<a href="mailto:attempto@lists.ifi.uzh.ch">attempto@lists.ifi.uzh.ch</a><br>
<a href="https://lists.ifi.uzh.ch/listinfo/attempto" target="_blank">https://lists.ifi.uzh.ch/listinfo/attempto</a><br>
</font></blockquote></div><br>