lateral_recommender 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.editorconfig +27 -0
  3. data/.gitignore +2 -1
  4. data/.rubocop.yml +21 -0
  5. data/.travis.yml +1 -1
  6. data/README.md +33 -44
  7. data/lateral_recommender.gemspec +8 -10
  8. data/lib/lateral_recommender/version.rb +1 -1
  9. data/lib/lateral_recommender.rb +21 -113
  10. data/spec/fixtures/tapes/add.yml +19 -15
  11. data/spec/fixtures/tapes/invalid_key.yml +21 -19
  12. data/spec/fixtures/tapes/recommend_by_id.yml +40 -0
  13. data/spec/fixtures/tapes/recommend_by_id_arxiv.yml +201 -0
  14. data/spec/fixtures/tapes/recommend_by_id_news.yml +379 -0
  15. data/spec/fixtures/tapes/recommend_by_id_sec.yml +12392 -0
  16. data/spec/fixtures/tapes/recommend_by_id_wikipedia.yml +125 -0
  17. data/spec/fixtures/tapes/recommend_by_text.yml +40 -0
  18. data/spec/fixtures/tapes/recommend_by_text_arxiv.yml +236 -0
  19. data/spec/fixtures/tapes/recommend_by_text_news.yml +294 -0
  20. data/spec/fixtures/tapes/recommend_by_text_pubmed.yml +251 -0
  21. data/spec/fixtures/tapes/recommend_by_text_sec.yml +11469 -0
  22. data/spec/fixtures/tapes/recommend_by_text_wikipedia.yml +118 -0
  23. data/spec/lateral_recommender_spec.rb +67 -101
  24. metadata +89 -78
  25. data/spec/fixtures/tapes/add_user.yml +0 -56
  26. data/spec/fixtures/tapes/add_user_document.yml +0 -879
  27. data/spec/fixtures/tapes/near_id.yml +0 -47
  28. data/spec/fixtures/tapes/near_id_arxiv.yml +0 -68
  29. data/spec/fixtures/tapes/near_text.yml +0 -47
  30. data/spec/fixtures/tapes/near_text_arxiv.yml +0 -91
  31. data/spec/fixtures/tapes/near_text_movies.yml +0 -1262
  32. data/spec/fixtures/tapes/near_text_news.yml +0 -400
  33. data/spec/fixtures/tapes/near_text_pubmed.yml +0 -70
  34. data/spec/fixtures/tapes/near_text_wikipedia.yml +0 -55
  35. data/spec/fixtures/tapes/near_user.yml +0 -56
  36. data/spec/fixtures/tapes/near_user_arxiv.yml +0 -152
  37. data/spec/fixtures/tapes/near_user_movies.yml +0 -1262
  38. data/spec/fixtures/tapes/near_user_news.yml +0 -400
  39. data/spec/fixtures/tapes/near_user_pubmed.yml +0 -116
  40. data/spec/fixtures/tapes/near_user_wikipedia.yml +0 -88
@@ -0,0 +1,118 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://wikipedia-api.lateral.io/recommend-by-text/?subscription-key=<API_KEY>
6
+ body:
7
+ encoding: UTF-8
8
+ string: text=Space%20exploration%0AJump%20to%3A%20navigation%20%2C%20search%0ASaturn%20V%20rocket%2C%20used%20for%20the%20American%20manned%20lunar%20landing%20missions%0AThe%20Moon%20as%20seen%20in%20a%20digitally%20processed%20image%20from%20data%20collected%20during%20a%20spacecraft%20flyby%0ASpace%20exploration%20is%20the%20ongoing%20discovery%20and%20exploration%20of%20celestial%20structures%20in%20outer%20space%20by%20means%20of%20continuously%20evolving%20and%20growing%20space%20technology%20.%20While%20the%20study%20of%20space%20is%20carried%20out%20mainly%20by%20astronomers%20with%20telescopes%20%2C%20the%20physical%20exploration%20of%20space%20is%20conducted%20both%20by%20unmanned%20robotic%20probes%20and%20human%20spaceflight%20.%0AWhile%20the%20observation%20of%20objects%20in%20space%2C%20known%20as%20astronomy%20%2C%20predates%20reliable%20recorded%20history%20%2C%20it%20was%20the%20development%20of%20large%20and%20relatively%20efficient%20rockets%20during%20the%20early%2020th%20century%20that%20allowed%20physical%20space%20exploration%20to%20become%20a%20reality.%20Common%20rationales%20for%20exploring%20space%20include%20advancing%20scientific%20research%2C%20uniting%20different%20nations%2C%20ensuring%20the%20future%20survival%20of%20humanity%20and%20developing%20military%20and%20strategic%20advantages%20against%20other%20countries.%0ASpace%20exploration%20has%20often%20been%20used%20as%20a%20proxy%20competition%20for%20geopolitical%20rivalries%20such%20as%20the%20Cold%20War%20.%20The%20early%20era%20of%20space%20exploration%20was%20driven%20by%20a%20%22%20Space%20Race%20%22%20between%20the%20Soviet%20Union%20and%20the%20United%20States%20%2C%20the%20launch%20of%20the%20first%20manmade%20object%20to%20orbit%20the%20Earth%20%2C%20the%20USSR%27s%20Sputnik%201%20%2C%20on%204%20October%201957%2C%20and%20the%20first%20Moon%20landing%20by%20the%20American%20Apollo%2011%20craft%20on%2020%20July%201969%20are%20often%20taken%20as%20landmarks%20for%20this%20initial%20period.%20The%20Soviet%20space%20program%20achieved%20many%20of%20the%20first%20milestones%2C%20including%20the%20first%20living%20being%20in%20orbit%20in%201957%2C%20the%20first%20human%20spaceflight%20%28%20Yuri%20Gagarin%20aboard%20Vostok%201%20%29%20in%201961%2C%20the%20first%20spacewalk%20%28by%20Aleksei%20Leonov%20%29%20on%2018%20March%201965%2C%20the%20first%20automatic%20landing%20on%20another%20celestial%20body%20in%201966%2C%20and%20the%20launch%20of%20the%20first%20space%20station%20%28%20Salyut%201%20%29%20in%201971.%0AAfter%20the%20first%2020%20years%20of%20exploration%2C%20focus%20shifted%20from%20oneoff%20flights%20to%20renewable%20hardware%2C%20such%20as%20the%20Space%20Shuttle%20program%20%2C%20and%20from%20competition%20to%20cooperation%20as%20with%20the%20International%20Space%20Station%20%28ISS%29.%0AWith%20the%20substantial%20completion%20of%20the%20ISS%20%5B1%5D%20following%20STS133%20in%20March%202011%2C%20plans%20for%20space%20exploration%20by%20the%20USA%20remain%20in%20flux.%20Constellation%20%2C%20a%20Bush%20Administration%20program%20for%20a%20return%20to%20the%20Moon%20by%202020%20%5B2%5D%20was%20judged%20inadequately%20funded%20and%20unrealistic%20by%20an%20expert%20review%20panel%20reporting%20in%202009.%20%5B3%5D%20The%20Obama%20Administration%20proposed%20a%20revision%20of%20Constellation%20in%202010%20to%20focus%20on%20the%20development%20of%20the%20capability%20for%20crewed%20missions%20beyond%20low%20earth%20orbit%20%28LEO%29%2C%20envisioning%20extending%20the%20operation%20of%20the%20ISS%20beyond%202020%2C%20transferring%20the%20development%20of%20launch%20vehicles%20for%20human%20crews%20from%20NASA%20to%20the%20private%20sector%2C%20and%20developing%20technology%20to%20enable%20missions%20to%20beyond%20LEO%2C%20such%20as%20Earth%2FMoon%20L1%20%2C%20the%20Moon%2C%20Earth%2FSun%20L2%20%2C%20nearearth%20asteroids%2C%20and%20Phobos%20or%20Mars%20orbit.%20%5B4%5D%20As%20of%20March%202011%2C%20the%20US%20Senate%20and%20House%20of%20Representatives%20are%20still%20working%20towards%20a%20compromise%20NASA%20funding%20bill%2C%20which%20will%20probably%20terminate%20Constellation%20and%20fund%20development%20of%20a%20heavy%20lift%20launch%20vehicle%20%28HLLV%29.%20%5B5%5D%0AIn%20the%202000s%2C%20the%20People%27s%20Republic%20of%20China%20initiated%20a%20successful%20manned%20spaceflight%20program%20%2C%20while%20the%20European%20Union%20%2C%20Japan%2C%20and%20India%20have%20also%20planned%20future%20manned%20space%20missions.%20China%2C%20Russia%2C%20Japan%2C%20and%20India%20have%20advocated%20manned%20missions%20to%20the%20Moon%20during%20the%2021st%20century%2C%20while%20the%20European%20Union%20has%20advocated%20manned%20missions%20to%20both%20the%20Moon%20and%20Mars%20during%20the%2021st%20century.%0AFrom%20the%201990s%20onwards%2C%20private%20interests%20began%20promoting%20space%20tourism%20and%20then%20private%20space%20exploration%20of%20the%20Moon%20%28see%20Google%20Lunar%20X%20Prize%20%29.%0AContents%0ASee%20also%3A%20Timeline%20of%20space%20exploration%20%2C%20History%20of%20astronomy%20and%20Timeline%20of%20first%20orbital%20launches%20by%20country%0AMost%20orbital%20flight%20actually%20takes%20place%20in%20upper%20layers%20of%20the%20atmosphere%2C%20especially%20in%20the%20thermosphere%20%28not%20to%20scale%29%0AIn%20July%201950%20the%20first%20Bumper%20rocket%20is%20launched%20from%20Cape%20Canaveral%2C%20Florida.%20The%20Bumper%20was%20a%20twostage%20rocket%20consisting%20of%20a%20PostWar%20V2%20topped%20by%20a%20WAC%20Corporal%20rocket.%20It%20could%20reach%20thenrecord%20altitudes%20of%20almost%20400%20km.%20Launched%20by%20General%20Electric%20Company%2C%20this%20Bumper%20was%20used%20primarily%20for%20testing%20rocket%20systems%20and%20for%20research%20on%20the%20upper%20atmosphere.%20They%20carried%20small%20payloads%20that%20allowed%20them%20to%20measure%20attributes%20including%20air%20temperature%20and%20cosmic%20ray%20impacts.%0AThe%20first%20steps%20of%20putting%20a%20manmade%20object%20into%20space%20were%20taken%20by%20German%20scientists%20during%20World%20War%20II%20while%20testing%20the%20V2%20rocket%2C%20which%20became%20the%20first%20manmade%20object%20in%20space%20on%203%20October%201942%20with%20the%20launching%20of%20the%20A4%20.%20After%20the%20war%2C%20the%20U.S.%20used%20German%20scientists%20and%20their%20captured%20rockets%20in%20programs%20for%20both%20military%20and%20civilian%20research.%20The%20first%20scientific%20exploration%20from%20space%20was%20the%20cosmic%20radiation%20experiment%20launched%20by%20the%20U.S.%20on%20a%20V2%20rocket%20on%2010%20May%201946.%20%5B6%5D%20The%20first%20images%20of%20Earth%20taken%20from%20space%20followed%20the%20same%20year%20%5B7%5D%20%5B8%5D%20while%20the%20first%20animal%20experiment%20saw%20fruit%20flies%20lifted%20into%20space%20in%201947%2C%20both%20also%20on%20modified%20V2s%20launched%20by%20Americans.%20Starting%20in%201947%2C%20the%20Soviets%2C%20also%20with%20the%20help%20of%20German%20teams%2C%20launched%20suborbital%20V2%20rockets%20and%20their%20own%20variant%2C%20the%20R1%20%2C%20including%20radiation%20and%20animal%20experiments%20on%20some%20flights.%20These%20suborbital%20experiments%20only%20allowed%20a%20very%20short%20time%20in%20space%20which%20limited%20their%20usefulness.%0AFirst%20flights%5B%20edit%20%5D%0ASputnik%201%20%2C%20the%20first%20artificial%20satellite%20orbited%20earth%20at%20939%20to%20215%20km%20%28583%20to%20134%20mi%29%20in%201957%2C%20and%20was%20soon%20followed%20by%20Sputnik%202%20.%20See%20First%20satellite%20by%20country%20%28Replica%20Pictured%29%0AApollo%20CSM%20in%20lunar%20orbit%0AApollo%2017%20astronaut%20Harrison%20Schmitt%20standing%20next%20to%20a%20boulder%20at%20TaurusLittrow.%0AThe%20first%20successful%20orbital%20launch%20was%20of%20the%20Soviet%20unmanned%20Sputnik%201%20%28%22Satellite%201%22%29%20mission%20on%204%20October%201957.%20The%20satellite%20weighed%20about%2083%20kg%20%28183%20lb%29%2C%20and%20is%20believed%20to%20have%20orbited%20Earth%20at%20a%20height%20of%20about%20250%20km%20%28160%20mi%29.%20It%20had%20two%20radio%20transmitters%20%2820%20and%2040%20MHz%29%2C%20which%20emitted%20%22beeps%22%20that%20could%20be%20heard%20by%20radios%20around%20the%20globe.%20Analysis%20of%20the%20radio%20signals%20was%20used%20to%20gather%20information%20about%20the%20electron%20density%20of%20the%20ionosphere%2C%20while%20temperature%20and%20pressure%20data%20was%20encoded%20in%20the%20duration%20of%20radio%20beeps.%20The%20results%20indicated%20that%20the%20satellite%20was%20not%20punctured%20by%20a%20meteoroid%20.%20Sputnik%201%20was%20launched%20by%20an%20R7%20rocket.%20It%20burned%20up%20upon%20reentry%20on%203%20January%201958.%0AThis%20success%20led%20to%20an%20escalation%20of%20the%20American%20space%20program%20%2C%20which%20unsuccessfully%20attempted%20to%20launch%20a%20Vanguard%20satellite%20into%20orbit%20two%20months%20later.%20On%2031%20January%201958%2C%20the%20U.S.%20successfully%20orbited%20Explorer%201%20on%20a%20Juno%20rocket.%20In%20the%20meantime%2C%20the%20Soviet%20dog%20Laika%20became%20the%20first%20animal%20in%20orbit%20on%203%20November%201957.%0AFirst%20human%20flights%5B%20edit%20%5D%0AThe%20first%20successful%20human%20spaceflight%20was%20Vostok%201%20%28%22East%201%22%29%2C%20carrying%2027%20year%20old%20Russian%20cosmonaut%20Yuri%20Gagarin%20on%2012%20April%201961.%20The%20spacecraft%20completed%20one%20orbit%20around%20the%20globe%2C%20lasting%20about%201%20hour%20and%2048%20minutes.%20Gagarin%27s%20flight%20resonated%20around%20the%20world%3B%20it%20was%20a%20demonstration%20of%20the%20advanced%20Soviet%20space%20program%20and%20it%20opened%20an%20entirely%20new%20era%20in%20space%20exploration%3A%20human%20spaceflight%20.%0AThe%20U.S.%20first%20launched%20a%20person%20into%20space%20within%20a%20month%20of%20Vostok%201%20with%20Alan%20Shepard%20%27s%20suborbital%20flight%20in%20MercuryRedstone%203%20.%20Orbital%20flight%20was%20achieved%20by%20the%20United%20States%20when%20John%20Glenn%20%27s%20MercuryAtlas%206%20orbited%20the%20Earth%20on%2020%20February%201962.%0AValentina%20Tereshkova%20%2C%20the%20first%20woman%20in%20space%2C%20orbited%20the%20Earth%2048%20times%20aboard%20Vostok%206%20on%2016%20June%201963.%0AChina%20first%20launched%20a%20person%20into%20space%2042%20years%20after%20the%20launch%20of%20Vostok%201%2C%20on%2015%20October%202003%2C%20with%20the%20flight%20of%20Yang%20Liwei%20aboard%20the%20Shenzhou%205%20%28Spaceboat%205%29%20spacecraft.%0AFirst%20planetary%20explorations%5B%20edit%20%5D%0AThe%20first%20artificial%20object%20to%20reach%20another%20celestial%20body%20was%20Luna%202%20in%201959.%20%5B9%5D%20The%20first%20automatic%20landing%20on%20another%20celestial%20body%20was%20performed%20by%20Luna%209%20%5B10%5D%20in%201966.%20Luna%2010%20became%20the%20first%20artificial%20satellite%20of%20the%20Moon.%20%5B11%5D%0AThe%20first%20manned%20landing%20on%20another%20celestial%20body%20was%20performed%20by%20Apollo%2011%20in%20its%20lunar%20landing%20on%2020%20July%201969.%0AThe%20first%20successful%20interplanetary%20flyby%20was%20the%201962%20Mariner%202%20flyby%20of%20Venus%20%28closest%20approach%2034%2C773%20kilometers%29.%20Flybys%20for%20the%20other%20planets%20were%20first%20achieved%20in%201965%20for%20Mars%20by%20Mariner%204%20%2C%201973%20for%20Jupiter%20by%20Pioneer%2010%20%2C%201974%20for%20Mercury%20by%20Mariner%2010%20%2C%201979%20for%20Saturn%20by%20Pioneer%2011%20%2C%201986%20for%20Uranus%20by%20Voyager%202%20%2C%20and%201989%20for%20Neptune%20by%20Voyager%202.%0AThe%20first%20interplanetary%20surface%20mission%20to%20return%20at%20least%20limited%20surface%20data%20from%20another%20planet%20was%20the%201970%20landing%20of%20Venera%207%20on%20Venus%20which%20returned%20data%20to%20earth%20for%2023%20minutes.%20In%201971%20the%20Mars%203%20mission%20achieved%20the%20first%20soft%20landing%20on%20Mars%20returning%20data%20for%20almost%2020%20seconds.%20Later%20much%20longer%20duration%20surface%20missions%20were%20achieved%2C%20including%20over%206%20years%20of%20Mars%20surface%20operation%20by%20Viking%201%20from%201975%20to%201982%20and%20over%202%20hours%20of%20transmission%20from%20the%20surface%20of%20Venus%20by%20Venera%2013%20in%201982%2C%20the%20longest%20ever%20Soviet%20planetary%20surface%20mission.%0AKey%20people%20in%20early%20space%20exploration%5B%20edit%20%5D%0AThe%20dream%20of%20stepping%20into%20the%20outer%20reaches%20of%20the%20Earth%27s%20atmosphere%20was%20driven%20by%20the%20fiction%20of%20Jules%20Verne%20%5B12%5D%20%5B13%5D%20%5B14%5D%20and%20H.G.Wells%20%2C%20%5B15%5D%20and%20rocket%20technology%20was%20developed%20to%20try%20to%20realise%20this%20vision.%20The%20German%20V2%20was%20the%20first%20rocket%20to%20travel%20into%20space%2C%20overcoming%20the%20problems%20of%20thrust%20and%20material%20failure.%20During%20the%20final%20days%20of%20World%20War%20II%20this%20technology%20was%20obtained%20by%20both%20the%20Americans%20and%20Soviets%20as%20were%20its%20designers.%20The%20initial%20driving%20force%20for%20further%20development%20of%20the%20technology%20was%20a%20weapons%20race%20for%20intercontinental%20ballistic%20missiles%20%28%20ICBMs%20%29%20to%20be%20used%20as%20longrange%20carriers%20for%20fast%20nuclear%20weapon%20delivery%2C%20but%20in%201961%20when%20USSR%20launched%20the%20first%20man%20into%20space%2C%20the%20U.S.%20declared%20itself%20to%20be%20in%20a%20%22%20Space%20Race%20%22%20with%20the%20Soviets.%0AKonstantin%20Tsiolkovsky%20%2C%20Robert%20Goddard%20%2C%20Hermann%20Oberth%20%2C%20and%20Reinhold%20Tiling%20laid%20the%20groundwork%20of%20rocketry%20in%20the%20early%20years%20of%20the%2020th%20century.%0AWernher%20von%20Braun%20was%20the%20lead%20rocket%20engineer%20for%20Nazi%20Germany%27s%20World%20War%20II%20V2%20rocket%20project.%20In%20the%20last%20days%20of%20the%20war%20he%20led%20a%20caravan%20of%20workers%20in%20the%20German%20rocket%20program%20to%20the%20American%20lines%2C%20where%20they%20surrendered%20and%20were%20brought%20to%20the%20USA%20to%20work%20on%20U.S.%20rocket%20development%20%28%22%20Operation%20Paperclip%20%22%29.%20He%20acquired%20American%20citizenship%20and%20led%20the%20team%20that%20developed%20and%20launched%20Explorer%201%20%2C%20the%20first%20American%20satellite.%20Von%20Braun%20later%20led%20the%20team%20at%20NASA%20%27s%20Marshall%20Space%20Flight%20Center%20which%20developed%20the%20Saturn%20V%20moon%20rocket.%0AInitially%20the%20race%20for%20space%20was%20often%20led%20by%20Sergei%20Korolyov%20%2C%20whose%20legacy%20includes%20both%20the%20R7%20and%20Soyuz%20%E2%80%94which%20remain%20in%20service%20to%20this%20day.%20Korolev%20was%20the%20mastermind%20behind%20the%20first%20satellite%2C%20first%20man%20%28and%20first%20woman%29%20in%20orbit%20and%20first%20spacewalk.%20Until%20his%20death%20his%20identity%20was%20a%20closely%20guarded%20state%20secret%3B%20not%20even%20his%20mother%20knew%20that%20he%20was%20responsible%20for%20creating%20the%20Soviet%20space%20program.%0AKerim%20Kerimov%20was%20one%20of%20the%20founders%20of%20the%20Soviet%20space%20program%20and%20was%20one%20of%20the%20lead%20architects%20behind%20the%20first%20human%20spaceflight%20%28%20Vostok%201%20%29%20alongside%20Sergey%20Korolyov.%20After%20Korolyov%27s%20death%20in%201966%2C%20Kerimov%20became%20the%20lead%20scientist%20of%20the%20Soviet%20space%20program%20and%20was%20responsible%20for%20the%20launch%20of%20the%20first%20space%20stations%20from%201971%20to%201991%2C%20including%20the%20Salyut%20and%20Mir%20series%2C%20and%20their%20precursors%20in%201967%2C%20the%20Cosmos%20186%20and%20Cosmos%20188%20.%20%5B16%5D%20%5B17%5D%0AOther%20key%20people%5B%20edit%20%5D%0AValentin%20Glushko%20held%20the%20role%20of%20Chief%20Engine%20Designer%20for%20USSR.%20Glushko%20designed%20many%20of%20the%20engines%20used%20on%20the%20early%20Soviet%20rockets%2C%20but%20was%20constantly%20at%20odds%20with%20Korolyov.%0AVasily%20Mishin%20was%20Chief%20Designer%20working%20under%20Sergey%20Korolyov%20and%20one%20of%20first%20Soviets%20to%20inspect%20the%20captured%20German%20V2%20design.%20Following%20the%20death%20of%20Sergei%20Korolev%2C%20Mishin%20was%20held%20responsible%20for%20the%20Soviet%20failure%20to%20be%20first%20country%20to%20place%20a%20man%20on%20the%20moon.%0ARobert%20Gilruth%20was%20the%20NASA%20head%20of%20the%20Space%20Task%20Force%20and%20director%20of%2025%20manned%20space%20flights.%20Gilruth%20was%20the%20person%20who%20suggested%20to%20John%20F.%20Kennedy%20that%20the%20Americans%20take%20the%20bold%20step%20of%20reaching%20the%20Moon%20in%20an%20attempt%20to%20reclaim%20space%20superiority%20from%20the%20Soviets.%0AChristopher%20C.%20Kraft%2C%20Jr.%20was%20NASA%27s%20first%20flight%20director%20%2C%20who%20oversaw%20development%20of%20Mission%20Control%20and%20associated%20technologies%20and%20procedures.%0AMaxime%20Faget%20was%20the%20designer%20of%20the%20Mercury%20capsule%3B%20he%20played%20a%20key%20role%20in%20designing%20the%20Gemini%20and%20Apollo%20spacecraft%2C%20and%20contributed%20to%20the%20design%20of%20the%20Space%20Shuttle%20.%0ATargets%20of%20exploration%5B%20edit%20%5D%0AThe%20Sun%5B%20edit%20%5D%0AWhile%20the%20Sun%20will%20probably%20not%20be%20physically%20explored%20in%20the%20close%20future%2C%20one%20of%20the%20reasons%20for%20going%20into%20space%20is%20to%20know%20more%20about%20the%20Sun.%20Once%20above%20the%20atmosphere%20in%20particular%20and%20the%20Earth%27s%20magnetic%20field%2C%20this%20gives%20access%20to%20the%20Solar%20wind%20and%20infrared%20and%20ultraviolet%20radiations%20that%20cannot%20reach%20the%20surface%20of%20the%20Earth.%20The%20Sun%20generates%20most%20space%20weather%20%2C%20which%20can%20affect%20power%20generation%20and%20transmission%20systems%20on%20Earth%20and%20interfere%20with%2C%20and%20even%20damage%2C%20satellites%20and%20space%20probes.%0AMESSENGER%20image%20of%20Mercury%0AMain%20article%3A%20Exploration%20of%20Mercury%0AMercury%20remains%20the%20least%20explored%20of%20the%20inner%20planets%20.%20As%20of%20May%202013%2C%20the%20Mariner%2010%20and%20MESSENGER%20missions%20have%20been%20the%20only%20missions%20that%20have%20made%20close%20observations%20of%20Mercury.%20MESSENGER%20entered%20orbit%20around%20Mercury%20in%20March%202011%2C%20to%20further%20investigate%20the%20observations%20made%20by%20Mariner%2010%20in%201975%20%28Munsell%2C%202006b%29.%0AA%20MESSENGER%20image%20from%2018%2C000%20km%20showing%20a%20region%20about%20500%20km%20across%0AA%20third%20mission%20to%20Mercury%2C%20scheduled%20to%20arrive%20in%202020%2C%20BepiColombo%20is%20to%20include%20two%20probes%20.%20BepiColombo%20is%20a%20joint%20mission%20between%20Japan%20and%20the%20European%20Space%20Agency%20.%20MESSENGER%20and%20BepiColombo%20are%20intended%20to%20gather%20complementary%20data%20to%20help%20scientists%20understand%20many%20of%20the%20mysteries%20discovered%20by%20Mariner%2010%27s%20flybys%20.%0AFlights%20to%20other%20planets%20within%20the%20Solar%20System%20are%20accomplished%20at%20a%20cost%20in%20energy%2C%20which%20is%20described%20by%20the%20net%20change%20in%20velocity%20of%20the%20spacecraft%2C%20or%20deltav%20.%20Due%20to%20the%20relatively%20high%20deltav%20to%20reach%20Mercury%20and%20its%20proximity%20to%20the%20Sun%2C%20it%20is%20difficult%20to%20explore%20and%20orbits%20around%20it%20are%20rather%20unstable.%0AMain%20article%3A%20Observations%20and%20explorations%20of%20Venus%0AVenus%20was%20the%20first%20target%20of%20interplanetary%20flyby%20and%20lander%20missions%20and%2C%20despite%20one%20of%20the%20most%20hostile%20surface%20environments%20in%20the%20solar%20system%2C%20has%20had%20more%20landers%20sent%20to%20it%20%28nearly%20all%20from%20the%20Soviet%20Union%29%20than%20any%20other%20planet%20in%20the%20solar%20system.%20The%20first%20successful%20Venus%20flyby%20was%20the%20American%20Mariner%202%20spacecraft%2C%20which%20flew%20past%20Venus%20in%201962.%20Mariner%202%20has%20been%20followed%20by%20several%20other%20flybys%20by%20multiple%20space%20agencies%20often%20as%20part%20of%20missions%20using%20a%20Venus%20flyby%20to%20provide%20a%20gravitational%20assist%20en%20route%20to%20other%20celestial%20bodies.%20In%201967%20Venera%204%20became%20the%20first%20probe%20to%20enter%20and%20directly%20examine%20the%20atmosphere%20of%20Venus.%20In%201970%20Venera%207%20became%20the%20first%20successful%20lander%20to%20reach%20the%20surface%20of%20Venus%20and%20by%201985%20it%20had%20been%20followed%20by%20eight%20additional%20successful%20Soviet%20Venus%20landers%20which%20provided%20images%20and%20other%20direct%20surface%20data.%20Starting%20in%201975%20with%20the%20Soviet%20orbiter%20Venera%209%20some%20ten%20successful%20orbiter%20missions%20have%20been%20sent%20to%20Venus%2C%20including%20later%20missions%20which%20were%20able%20to%20map%20the%20surface%20of%20Venus%20using%20radar%20to%20pierce%20the%20obscuring%20atmosphere.%0AThe%20%22marble%22%20Earth%20picture%20taken%20by%20Apollo%2017%0AFirst%20television%20image%20of%20Earth%20from%20space%0AMain%20article%3A%20Earth%20observation%20satellite%0ASpace%20exploration%20has%20been%20used%20as%20a%20tool%20to%20understand%20the%20Earth%20as%20a%20celestial%20object%20in%20its%20own%20right.%20Orbital%20missions%20can%20provide%20data%20for%20the%20Earth%20that%20can%20be%20difficult%20or%20impossible%20to%20obtain%20from%20a%20purely%20groundbased%20point%20of%20reference.%0AFor%20example%2C%20the%20existence%20of%20the%20Van%20Allen%20belts%20was%20unknown%20until%20their%20discovery%20by%20the%20United%20States%27%20first%20artificial%20satellite%2C%20Explorer%201%20.%20These%20belts%20contain%20radiation%20trapped%20by%20the%20Earth%27s%20magnetic%20fields%2C%20which%20currently%20renders%20construction%20of%20habitable%20space%20stations%20above%201000%20km%20impractical.%20Following%20this%20early%20unexpected%20discovery%2C%20a%20large%20number%20of%20Earth%20observation%20satellites%20have%20been%20deployed%20specifically%20to%20explore%20the%20Earth%20from%20a%20space%20based%20perspective.%20These%20satellites%20have%20significantly%20contributed%20to%20the%20understanding%20of%20a%20variety%20of%20earth%20based%20phenomena.%20For%20instance%2C%20the%20hole%20in%20the%20ozone%20layer%20was%20found%20by%20an%20artificial%20satellite%20that%20was%20exploring%20Earth%27s%20atmosphere%2C%20and%20satellites%20have%20allowed%20for%20the%20discovery%20of%20archeological%20sites%20or%20geological%20formations%20that%20were%20difficult%20or%20impossible%20to%20otherwise%20identify.%0AThe%20Moon%20as%20seen%20from%20the%20Earth%0AMain%20article%3A%20Exploration%20of%20the%20Moon%0AEarth%27s%20Moon%20was%20the%20first%20celestial%20body%20to%20be%20the%20object%20of%20space%20exploration.%20It%20holds%20the%20distinctions%20of%20being%20the%20first%20remote%20celestial%20object%20to%20be%20flown%20by%2C%20orbited%2C%20and%20landed%20upon%20by%20spacecraft%2C%20and%20the%20only%20remote%20celestial%20object%20ever%20to%20be%20visited%20by%20humans.%0AIn%201959%20the%20Soviets%20obtained%20the%20first%20images%20of%20the%20far%20side%20of%20the%20Moon%20%2C%20never%20previously%20visible%20to%20humans.%20The%20U.S.%20exploration%20of%20the%20Moon%20began%20with%20the%20Ranger%204%20impactor%20in%201962.%20Starting%20in%201966%20the%20Soviets%20successfully%20deployed%20a%20number%20of%20landers%20to%20the%20Moon%20which%20were%20able%20to%20obtain%20data%20directly%20from%20the%20Moon%27s%20surface%3B%20just%20four%20months%20later%2C%20Surveyor%201%20marked%20the%20debut%20of%20a%20successful%20series%20of%20U.S.%20landers.%20The%20Soviet%20unmanned%20missions%20culminated%20in%20the%20Lunokhod%20program%20in%20the%20early%20%2770s%20which%20included%20the%20first%20unmanned%20rovers%20and%20also%20successfully%20returned%20lunar%20soil%20samples%20to%20the%20Earth%20for%20study.%20This%20marked%20the%20first%20%28and%20to%20date%20the%20only%29%20automated%20return%20of%20extraterrestrial%20soil%20samples%20to%20the%20Earth.%20Unmanned%20exploration%20of%20the%20Moon%20continues%20with%20various%20nations%20periodically%20deploying%20lunar%20orbiters%2C%20and%20in%202008%20the%20Indian%20Moon%20Impact%20Probe%20.%0AManned%20exploration%20of%20the%20Moon%20began%20in%201968%20with%20the%20Apollo%208%20mission%20that%20successfully%20orbited%20the%20Moon%2C%20the%20first%20time%20any%20extraterrestrial%20object%20was%20orbited%20by%20humans.%20In%201969%20the%20Apollo%2011%20mission%20marked%20the%20first%20time%20humans%20set%20foot%20upon%20another%20world.%20Manned%20exploration%20of%20the%20Moon%20did%20not%20continue%20for%20long%2C%20however.%20The%20Apollo%2017%20mission%20in%201972%20marked%20the%20most%20recent%20human%20visit%20there%2C%20and%20the%20next%2C%20Exploration%20Mission%202%20%2C%20is%20due%20to%20orbit%20the%20Moon%20in%202019.%20Robotic%20missions%20are%20still%20pursued%20vigorously.%0AMars%20as%20seen%20by%20the%20HST%0ASurface%20of%20mars%20by%20the%20Spirit%20rover%20in%202004%0AMain%20article%3A%20Exploration%20of%20Mars%0AThe%20exploration%20of%20Mars%20has%20been%20an%20important%20part%20of%20the%20space%20exploration%20programs%20of%20the%20Soviet%20Union%20%28later%20Russia%29%2C%20the%20United%20States%2C%20Europe%2C%20and%20Japan.%20Dozens%20of%20robotic%20spacecraft%20%2C%20including%20orbiters%20%2C%20landers%20%2C%20and%20rovers%20%2C%20have%20been%20launched%20toward%20Mars%20since%20the%201960s.%20These%20missions%20were%20aimed%20at%20gathering%20data%20about%20current%20conditions%20and%20answering%20questions%20about%20the%20history%20of%20Mars.%20The%20questions%20raised%20by%20the%20scientific%20community%20are%20expected%20to%20not%20only%20give%20a%20better%20appreciation%20of%20the%20red%20planet%20but%20also%20yield%20further%20insight%20into%20the%20past%2C%20and%20possible%20future%2C%20of%20Earth.%0AThe%20exploration%20of%20Mars%20has%20come%20at%20a%20considerable%20financial%20cost%20with%20roughly%20twothirds%20of%20all%20spacecraft%20destined%20for%20Mars%20failing%20before%20completing%20their%20missions%2C%20with%20some%20failing%20before%20they%20even%20began.%20Such%20a%20high%20failure%20rate%20can%20be%20attributed%20to%20the%20complexity%20and%20large%20number%20of%20variables%20involved%20in%20an%20interplanetary%20journey%2C%20and%20has%20led%20researchers%20to%20jokingly%20speak%20of%20The%20Great%20Galactic%20Ghoul%20%5B18%5D%20which%20subsists%20on%20a%20diet%20of%20Mars%20probes.%20This%20phenomenon%20is%20also%20informally%20known%20as%20the%20Mars%20Curse%20.%20%5B19%5D%0AMain%20article%3A%20Exploration%20of%20Phobos%0AThe%20Russian%20space%20mission%20FobosGrunt%20%2C%20which%20launched%20on%209%20November%202011%20experienced%20a%20failure%20leaving%20it%20stranded%20in%20low%20Earth%20orbit%20.%20%5B20%5D%20It%20was%20to%20begin%20exploration%20of%20the%20Phobos%20and%20Martian%20circumterrestrial%20orbit%2C%20and%20study%20whether%20the%20moons%20of%20Mars%2C%20or%20at%20least%20Phobos%2C%20could%20be%20a%20%22transshipment%20point%22%20for%20spaceships%20travelling%20to%20Mars.%20%5B21%5D%0AImage%20of%20Io%20taken%20by%20the%20Galileo%20spacecraft%0AThe%20exploration%20of%20Jupiter%20has%20consisted%20solely%20of%20a%20number%20of%20automated%20NASA%20spacecraft%20visiting%20the%20planet%20since%201973.%20A%20large%20majority%20of%20the%20missions%20have%20been%20%22flybys%22%2C%20in%20which%20detailed%20observations%20are%20taken%20without%20the%20probe%20landing%20or%20entering%20orbit%3B%20the%20Galileo%20spacecraft%20is%20the%20only%20one%20to%20have%20orbited%20the%20planet.%20As%20Jupiter%20is%20believed%20to%20have%20only%20a%20relatively%20small%20rocky%20core%20and%20no%20real%20solid%20surface%2C%20a%20landing%20mission%20is%20nearly%20impossible.%0AReaching%20Jupiter%20from%20Earth%20requires%20a%20deltav%20of%209.2%20km%2Fs%2C%20%5B22%5D%20which%20is%20comparable%20to%20the%209.7%20km%2Fs%20deltav%20needed%20to%20reach%20low%20Earth%20orbit.%20%5B23%5D%20Fortunately%2C%20gravity%20assists%20through%20planetary%20flybys%20can%20be%20used%20to%20reduce%20the%20energy%20required%20at%20launch%20to%20reach%20Jupiter%2C%20albeit%20at%20the%20cost%20of%20a%20significantly%20longer%20flight%20duration.%20%5B22%5D%0AJupiter%20has%20over%2060%20known%20moons%20%2C%20many%20of%20which%20have%20relatively%20little%20known%20information%20about%20them.%0AA%20picture%20of%20Saturn%20taken%20by%20Voyager%202%20.%0AHuygens%20image%20from%20the%20surface%20of%20Titan%0AMain%20article%3A%20Exploration%20of%20Saturn%0ASaturn%20has%20been%20explored%20only%20through%20unmanned%20spacecraft%20launched%20by%20NASA%2C%20including%20one%20mission%20%28%20Cassini%E2%80%93Huygens%20%29%20planned%20and%20executed%20in%20cooperation%20with%20other%20space%20agencies.%20These%20missions%20consist%20of%20flybys%20in%201979%20by%20Pioneer%2011%20%2C%20in%201980%20by%20Voyager%201%20%2C%20in%201982%20by%20Voyager%202%20and%20an%20orbital%20mission%20by%20the%20Cassini%20spacecraft%20which%20entered%20orbit%20in%202004%20and%20is%20expected%20to%20continue%20its%20mission%20well%20into%202012.%0ASaturn%20has%20at%20least%2062%20known%20moons%20%2C%20although%20the%20exact%20number%20is%20debatable%20since%20Saturn%27s%20rings%20are%20made%20up%20of%20vast%20numbers%20of%20independently%20orbiting%20objects%20of%20varying%20sizes.%20The%20largest%20of%20the%20moons%20is%20Titan%20.%20Titan%20holds%20the%20distinction%20of%20being%20the%20only%20moon%20in%20the%20solar%20system%20with%20an%20atmosphere%20denser%20and%20thicker%20than%20that%20of%20the%20Earth.%20As%20a%20result%20of%20the%20deployment%20from%20the%20Cassini%20spacecraft%20of%20the%20Huygens%20probe%20and%20its%20successful%20landing%20on%20Titan%2C%20Titan%20also%20holds%20the%20distinction%20of%20being%20the%20only%20moon%20%28apart%20from%20Earth%27s%20own%20Moon%29%20to%20be%20successfully%20explored%20with%20a%20lander.%0AUranus%20from%20Voyager%202%0AMain%20article%3A%20Exploration%20of%20Uranus%0AThe%20exploration%20of%20Uranus%20has%20been%20entirely%20through%20the%20Voyager%202%20spacecraft%2C%20with%20no%20other%20visits%20currently%20planned.%20Given%20its%20axial%20tilt%20of%2097.77%C2%B0%2C%20with%20its%20polar%20regions%20exposed%20to%20sunlight%20or%20darkness%20for%20long%20periods%2C%20scientists%20were%20not%20sure%20what%20to%20expect%20at%20Uranus.%20The%20closest%20approach%20to%20Uranus%20occurred%20on%2024%20January%201986.%20Voyager%202%20studied%20the%20planet%27s%20unique%20atmosphere%20and%20magnetosphere%20.%20Voyager%202%20also%20examined%20its%20ring%20system%20and%20the%20moons%20of%20Uranus%20including%20all%20five%20of%20the%20previously%20known%20moons%2C%20while%20discovering%20an%20additional%20ten%20previously%20unknown%20moons.%0AImages%20of%20Uranus%20proved%20to%20have%20a%20very%20uniform%20appearance%2C%20with%20no%20evidence%20of%20the%20dramatic%20storms%20or%20atmospheric%20banding%20evident%20on%20Jupiter%20and%20Saturn.%20Great%20effort%20was%20required%20to%20even%20identify%20a%20few%20clouds%20in%20the%20images%20of%20the%20planet.%20The%20magnetosphere%20of%20Uranus%2C%20however%2C%20proved%20to%20be%20completely%20unique%20and%20proved%20to%20be%20profoundly%20affected%20by%20the%20planet%27s%20unusual%20axial%20tilt.%20In%20contrast%20to%20the%20bland%20appearance%20of%20Uranus%20itself%2C%20striking%20images%20were%20obtained%20of%20the%20moons%20of%20Uranus%2C%20including%20evidence%20that%20Miranda%20had%20been%20unusually%20geologically%20active.%0APicture%20of%20Neptune%20taken%20by%20Voyager%202%0ATriton%20as%20imaged%20by%20Voyager%202%0AMain%20article%3A%20Exploration%20of%20Neptune%0AThe%20exploration%20of%20Neptune%20began%20with%20the%2025%20August%201989%20Voyager%202%20flyby%2C%20the%20sole%20visit%20to%20the%20system%20as%20of%202014.%20The%20possibility%20of%20a%20Neptune%20Orbiter%20has%20been%20discussed%2C%20but%20no%20other%20missions%20have%20been%20given%20serious%20thought.%0AAlthough%20the%20extremely%20uniform%20appearance%20of%20Uranus%20during%20Voyager%202%27s%20visit%20in%201986%20had%20led%20to%20expectations%20that%20Neptune%20would%20also%20have%20few%20visible%20atmospheric%20phenomena%2C%20Voyager%202%20found%20that%20Neptune%20had%20obvious%20banding%2C%20visible%20clouds%2C%20auroras%20%2C%20and%20even%20a%20conspicuous%20anticyclone%20storm%20system%20rivaled%20in%20size%20only%20by%20Jupiter%27s%20small%20Spot.%20Neptune%20also%20proved%20to%20have%20the%20fastest%20winds%20of%20any%20planet%20in%20the%20solar%20system%2C%20measured%20as%20high%20as%202%2C100%20km%2Fh.%20%5B24%5D%20Voyager%202%20also%20examined%20Neptune%27s%20ring%20and%20moon%20system.%20It%20discovered%20900%20complete%20rings%20and%20additional%20partial%20ring%20%22arcs%22%20around%20Neptune.%20In%20addition%20to%20examining%20Neptune%27s%20three%20previously%20known%20moons%2C%20Voyager%202%20also%20discovered%20five%20previously%20unknown%20moons%2C%20one%20of%20which%2C%20Proteus%20%2C%20proved%20to%20be%20the%20last%20largest%20moon%20in%20the%20system.%20Data%20from%20Voyager%20further%20reinforced%20the%20view%20that%20Neptune%27s%20largest%20moon%2C%20Triton%20%2C%20is%20a%20captured%20Kuiper%20belt%20object.%20%5B25%5D%0AOther%20objects%20in%20the%20Solar%20system%5B%20edit%20%5D%0AMain%20article%3A%20Exploration%20of%20Pluto%0APluto%20and%20Charon%20%281994%29%0AThe%20dwarf%20planet%20Pluto%20%28considered%20a%20planet%20until%20the%20IAU%20redefined%20%22planet%22%20in%20October%202006%20%5B26%5D%20%29%20presents%20significant%20challenges%20for%20spacecraft%20because%20of%20its%20great%20distance%20from%20Earth%20%28requiring%20high%20velocity%20for%20reasonable%20trip%20times%29%20and%20small%20mass%20%28making%20capture%20into%20orbit%20very%20difficult%20at%20present%29.%20Voyager%201%20could%20have%20visited%20Pluto%2C%20but%20controllers%20opted%20instead%20for%20a%20close%20flyby%20of%20Saturn%27s%20moon%20Titan%2C%20resulting%20in%20a%20trajectory%20incompatible%20with%20a%20Pluto%20flyby.%20Voyager%202%20never%20had%20a%20plausible%20trajectory%20for%20reaching%20Pluto.%20%5B27%5D%0APluto%20continues%20to%20be%20of%20great%20interest%2C%20despite%20its%20reclassification%20as%20the%20lead%20and%20nearest%20member%20of%20a%20new%20and%20growing%20class%20of%20distant%20icy%20bodies%20of%20intermediate%20size%2C%20in%20mass%20between%20the%20remaining%20eight%20planets%20and%20the%20small%20rocky%20objects%20historically%20termed%20asteroids%20%28and%20also%20the%20first%20member%20of%20the%20important%20subclass%2C%20defined%20by%20orbit%20and%20known%20as%20%22%20Plutinos%20%22%29.%20After%20an%20intense%20political%20battle%2C%20a%20mission%20to%20Pluto%20dubbed%20New%20Horizons%20was%20granted%20funding%20from%20the%20US%20government%20in%202003.%20%5B28%5D%20New%20Horizons%20was%20launched%20successfully%20on%2019%20January%202006.%20In%20early%202007%20the%20craft%20made%20use%20of%20a%20gravity%20assist%20from%20Jupiter%20.%20Its%20closest%20approach%20to%20Pluto%20will%20be%20on%2014%20July%202015%3B%20scientific%20observations%20of%20Pluto%20will%20begin%20five%20months%20prior%20to%20closest%20approach%20and%20will%20continue%20for%20at%20least%20a%20month%20after%20the%20encounter.%0AAsteroids%20and%20comets%5B%20edit%20%5D%0AComet%20103P%2FHartley%0AAsteroid%204%20Vesta%2C%20imaged%20by%20the%20Dawn%20spacecraft%0AUntil%20the%20advent%20of%20space%20travel%20%2C%20objects%20in%20the%20asteroid%20belt%20were%20merely%20pinpricks%20of%20light%20in%20even%20the%20largest%20telescopes%2C%20their%20shapes%20and%20terrain%20remaining%20a%20mystery.%20Several%20asteroids%20have%20now%20been%20visited%20by%20probes%2C%20the%20first%20of%20which%20was%20Galileo%20%2C%20which%20flew%20past%20two%3A%20951%20Gaspra%20in%201991%2C%20followed%20by%20243%20Ida%20in%201993.%20Both%20of%20these%20lay%20near%20enough%20to%20Galileo%27s%20planned%20trajectory%20to%20Jupiter%20that%20they%20could%20be%20visited%20at%20acceptable%20cost.%20The%20first%20landing%20on%20an%20asteroid%20was%20performed%20by%20the%20NEAR%20Shoemaker%20probe%20in%202000%2C%20following%20an%20orbital%20survey%20of%20the%20object.%20The%20dwarf%20planet%20Ceres%20and%20the%20asteroid%204%20Vesta%20%2C%20two%20of%20the%20three%20largest%20asteroids%2C%20are%20targets%20of%20NASA%27s%20Dawn%20mission%20%2C%20launched%20in%202007.%0AWhile%20many%20comets%20have%20been%20closely%20studied%20from%20Earth%20sometimes%20with%20centuriesworth%20of%20observations%2C%20only%20a%20few%20comets%20have%20been%20closely%20visited.%20In%201985%2C%20the%20International%20Cometary%20Explorer%20conducted%20the%20first%20comet%20flyby%20%28%2021P%2FGiacobiniZinner%20%29%20before%20joining%20the%20Halley%20Armada%20studying%20the%20famous%20comet.%20The%20Deep%20Impact%20probe%20smashed%20into%209P%2FTempel%20to%20learn%20more%20about%20its%20structure%20and%20composition%20while%20the%20Stardust%20mission%20returned%20samples%20of%20another%20comet%27s%20tail.%20The%20Philae%20lander%20successfully%20landed%20on%20comet%2067P%2FChuryumov%E2%80%93Gerasimenko%20in%202014%20as%20part%20of%20the%20broader%20Rosetta%20mission.%0AHayabusa%20was%20an%20unmanned%20spacecraft%20developed%20by%20the%20Japan%20Aerospace%20Exploration%20Agency%20to%20return%20a%20sample%20of%20material%20from%20a%20small%20nearEarth%20asteroid%20named%2025143%20Itokawa%20to%20Earth%20for%20further%20analysis.%20Hayabusa%20was%20launched%20on%209%20May%202003%20and%20rendezvoused%20with%20Itokawa%20in%20midSeptember%202005.%20After%20arriving%20at%20Itokawa%2C%20Hayabusa%20studied%20the%20asteroid%27s%20shape%2C%20spin%2C%20topography%2C%20colour%2C%20composition%2C%20density%2C%20and%20history.%20In%20November%202005%2C%20it%20landed%20on%20the%20asteroid%20to%20collect%20samples.%20The%20spacecraft%20returned%20to%20Earth%20on%2013%20June%202010.%0ADeep%20space%20exploration%5B%20edit%20%5D%0AFuture%20of%20space%20exploration%5B%20edit%20%5D%0AConcept%20art%20for%20a%20NASA%20Vision%20mission%0AThe%20examples%20and%20perspective%20in%20this%20section%20may%20not%20represent%20a%20worldwide%20view%20of%20the%20subject.%20Please%20improve%20this%20article%20and%20discuss%20the%20issue%20on%20the%20talk%20page%20.%0A%28September%202013%29%0AIn%20the%202000s%2C%20several%20plans%20for%20space%20exploration%20were%20announced%3B%20both%20government%20entities%20and%20the%20private%20sector%20have%20space%20exploration%20objectives.%20China%20has%20announced%20plans%20to%20have%20a%2060ton%20multimodule%20space%20station%20in%20orbit%20by%202020.%0AThe%20NASA%20Authorization%20Act%20of%202010%20provides%20objectives%20for%20American%20space%20exploration.%20NASA%20proposes%20to%20move%20forward%20with%20the%20development%20of%20the%20Space%20Launch%20System%20%28SLS%29%2C%20which%20will%20be%20designed%20to%20carry%20the%20Orion%20MultiPurpose%20Crew%20Vehicle%2C%20as%20well%20as%20important%20cargo%2C%20equipment%2C%20and%20science%20experiments%20to%20Earth%27s%20orbit%20and%20destinations%20beyond.%20Additionally%2C%20the%20SLS%20will%20serve%20as%20a%20back%20up%20for%20commercial%20and%20international%20partner%20transportation%20services%20to%20the%20International%20Space%20Station.%20The%20SLS%20rocket%20will%20incorporate%20technological%20investments%20from%20the%20Space%20Shuttle%20program%20and%20the%20Constellation%20program%20in%20order%20to%20take%20advantage%20of%20proven%20hardware%20and%20reduce%20development%20and%20operations%20costs.%20The%20first%20developmental%20flight%20is%20targeted%20for%20the%20end%20of%202017.%20%5B29%5D%0AAI%20in%20Space%20Exploration%5B%20edit%20%5D%0AThe%20idea%20of%20using%20high%20level%20automated%20systems%20for%20space%20missions%20has%20become%20a%20desirable%20goal%20to%20space%20agencies%20all%20around%20the%20world.%20Such%20systems%20are%20believed%20to%20yield%20benefits%20such%20as%20lower%20cost%2C%20less%20human%20oversight%2C%20and%20ability%20to%20explore%20deeper%20in%20space%20which%20is%20usually%20restricted%20by%20long%20communications%20with%20human%20controllers.%20%5B30%5D%0AAutonomous%20System%5B%20edit%20%5D%0AAutonomy%20is%20defined%20by%203%20requirements%3A%20%5B30%5D%0ABeing%20able%20to%20sense%20the%20world%20and%20their%20state%2C%20make%20decisions%2C%20and%20carry%20them%20out%20on%20their%20own%0ACan%20interpret%20the%20given%20goal%20as%20a%20list%20of%20actions%20to%20take%0AFail%20flexibly%0ABenefits%5B%20edit%20%5D%0AAutonomed%20technologies%20would%20be%20able%20to%20perform%20beyond%20predetermined%20actions.%20It%20would%20analyze%20all%20possible%20states%20and%20events%20happening%20around%20them%20and%20come%20up%20with%20a%20safe%20response.%20In%20addition%2C%20such%20technologies%20can%20reduce%20launch%20cost%20and%20ground%20involvement.%20Performance%20would%20increase%20as%20well.%20Autonomy%20would%20be%20able%20to%20quickly%20respond%20upon%20encountering%20an%20unforeseen%20event%2C%20especially%20in%20deep%20space%20exploration%20where%20communication%20back%20to%20Earth%20would%20take%20too%20long.%20%5B30%5D%0ANASA%E2%80%99s%20Autonomous%20Science%20Experiment%5B%20edit%20%5D%0ANASA%20began%20its%20autonomous%20science%20experiment%20%28ASE%29%20on%20the%20Earth%20Observing%201%20%28EO1%29%20which%20is%20NASA%E2%80%99s%20first%20satellite%20in%20the%20new%20millennium%20program%20Earth%20observing%20series%20launched%20on%2021%20November%202000.%20The%20autonomy%20of%20ASE%20is%20capable%20of%20onboard%20science%20analysis%2C%20replanning%2C%20robust%20execution%2C%20and%20later%20the%20addition%20of%20modelbased%20diagnostic.%20Images%20obtained%20by%20the%20EO1%20are%20analyzed%20onboard%20and%20downlinked%20when%20a%20change%20or%20an%20interesting%20event%20occur.%20The%20ASE%20software%20has%20successfully%20provided%20over%2010%2C000%20science%20images.%20%5B30%5D%0AMain%20article%3A%20Space%20advocacy%0AAstronaut%20Buzz%20Aldrin%20%2C%20had%20a%20personal%20Communion%20service%20when%20he%20first%20arrived%20on%20the%20surface%20of%20the%20Moon%20.%0AThe%20research%20that%20is%20conducted%20by%20national%20space%20exploration%20agencies%2C%20such%20as%20NASA%20and%20Roscosmos%20%2C%20is%20one%20of%20the%20reasons%20supporters%20cite%20to%20justify%20government%20expenses.%20Economic%20analyses%20of%20the%20NASA%20programs%20often%20showed%20ongoing%20economic%20benefits%20%28such%20as%20NASA%20spinoffs%20%29%2C%20generating%20many%20times%20the%20revenue%20of%20the%20cost%20of%20the%20program.%20%5B31%5D%20It%20is%20also%20argued%20that%20space%20exploration%20would%20lead%20to%20the%20extraction%20of%20resources%20on%20other%20planets%20and%20especially%20asteroids%2C%20which%20contain%20billions%20of%20dollars%20worth%20of%20minerals%20and%20metals.%20The%20revenue%20generated%20from%20such%20expeditions%20could%20generate%20a%20lot%20of%20revenue.%20%5B32%5D%20As%20well%2C%20it%20has%20been%20argued%20that%20space%20exploration%20programs%20help%20inspire%20youth%20to%20study%20in%20science%20and%20engineering.%20%5B33%5D%0AAnother%20claim%20is%20that%20space%20exploration%20is%20a%20necessity%20to%20mankind%20and%20that%20staying%20on%20Earth%20will%20lead%20to%20extinction%20.%20Some%20of%20the%20reasons%20are%20lack%20of%20natural%20resources%2C%20comets%2C%20nuclear%20war%2C%20and%20worldwide%20epidemic.%20Stephen%20Hawking%20%2C%20renowned%20British%20theoretical%20physicist%2C%20said%20that%20%22I%20don%27t%20think%20the%20human%20race%20will%20survive%20the%20next%20thousand%20years%2C%20unless%20we%20spread%20into%20space.%20There%20are%20too%20many%20accidents%20that%20can%20befall%20life%20on%20a%20single%20planet.%20But%20I%27m%20an%20optimist.%20We%20will%20reach%20out%20to%20the%20stars.%22%20%5B34%5D%0ANASA%20has%20produced%20a%20series%20of%20public%20service%20announcement%20videos%20supporting%20the%20concept%20of%20space%20exploration.%20%5B35%5D%0AOverall%2C%20the%20public%20remains%20largely%20supportive%20of%20both%20manned%20and%20unmanned%20space%20exploration.%20According%20to%20an%20Associated%20Press%20Poll%20conducted%20in%20July%202003%2C%2071%25%20of%20U.S.%20citizens%20agreed%20with%20the%20statement%20that%20the%20space%20program%20is%20%22a%20good%20investment%22%2C%20compared%20to%2021%25%20who%20did%20not.%20%5B36%5D%0AArthur%20C.%20Clarke%20%281950%29%20presented%20a%20summary%20of%20motivations%20for%20the%20human%20exploration%20of%20space%20in%20his%20nonfiction%20semitechnical%20monograph%20Interplanetary%20Flight.%20%5B37%5D%20He%20argued%20that%20humanity%27s%20choice%20is%20essentially%20between%20expansion%20off%20the%20Earth%20into%20space%2C%20versus%20cultural%20%28and%20eventually%20biological%29%20stagnation%20and%20death.%0AMain%20article%3A%20Spaceflight%0ASpaceflight%20is%20the%20use%20of%20space%20technology%20to%20achieve%20the%20flight%20of%20spacecraft%20into%20and%20through%20outer%20space.%0ASpaceflight%20is%20used%20in%20space%20exploration%2C%20and%20also%20in%20commercial%20activities%20like%20space%20tourism%20and%20satellite%20telecommunications%20.%20Additional%20noncommercial%20uses%20of%20spaceflight%20include%20space%20observatories%20%2C%20reconnaissance%20satellites%20and%20other%20earth%20observation%20satellites%20.%0AA%20spaceflight%20typically%20begins%20with%20a%20rocket%20launch%20%2C%20which%20provides%20the%20initial%20thrust%20to%20overcome%20the%20force%20of%20gravity%20and%20propels%20the%20spacecraft%20from%20the%20surface%20of%20the%20Earth.%20Once%20in%20space%2C%20the%20motion%20of%20a%20spacecraft%E2%80%94both%20when%20unpropelled%20and%20when%20under%20propulsion%E2%80%94is%20covered%20by%20the%20area%20of%20study%20called%20astrodynamics%20.%20Some%20spacecraft%20remain%20in%20space%20indefinitely%2C%20some%20disintegrate%20during%20atmospheric%20reentry%20%2C%20and%20others%20reach%20a%20planetary%20or%20lunar%20surface%20for%20landing%20or%20impact.%0AMain%20article%3A%20Satellite%0ASatellites%20are%20used%20for%20a%20large%20number%20of%20purposes.%20Common%20types%20include%20military%20%28spy%29%20and%20civilian%20Earth%20observation%20satellites%2C%20communication%20satellites%2C%20navigation%20satellites%2C%20weather%20satellites%2C%20and%20research%20satellites.%20Space%20stations%20and%20human%20spacecraft%20in%20orbit%20are%20also%20satellites.%0ACommercialization%20of%20space%5B%20edit%20%5D%0AMain%20articles%3A%20Astrobiology%20and%20Extraterrestrial%20life%0AAstrobiology%20is%20the%20interdisciplinary%20study%20of%20life%20in%20the%20universe%2C%20combining%20aspects%20of%20astronomy%20%2C%20biology%20and%20geology.%20%5B38%5D%20It%20is%20focused%20primarily%20on%20the%20study%20of%20the%20origin%20%2C%20distribution%20and%20evolution%20of%20life.%20It%20is%20also%20known%20as%20exobiology%20%28from%20Greek%3A%20%CE%AD%CE%BE%CF%89%2C%20exo%2C%20%22outside%22%29.%20%5B39%5D%20%5B40%5D%20%5B41%5D%20The%20term%20%22Xenobiology%22%20has%20been%20used%20as%20well%2C%20but%20this%20is%20technically%20incorrect%20because%20its%20terminology%20means%20%22biology%20of%20the%20foreigners%22.%20%5B42%5D%20Astrobiologists%20must%20also%20consider%20the%20possibility%20of%20life%20that%20is%20chemically%20entirely%20distinct%20from%20any%20life%20found%20on%20earth.%20%5B43%5D%20In%20the%20Solar%20System%20some%20of%20the%20prime%20locations%20for%20current%20or%20past%20astrobiology%20are%20on%20Enceladus%2C%20Europa%2C%20Mars%2C%20and%20Titan.%20%5B44%5D%0ALiving%20in%20space%5B%20edit%20%5D%0AThe%20European%20Space%20Agency%20%27s%20Columbus%20Module%20at%20the%20International%20Space%20Station%20%2C%20launched%20into%20space%20on%20the%20U.S.%20Space%20Shuttle%20mission%20STS122%20in%202008%0ASpace%20colonization%2C%20also%20called%20space%20settlement%20and%20space%20humanization%2C%20would%20be%20the%20permanent%20autonomous%20%28selfsufficient%29%20human%20habitation%20of%20locations%20outside%20Earth%2C%20especially%20of%20natural%20satellites%20or%20planets%20such%20as%20the%20Moon%20or%20Mars%20%2C%20using%20significant%20amounts%20of%20insitu%20resource%20utilization%20.%0ATo%20date%2C%20the%20longest%20human%20occupation%20of%20space%20is%20the%20International%20Space%20Station%20which%20has%20been%20in%20continuous%20use%20for%20700114000000000000014%20years%2C%20700136000000000000036%20days.%20Valeri%20Polyakov%20%27s%20record%20single%20spaceflight%20of%20almost%20438%20days%20aboard%20the%20Mir%20space%20station%20has%20not%20been%20surpassed.%20Longterm%20stays%20in%20space%20reveal%20issues%20with%20bone%20and%20muscle%20loss%20in%20low%20gravity%2C%20immune%20system%20suppression%2C%20and%20radiation%20exposure.%0AMany%20past%20and%20current%20concepts%20for%20the%20continued%20exploration%20and%20colonization%20of%20space%20focus%20on%20a%20return%20to%20the%20Moon%20as%20a%20%22stepping%20stone%22%20to%20the%20other%20planets%2C%20especially%20Mars.%20At%20the%20end%20of%202006%20NASA%20announced%20they%20were%20planning%20to%20build%20a%20permanent%20Moon%20base%20with%20continual%20presence%20by%202024.%20%5B45%5D%0ABeyond%20the%20technical%20factors%20that%20could%20make%20living%20in%20space%20more%20widespread%2C%20it%20has%20been%20suggested%20that%20the%20lack%20of%20private%20property%20%2C%20the%20inability%20or%20difficulty%20in%20establishing%20property%20rights%20in%20space%2C%20has%20been%20an%20impediment%20to%20the%20development%20of%20space%20for%20human%20habitation.%20Since%20the%20advent%20of%20space%20technology%20in%20the%20latter%20half%20of%20the%20twentieth%20century%2C%20the%20ownership%20of%20property%20in%20space%20has%20been%20murky%2C%20with%20strong%20arguments%20both%20for%20and%20against.%20In%20particular%2C%20the%20making%20of%20national%20territorial%20claims%20in%20outer%20space%20and%20on%20celestial%20bodies%20has%20been%20specifically%20proscribed%20by%20the%20Outer%20Space%20Treaty%20%2C%20which%20had%20been%2C%20as%20of%202012%20%5Bupdate%5D%20%2C%20ratified%20by%20all%20spacefaring%20nations%20.%20%5B46%5D%0A
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Thu, 14 May 2015 09:37:14 GMT
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ Content-Length:
26
+ - '6191'
27
+ Connection:
28
+ - keep-alive
29
+ Access-Control-Allow-Origin:
30
+ - '*'
31
+ Server:
32
+ - TornadoServer/4.0.2
33
+ Via:
34
+ - kong/0.2.0-2
35
+ body:
36
+ encoding: UTF-8
37
+ string: '[{"distance": 0.008024, "title": "Space exploration", "url": "http://en.wikipedia.org/wiki?curid=28431",
38
+ "text": "Space exploration is the discovery and exploration of outer space
39
+ by means of space technology. Physical exploration of space is conducted both
40
+ by human spaceflights and by robotic spacecraft.\nWhile the observation of
41
+ objects in space, known as astronomy, predates reliable recorded history,
42
+ it was the development of large and relatively efficient rockets during the
43
+ early 20th century that allowed physical space exploration to become a reality.
44
+ ", "permalink_id": "32fbb1196dfec6724603016c30cc180e", "date": null, "document_id":
45
+ "wikipedia-28431"}, {"distance": 0.104618, "title": "Unmanned NASA missions",
46
+ "url": "http://en.wikipedia.org/wiki?curid=33196514", "text": "Following is
47
+ a sampling of some of NASA''s past and present programs excluding manned spacecraft.
48
+ The years in brackets are for first and latest launching. A program is a number
49
+ of flights or missions with the same kind of satellite, therefore the name
50
+ of the program and the name of the satellite used will often be the same.
51
+ ", "permalink_id": "3fad11fb7517ffc67bd8ac3329b16200", "date": null, "document_id":
52
+ "wikipedia-33196514"}, {"distance": 0.132443, "title": "Exploration of Mars",
53
+ "url": "http://en.wikipedia.org/wiki?curid=426143", "text": "The exploration
54
+ of Mars has taken place over hundreds of years, beginning in earnest with
55
+ the invention and development of the telescope during the 1600s. Increasingly
56
+ detailed views of the planet from Earth inspired speculation about its environment
57
+ and possible life \u2013 even intelligent civilizations \u2013 that might
58
+ be found there. Probes sent from Earth beginning in the late 20th century
59
+ have yielded a dramatic increase in knowledge about the Martian system, focused
60
+ primarily on understanding its geology and possible habitability potential.\n",
61
+ "permalink_id": "a9b9b8dc31337e0b6324f9dd26773a7a", "date": null, "document_id":
62
+ "wikipedia-426143"}, {"distance": 0.142127, "title": "Space probe", "url":
63
+ "http://en.wikipedia.org/wiki?curid=10204411", "text": "A space probe is a
64
+ scientific space exploration mission in which a spacecraft leaves Earth and
65
+ explores space. It may approach the Moon; enter interplanetary space; flyby,
66
+ orbit or land on other planetary bodies; or approach interstellar space. Space
67
+ probes are a form of robotic spacecraft.\n", "permalink_id": "f2d1f847bb20abb4ba41dff8841ee30a",
68
+ "date": null, "document_id": "wikipedia-10204411"}, {"distance": 0.148978,
69
+ "title": "Moon landing", "url": "http://en.wikipedia.org/wiki?curid=1558077",
70
+ "text": "A moon landing is the arrival of a spacecraft on the surface of the
71
+ Moon. This includes both manned and unmanned (robotic) missions. The first
72
+ human-made object to reach the surface of the Moon was the Soviet Union''s
73
+ Luna 2 mission, on 13 September 1959.\n", "permalink_id": "8dbe6cfb5110c9d047ee8a2c0ef16523",
74
+ "date": null, "document_id": "wikipedia-1558077"}, {"distance": 0.162808,
75
+ "title": "Cassini\u2013Huygens", "url": "http://en.wikipedia.org/wiki?curid=67941",
76
+ "text": "Cassini\u2013Huygens is a Flagship-class NASA-ESA-ASI robotic spacecraft
77
+ sent to the Saturn system. It has studied the planet and its many natural
78
+ satellites since arriving there in 2004, also observing Jupiter, the heliosphere,
79
+ and testing the theory of relativity. Launched in 1997 after nearly two decades
80
+ of development, it includes a Saturn orbiter and an atmospheric probe/lander
81
+ for the moon Titan called \"Huygens\", which entered and landed on Titan in
82
+ 2005. ", "permalink_id": "87f63107a7049dd868ee4d5abcced68c", "date": null,
83
+ "document_id": "wikipedia-67941"}, {"distance": 0.166252, "title": "2001 Mars
84
+ Odyssey", "url": "http://en.wikipedia.org/wiki?curid=18959", "text": "2001
85
+ Mars Odyssey is a robotic spacecraft orbiting the planet Mars. The project
86
+ was developed by NASA, and contracted out to Lockheed Martin, with an expected
87
+ cost for the entire mission of US$297 million. Its mission is to use spectrometers
88
+ and electronic imagers to detect evidence of past or present water and volcanic
89
+ activity on Mars. ", "permalink_id": "333046acacde3086d33504bb954305b9", "date":
90
+ null, "document_id": "wikipedia-18959"}, {"distance": 0.174185, "title": "Mars
91
+ Observer", "url": "http://en.wikipedia.org/wiki?curid=82858", "text": "The
92
+ Mars Observer spacecraft, also known as the Mars Geoscience/Climatology Orbiter,
93
+ was a 1,018-kilogram (2,244 lb) robotic space probe launched by NASA on September
94
+ 25, 1992 to study the Martian surface, atmosphere, climate and magnetic field.
95
+ During the interplanetary cruise phase, communication with the spacecraft
96
+ was lost on August 21, 1993, 3 days prior to orbital insertion. Attempts to
97
+ re-establish communication with the spacecraft were unsuccessful.\n", "permalink_id":
98
+ "3c52555b09deead2647ddb26b29ba262", "date": null, "document_id": "wikipedia-82858"},
99
+ {"distance": 0.17566, "title": "Manned mission to Mars", "url": "http://en.wikipedia.org/wiki?curid=11589297",
100
+ "text": "A manned mission to Mars has been the subject of science fiction,
101
+ engineering, and scientific proposals throughout the 20th century and into
102
+ the 21st century. The plans comprise proposals not only to land on but in
103
+ the end for settling on and terraforming Mars, while exploiting its moons
104
+ Phobos and Deimos.\nPreliminary work for missions has been undertaken since
105
+ the 1950s, with planned missions typically taking place 10 to 30 years in
106
+ the future. ", "permalink_id": "9e677119c316ddc3df2144f99d1cfec5", "date":
107
+ null, "document_id": "wikipedia-11589297"}, {"distance": 0.176047, "title":
108
+ "Titan Saturn System Mission", "url": "http://en.wikipedia.org/wiki?curid=20713632",
109
+ "text": "Titan Saturn System Mission (TSSM) was a joint NASA/ESA proposal
110
+ for an exploration of Saturn and its moons Titan and Enceladus, where many
111
+ complex phenomena were revealed by the Cassini\u2013Huygens mission. With
112
+ an estimated NASA cost of $2.5 Billion (FY07), TSSM is proposed to launch
113
+ in 2020, get gravity assists from Earth and Venus, and arrive at the Saturn
114
+ system in 2029. ", "permalink_id": "3eea43c14c70e94da1a5a7f6c09b63d4", "date":
115
+ null, "document_id": "wikipedia-20713632"}]'
116
+ http_version:
117
+ recorded_at: Thu, 14 May 2015 09:37:14 GMT
118
+ recorded_with: VCR 2.9.3
@@ -8,9 +8,9 @@ describe LateralRecommender do
8
8
  it 'errors with invalid API key' do
