Advertisement
Guest User

Untitled

a guest
May 21st, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.83 KB | None | 0 0
  1. mtConfigurationOption(baseKB,inferTypesFromArgumentTypes).
  2.  
  3. arg1Isa(acquired/2,agent).
  4. arg2Isa(acquired/2,resource).
  5.  
  6. arg1Isa(fileContains/2,file).
  7. arg2Isa(fileContains/2,resource).
  8.  
  9. acquired(System,SoftwareSystem) :-
  10. fileContains(File,SoftwareSystem),
  11. acquired(System,File).
  12.  
  13. hasSoftwareHavingCapability(System,Capability) :-
  14. hasCapability(SoftwareSystem,Capability),
  15. acquired(System,SoftwareSystem),!.
  16.  
  17. %% "if we assert that we want to have a particular piece of software,
  18. %% then attempt to download it",
  19.  
  20. poss(should(download(SoftwareSystem))) :-
  21. isa(SoftwareSystem,softwareSystem),
  22. not(acquired(frdcsaProject,SoftwareSystem)),
  23. ( desires(andrewDougherty,package(X)),
  24. X = SoftwareSystem ;
  25. member(SoftwareSystem,X)) ;
  26. ( desires(andrewDougherty,done(hasSoftwareHavingCapability(frdcsaProject,Capability),e1)),
  27. hasCapability(SoftwareSystem,Capability),
  28. acquired(frdcsaProject,SoftwareSystem)) ;
  29. ( should(package(ToPackageList)),
  30. member(SoftwareSystem,ToPackageList)).
  31.  
  32. poss(should(tryToAcquire(SoftwareSystem))) :-
  33. should(download(SoftwareSystem)),
  34. not(acquired(SoftwareSystem)).
  35.  
  36. %% "if we assert that we desire to have software having a capability,
  37. %% run radar-web-search -n 300 or such on it, and download the results
  38. %% and package them",
  39.  
  40. %% poss(executeCode(Code)) :-
  41.  
  42. poss(runProgramOn(radarWebSearch,Capability)) :-
  43. should(tryToAcquire(SoftwareSystem)),
  44. findall(Capability,hasCapability(SoftwareSystem,Capability),Capabilities),
  45. member(Capability,Capabilities).
  46.  
  47. %% periodically rerun the radar-web-search downloads on previously searched for items
  48.  
  49. %% need to add epistemic rules here, particularly as relates to
  50. %% epistemic actions of discovering more systems with certain
  51. %% capabilities
  52.  
  53. desires(andrewDougherty,knowMoreAbout(andrewDougherty,Topic)) :-
  54. isa(Topic,topic).
  55.  
  56. %% "so here's the deal. if we save a paper, move the paper into
  57. %% digilib storage, convert to text, add to book-analysis system,
  58. %% extract urls and system names, retrieve and store in our
  59. %% waybackmachine knockoff the contents of the websites, and run
  60. %% radar-web-search just on those urls",
  61.  
  62. %% "if we assert that we desire to know more about a topic, launch
  63. %% various searches, such as definitional question answering, google,
  64. %% etc.",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement