<div>Hi,</div><div><br></div><div>and thanks for the thorough - and quick - answer !</div><br><div class="gmail_quote">2012/6/13 Kaarel Kaljurand <span dir="ltr"><<a href="mailto:kaljurand@gmail.com" target="_blank">kaljurand@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">.... </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

i.e. ACE does not support namespaces in the sense that different names<br>
have to be used for different things.<br>
<br>
In the context of ACE->OWL/SWRL you can have lexicon entries like:<br>
pn_sg('Mary', iri('<a href="http://www.example.com/names#Mary'" target="_blank">http://www.example.com/names#Mary'</a>))<br></blockquote><div><br></div><div>I tried this and it works.</div><div>I updated my lexicon this way :</div>
<div><br></div><div><div><font face="courier new, monospace">cat <a href="http://foaf-lexicon.pl">foaf-lexicon.pl</a> </font></div><div><font face="courier new, monospace">tv_finsg('has-homepage' ,<span class="Apple-tab-span" style="white-space:pre">      </span>iri('<a href="http://xmlns.com/foaf/0.1/#homepage">http://xmlns.com/foaf/0.1/#homepage</a>') ).</font></div>
<div><font face="courier new, monospace">tv_infpl('have-homepage' ,<span class="Apple-tab-span" style="white-space:pre">        </span>iri('<a href="http://xmlns.com/foaf/0.1/#homepage">http://xmlns.com/foaf/0.1/#homepage</a>') ).</font></div>
<div><font face="courier new, monospace">tv_finsg('has-current-project' ,<span class="Apple-tab-span" style="white-space:pre">  </span>iri('<a href="http://xmlns.com/foaf/0.1/#currentProject">http://xmlns.com/foaf/0.1/#currentProject</a>') ).</font></div>
<div><font face="courier new, monospace">tv_infpl('have-current-project' ,<span class="Apple-tab-span" style="white-space:pre"> </span>iri('<a href="http://xmlns.com/foaf/0.1/#currentProject">http://xmlns.com/foaf/0.1/#currentProject</a>') ).</font></div>
<div><font face="courier new, monospace">noun_sg( 'person', iri('<a href="http://xmlns.com/foaf/0.1/#Person'">http://xmlns.com/foaf/0.1/#Person'</a>), neutr ).</font></div></div><div><br></div><div>( BTW there must be a better way to write this Prolog, by avoiding pasting the FOAF prefix at every line, and do a string concatenation ).</div>
<div>BTW the iri/1 predicate should be indicated in the doc.</div><div><br></div><div>Then I rerun APE :</div><div><br></div><div><font face="courier new, monospace"> % ape.exe -uri <a href="http://eulergui.sf.net/contact.owl">http://eulergui.sf.net/contact.owl</a>  -ulexfile <a href="http://foaf-lexicon.pl">foaf-lexicon.pl</a> -text 'If P is a person that has-homepage something and has-current-project something then P is an n:interesting-contact .' -solo owlxml > interesting-contact2.owl</font></div>
<div><br></div><div>and now the result is exactly as expected :</div><div><br></div><div><div><font face="courier new, monospace"><Ontology</font></div><div><font face="courier new, monospace">    xml:base="<a href="http://www.w3.org/2002/07/owl#">http://www.w3.org/2002/07/owl#</a>"</font></div>
<div><font face="courier new, monospace">    xmlns="<a href="http://www.w3.org/2002/07/owl#">http://www.w3.org/2002/07/owl#</a>"</font></div><div><font face="courier new, monospace">    ontologyIRI="<a href="http://eulergui.sf.net/contact.owl">http://eulergui.sf.net/contact.owl</a>"></font></div>
<div><font face="courier new, monospace">  <SubClassOf></font></div><div><font face="courier new, monospace">    <ObjectIntersectionOf></font></div><div><font face="courier new, monospace">      <ObjectIntersectionOf></font></div>
<div><font face="courier new, monospace"><span class="Apple-tab-span" style="white-space:pre">  </span><Class IRI="<a href="http://xmlns.com/foaf/0.1/#Person">http://xmlns.com/foaf/0.1/#Person</a>"/></font></div>
<div><font face="courier new, monospace"><span class="Apple-tab-span" style="white-space:pre">  </span><ObjectSomeValuesFrom></font></div><div><font face="courier new, monospace"><span class="Apple-tab-span" style="white-space:pre">        </span>  <ObjectProperty IRI="<a href="http://xmlns.com/foaf/0.1/#homepage">http://xmlns.com/foaf/0.1/#homepage</a>"/></font></div>
<div><font face="courier new, monospace"><span class="Apple-tab-span" style="white-space:pre">  </span>  <Class IRI="<a href="http://www.w3.org/2002/07/owl#Thing">http://www.w3.org/2002/07/owl#Thing</a>"/></font></div>
<div><font face="courier new, monospace"><span class="Apple-tab-span" style="white-space:pre">  </span></ObjectSomeValuesFrom></font></div><div><font face="courier new, monospace">      </ObjectIntersectionOf></font></div>
<div><font face="courier new, monospace">      <ObjectSomeValuesFrom></font></div><div><font face="courier new, monospace"><span class="Apple-tab-span" style="white-space:pre">        </span><ObjectProperty IRI="<b><a href="http://xmlns.com/foaf/0.1/#currentProject">http://xmlns.com/foaf/0.1/#currentProject</a></b>"/></font></div>
<div><font face="courier new, monospace"><span class="Apple-tab-span" style="white-space:pre">  </span><Class IRI="<a href="http://www.w3.org/2002/07/owl#Thing">http://www.w3.org/2002/07/owl#Thing</a>"/></font></div>
<div><font face="courier new, monospace">      </ObjectSomeValuesFrom></font></div><div><font face="courier new, monospace">    </ObjectIntersectionOf></font></div><div><font face="courier new, monospace">    <Class</font></div>
<div><font face="courier new, monospace"><span class="Apple-tab-span" style="white-space:pre">  </span>IRI="<b><a href="http://eulergui.sf.net/contact.owl#interesting-contact">http://eulergui.sf.net/contact.owl#interesting-contact</a></b>"/></font></div>
<div><font face="courier new, monospace">  </SubClassOf></font></div><div><font face="courier new, monospace"></Ontology></font></div></div><div><br></div><div>But ... there is a but ...</div><div>If load the resulting OWL/XML file into Protégé + ACE View 1.3.1, I found no way to load my lexicon ( and I looked the doc. ) .</div>
<div>Hence the paraphrases produced are bad .</div><div>Moreover , the Lexicon view table is not editable.</div><div><br></div><div>I wonder if ACEWiki has a way to load a lexicon , and I think I saw that.</div><div><br></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
which allow you to use the word 'Mary' in an ACE text and "show" it to<br>
OWL as the IRI "<a href="http://www.example.com/names#Mary" target="_blank">http://www.example.com/names#Mary</a>". This solution<br>
would not give you the namespace prefix construct, i.e. you will not<br>
be able to say<br>
<br>
    ns1:Mary is ns2:Mary.<br></blockquote><div><br></div><div>Anyway I recognize that it's not very natural language-like .</div><div><br></div><div><br></div></div>-- <br>Jean-Marc Vanel<br>Déductions SARL - Consulting, services, training,<br>

Rule-based programming, Semantic Web<br><a href="http://jmvanel.free.fr/" target="_blank">http://jmvanel.free.fr/</a> - EulerGUI, a turntable GUI for Semantic Web + rules, XML, UML, eCore, Java bytecode<br><a href="tel:%2B33%20%280%296%2089%2016%2029%2052" value="+33689162952" target="_blank">+33 (0)6 89 16 29 52</a><br>

chat :  irc://<a href="http://irc.freenode.net#eulergui" target="_blank">irc.freenode.net#eulergui</a><br>