New And Improved Eep: Now With Builtins!

Attached as <<eep20020214-174604.tar.gz>>.

Builtins? I kid you not. Here is a print out:-

$ python bitest.py
{ ?x ?y ?z .
 ?x <http://www.w3.org/2000/10/swap/log#notEqualTo> ?z . } =>
 { ?x <#notEqualTo> ?z . } .
<#p> <#q> <#r> .
[[[<#p>, <#notEqualTo>, <#r>]]]

{ ?x ?y ?z .
  ?x <http://www.w3.org/2000/10/swap/log#uri> ?p . } => { ?x <#uri> ?p
. } .
<#p> <#q> <#r> .
<#x> <#y> <#z> .
[[[<#p>, <#uri>, "#p"]], [[<#x>, <#uri>, "#x"]]]

{ ?x ?y ?z .
 ?x <http://www.w3.org/2000/10/swap/string#notEqualTo> ?z . } =>
 { ?x <#notEqualTo> ?z . } .
"p" <#q> "r" .
<#p> <#q> <#p> .
"p" <#q> "p" .
"x" _:y "z" .
[[["p", <#notEqualTo>, "r"]], [["x", <#notEqualTo>, "z"]]]

{ ?x <#type> <#Target> .
   ?x <http://example.org/#sha512> ?z . } =>
 { ?x <#sha512> ?z . } .
"blargh" <#type> <#Target> .
[[["blargh", <#sha512>, "4a59e80b6a5bfb4c8d8a592
086a290b347c5d2b62418abe878cfa8037063ca268e
deadd184bc3d54bf683584f294caf7a3109c90458b45
f93d25587618070fa1"]]]

If you can't get sha512 to work, just comment it out (it's left in
because it'll be important for the Plex).

All of the tests seem to pass, but I've done a lot of rejigging, so
there may be some subtle errors in there. Comments etc. are most
welcome.

--
Kindest Regards,
Sean B. Palmer
@prefix : <http://purl.org/net/swn#> .
:Sean :homepage <http://purl.org/net/sbp/> .

Received on Thursday, 14 February 2002 12:52:16 UTC