Re: euler state of the art? (euler.yap log:semantics and port numbers)

Dan Connolly wrote:
> On Mon, 2006-11-06 at 21:48 +0100, jos.deroo@agfa.com wrote:
> > Dan Connolly wrote:
> > > On Mon, 2006-11-06 at 18:52 +0100, jos.deroo@agfa.com wrote:
> > > > 
> > > > The euler5 prolog version is best run as RESTfull webservice
> > > > (see again http://eulersharp.sourceforge.net/README)
> > > > as it needs the euler1 java version to do the N3->YAP 
> > >
> > > OK, I got Yapp installed, and I'm working on the Codd stuff...
> > > One quick question while I'm at it: what about built-ins
> > > that call out to the Web, like log:semantics? Should
> > > I expect that to work in this java/prolog/REST setup?
> > 
> > That should work fine (but was quite complicated to
> > implement as we have to call back euler1 with the
> > correct namespace prefixes).
>
> Hmm... the port number seems to be implicitly hardcoded
> in euler.yap,v 1.103 2006/11/04 17:46:40 :
>
> 'log:semantics'(X,Y,_):- ground(X), fact('log:semantics'(X,Y,_)), !.
> 'log:semantics'(X,Y,_):- ground(X), sub_atom(X,1,_,1,U), nsp(W),
>   atom_concat('http://localhost/.euler+-pterm
> +','http://localhost/.context%2B',C1), atom_concat(C1,W,C2),
> atom_concat(C2,'+',C3), atom_concat(C3,U,V),
>  url_info(V,http(H,P,D)), fetch_url(http(H,P,D),['Host'(H)],R),
> lists:member(content(C),R), content(C,Z), read_from_chars(Z,Y),
> assert(fact('log:semantics'(X,Y,_))).

Right; should be fixed now
http://eulersharp.cvs.sourceforge.net/eulersharp/2006/02swap/euler.yap?r1=1.103&r2=1.104&sortby=date
http://eulersharp.sourceforge.net/2004/01swap/deployment/Euler.zip

and port can be set e.g. as in
process.euler5  = yap -l /home/.../euler.yap -z main. -- port 1024

Thanks for finding out!

-- 
Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/

Received on Tuesday, 7 November 2006 13:43:05 UTC