9
9
  api = LateralRecommender::API.new 'no'
10
10
  VCR.use_cassette('invalid_key') do
11
- response = api.near_text 'test'
12
- expect(response[:error][:status_code]).to eq(401)
13
- expect(response[:error][:message]).to include('invalid subscription key')
11
+ response = api.recommend_by_text 'test'
12
+ expect(response[:error][:status_code]).to eq(403)
13
+ expect(response[:error][:message]).to include('credentials are invalid')
14
14
  end
15
15
  end
16
16
 
@@ -23,144 +23,110 @@ describe LateralRecommender do
23
23
  end
24
24
 
25
25
  it 'gets recommendations from text' do
26
- VCR.use_cassette('near_text') do
27
- response = api.near_text body
28
- expect(response.length).to eq(20)
26
+ VCR.use_cassette('recommend_by_text') do
27
+ response = api.recommend_by_text body
28
+ expect(response.length).to eq(1)
29
29
  expect(response.first['document_id']).to eq('doc_id')
30
30
  end
31
31
  end
32
32
 
33
33
  it 'gets recommendations by ID' do
34
- VCR.use_cassette('near_id') do
35
- response = api.near_id 'doc_id'
36
- expect(response.length).to eq(20)
34
+ VCR.use_cassette('recommend_by_id') do
35
+ response = api.recommend_by_id 'doc_id'
36
+ expect(response.length).to eq(1)
37
37
  expect(response.first['document_id']).to eq('doc_id')
38
38
  end
39
39
  end
40
40
 
41
- it 'gets recommendations from text in movies' do
42
- api = LateralRecommender::API.new ENV['API_KEY'], 'movies'
43
- VCR.use_cassette('near_text_movies') do
44
- response = api.near_text body
45
- expect(response.length).to eq(19)
46
- expect(response.first['title']).to eq('First World')
47
- end
48
- end
49
-
50
- it 'gets recommendations from text in news' do
51
- api = LateralRecommender::API.new ENV['API_KEY'], 'news'
52
- VCR.use_cassette('near_text_news') do
53
- response = api.near_text body
54
- expect(response.length).to be > 10 # This should be done better
55
- expect(response.first['title']).to include('The Space Missions and Events')
56
- end
57
- end
58
-
59
- it 'gets recommendations from text in wikipedia' do
60
- api = LateralRecommender::API.new ENV['API_KEY'], 'wikipedia'
61
- VCR.use_cassette('near_text_wikipedia') do
62
- response = api.near_text body
41
+ it 'gets recommendations by text in SEC' do
42
+ api = LateralRecommender::API.new ENV['API_KEY'], 'sec'
43
+ VCR.use_cassette('recommend_by_text_sec') do
44
+ response = api.recommend_by_text body, collections: '["item1a"]'
63
45
  expect(response.length).to eq(10)
64
- expect(response.first['title']).to eq('Space exploration')
46
+ expect(response.first['title']).to include('DIGITALGLOBE, INC._2014_10')
65
47
  end
66
48
  end
67
49
 
68
- it 'gets recommendations from text in pubmed' do
69
- api = LateralRecommender::API.new ENV['API_KEY'], 'pubmed'
70
- VCR.use_cassette('near_text_pubmed') do
71
- response = api.near_text body
50
+ it 'gets recommendations by ID in SEC' do
51
+ api = LateralRecommender::API.new ENV['API_KEY'], 'sec'
52
+ VCR.use_cassette('recommend_by_id_sec') do
53
+ id = 'SEC_item_1A-http://www.sec.gov/Archives/edgar/data/1099369/0001062993-14-006877.txt_item_1A'
54
+ response = api.recommend_by_id id, collections: '["item1a"]'
72
55
  expect(response.length).to eq(10)
73
- expect(response.first['title']).to include('NASA and the search')
74
- end
75
- end
76
-
77
- it 'gets recommendations from text in arxiv' do
78
- api = LateralRecommender::API.new ENV['API_KEY'], 'arxiv'
79
- VCR.use_cassette('near_text_arxiv') do
80
- response = api.near_text body
81
- expect(response.length).to eq(10)
82
- expect(response.first['title']).to include('A Lunar L2-Farside')
83
- end
84
- end
85
-
86
- it 'gets recommendations by ID in arxiv' do
87
- api = LateralRecommender::API.new ENV['API_KEY'], 'arxiv'
88
- VCR.use_cassette('near_id_arxiv') do
89
- response = api.near_id 'arxiv-http://arxiv.org/abs/1403.2165'
90
- expect(response.length).to eq(10)
91
- expect(response.first['title']).to include('Set-valued sorting index')
56
+ expect(response.first['title']).to include('DESTINY MEDIA TECHNOLOGIES')
92
57
  end
