Advertisement
Guest User

Untitled

a guest
Aug 27th, 2015
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. user@DebLab:~/2000/10/swap$ cat test.n3
  2. @prefix log: <http://www.w3.org/2000/10/swap/log#>.
  3. @prefix math: <http://www.w3.org/2000/10/swap/math#>.
  4.  
  5. 1 log:outputString 1.
  6. {?x log:outputString ?x. (1 ?x) math:sum ?y. ?y math:lessThan 11 } => {?y log:outputString ?y }.
  7. user@DebLab:~/2000/10/swap$ python cwm.py test.n3 --think
  8. #Processed by Id: cwm.py,v 1.198 2012-01-30 09:30:20 timbl Exp
  9. # using base file:///home/user/2000/10/swap/test.n3
  10. @prefix : <http://www.w3.org/2000/10/swap/log#> .
  11. @prefix math: <http://www.w3.org/2000/10/swap/math#> .
  12. @prefix test: <#> .
  13.  
  14. @forAll test:x,
  15. test:y .
  16.  
  17. 1 :outputString 1 .
  18.  
  19. 10 :outputString 10 .
  20.  
  21. 2 :outputString 2 .
  22.  
  23. 3 :outputString 3 .
  24.  
  25. 4 :outputString 4 .
  26.  
  27. 5 :outputString 5 .
  28.  
  29. 6 :outputString 6 .
  30.  
  31. 7 :outputString 7 .
  32.  
  33. 8 :outputString 8 .
  34.  
  35. 9 :outputString 9 .
  36. {
  37.  
  38. ( 1
  39. test:x )
  40. math:sum test:y .
  41. test:x :outputString test:x .
  42. test:y math:lessThan 11 .
  43.  
  44. } => {test:y :outputString test:y .
  45. } .
  46.  
  47. user@DebLab:~/2000/10/swap$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement