- From: Dan Connolly <connolly@w3.org>
- Date: Mon, 06 Nov 2006 17:17:40 -0600
- To: jos.deroo@agfa.com
- Cc: www-archive@w3.org
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,_))). -- Dan Connolly, W3C http://www.w3.org/People/Connolly/ D3C2 887B 0F92 6005 C541 0875 0F91 96DE 6E52 C29E
Received on Monday, 6 November 2006 23:17:52 UTC