93
58
  end
94
59
 
95
- it 'adds a user' do
96
- VCR.use_cassette('add_user') do
97
- response = api.add_user('user_id')
98
- expect(response['id']).to eq('user_id')
99
- end
100
- end
101
-
102
- it 'adds a user document' do
103
- VCR.use_cassette('add_user_document') do
104
- response = api.add_user_document('user_id', 'doc_id', body)
105
- expect(response['id']).to eq('doc_id')
106
- expect(response['user_id']).to eq('user_id')
107
- expect(response['body']).to include('Space exploration')
108
- end
109
- end
110
-
111
- # TODO: Change this so there is a document ID to validate
112
- it 'gets recommendations for a user' do
113
- VCR.use_cassette('near_user') do
114
- response = api.near_user('user_id')
115
- expect(response).to be_a(Array)
116
- expect(response.length).to be > 10
60
+ it 'gets recommendations by text in news' do
61
+ api = LateralRecommender::API.new ENV['API_KEY'], 'news'
62
+ VCR.use_cassette('recommend_by_text_news') do
63
+ response = api.recommend_by_text body
64
+ expect(response.length).to be > 10 # This should be done better
65
+ expect(response.first['title']).to include('NASA announces details of ')
117
66
  end
118
67
  end
119
68
 
120
- it 'gets recommendations for a user from movies' do
121
- api = LateralRecommender::API.new ENV['API_KEY'], 'movies'
122
- VCR.use_cassette('near_user_movies') do
123
- response = api.near_user('user_id')
124
- expect(response.length).to eq(19)
125
- expect(response.first['title']).to include('First World')
69
+ it 'gets recommendations from ID in news' do
70
+ api = LateralRecommender::API.new ENV['API_KEY'], 'news'
71
+ VCR.use_cassette('recommend_by_id_news') do
72
+ response = api.recommend_by_id '3076491'
73
+ expect(response.length).to be > 10 # This should be done better
74
+ expect(response.first['title']).to include('Goodbye MongoDB, Hello Pos')
126
75
  end
127
76
  end
128
77
 
129
- it 'gets recommendations for a user from news' do
130
- api = LateralRecommender::API.new ENV['API_KEY'], 'news'
131
- VCR.use_cassette('near_user_news') do
132
- response = api.near_user('user_id')
133
- expect(response.length).to be > 10 # This should be done better
134
- expect(response.first['title']).to include('The Space Missions and')
78
+ it 'gets recommendations by text in wikipedia' do
79
+ api = LateralRecommender::API.new ENV['API_KEY'], 'wikipedia'
80
+ VCR.use_cassette('recommend_by_text_wikipedia') do
81
+ response = api.recommend_by_text body
82
+ expect(response.length).to eq(10)
83
+ expect(response.first['title']).to eq('Space exploration')
135
84
  end
136
85
  end
137
86
 
138
- it 'gets recommendations for a user from wikipedia' do
87
+ it 'gets recommendations by ID in wikipedia' do
139
88
  api = LateralRecommender::API.new ENV['API_KEY'], 'wikipedia'
140
- VCR.use_cassette('near_user_wikipedia') do
141
- response = api.near_user('user_id')
142
- expect(response.length).to eq(9) # First one is cut because it is same page
143
- expect(response.first['title']).to include('Unmanned NASA missions')
89
+ VCR.use_cassette('recommend_by_id_wikipedia') do
90
+ response = api.recommend_by_id 'wikipedia-11589297'
91
+ expect(response.length).to eq(10)
92
+ expect(response.first['title']).to eq('Manned mission to Mars')
144
93
  end
145
94
  end
146
95
 
147
- it 'gets recommendations for a user from pubmed' do
96
+ it 'gets recommendations by text in pubmed' do
148
97
  api = LateralRecommender::API.new ENV['API_KEY'], 'pubmed'
149
- VCR.use_cassette('near_user_pubmed') do
150
- response = api.near_user('user_id')
98
+ VCR.use_cassette('recommend_by_text_pubmed') do
99
+ response = api.recommend_by_text body
151
100
  expect(response.length).to eq(10)
152
- expect(response.first['title']).to include('NASA and the search for')
101
+ expect(response.first['title']).to include('NASA and the search')
153
102
  end
154
103
  end
155
104
 
156
- it 'gets recommendations for a user from arxiv' do
105
+ # it 'gets recommendations by ID in pubmed' do
106
+ # api = LateralRecommender::API.new ENV['API_KEY'], 'pubmed'
107
+ # VCR.use_cassette('recommend_by_id_pubmed') do
108
+ # response = api.recommend_by_id 'pubmed-15881781-1'
109
+ # expect(response.length).to eq(10)
110
+ # expect(response.first['title']).to include('NASA and the search')
111
+ # end
112
+ # end
113
+
114
+ it 'gets recommendations by text in arxiv' do
157
115
  api = LateralRecommender::API.new ENV['API_KEY'], 'arxiv'
158
- VCR.use_cassette('near_user_arxiv') do
159
- response = api.near_user('user_id')
116
+ VCR.use_cassette('recommend_by_text_arxiv') do
117
+ response = api.recommend_by_text body
160
118
  expect(response.length).to eq(10)
161
119
  expect(response.first['title']).to include('A Lunar L2-Farside')
162
120
  end
163
121
  end
164
122
 
123
+ it 'gets recommendations by ID in arxiv' do
124
+ api = LateralRecommender::API.new ENV['API_KEY'], 'arxiv'
125
+ VCR.use_cassette('recommend_by_id_arxiv') do
126
+ response = api.recommend_by_id 'arxiv-http://arxiv.org/abs/1403.2165'
127
+ expect(response.length).to eq(10)
128
+ expect(response.first['title']).to include('Set-valued sorting index')
129
+ end
130
+ end
165
131
  end
166
132
  end