alchemy-api-rb 0.1.0

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 (57) hide show
  1. data/.gitignore +19 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +22 -0
  4. data/README.md +80 -0
  5. data/Rakefile +11 -0
  6. data/alchemy-api-rb.gemspec +24 -0
  7. data/lib/alchemy-api.rb +47 -0
  8. data/lib/alchemy-api/author_extraction.rb +21 -0
  9. data/lib/alchemy-api/base.rb +78 -0
  10. data/lib/alchemy-api/concept_tagging.rb +16 -0
  11. data/lib/alchemy-api/config.rb +34 -0
  12. data/lib/alchemy-api/entity_extraction.rb +15 -0
  13. data/lib/alchemy-api/keyword_extraction.rb +15 -0
  14. data/lib/alchemy-api/language_detection.rb +17 -0
  15. data/lib/alchemy-api/relation_extraction.rb +16 -0
  16. data/lib/alchemy-api/sentiment_analysis.rb +16 -0
  17. data/lib/alchemy-api/text_categorization.rb +21 -0
  18. data/lib/alchemy-api/text_extraction.rb +19 -0
  19. data/lib/alchemy-api/version.rb +3 -0
  20. data/spec/alchemy_api_spec.rb +70 -0
  21. data/spec/author_extraction_spec.rb +43 -0
  22. data/spec/base_spec.rb +20 -0
  23. data/spec/concept_tagging_spec.rb +44 -0
  24. data/spec/entity_extraction_spec.rb +44 -0
  25. data/spec/keyword_extraction_spec.rb +50 -0
  26. data/spec/language_detection_spec.rb +43 -0
  27. data/spec/relation_extraction_spec.rb +44 -0
  28. data/spec/sentiment_analysis_spec.rb +43 -0
  29. data/spec/spec_helper.rb +13 -0
  30. data/spec/text_categorization_spec.rb +43 -0
  31. data/spec/text_extraction_spec.rb +32 -0
  32. data/spec/vcr_cassettes/author_basic_html_json_search.yml +46 -0
  33. data/spec/vcr_cassettes/author_basic_url_json_search.yml +47 -0
  34. data/spec/vcr_cassettes/category_basic_html_json_search.yml +43 -0
  35. data/spec/vcr_cassettes/category_basic_text_json_search.yml +46 -0
  36. data/spec/vcr_cassettes/category_basic_url_json_search.yml +46 -0
  37. data/spec/vcr_cassettes/concept_basic_html_json_search.yml +54 -0
  38. data/spec/vcr_cassettes/concept_basic_text_json_search.yml +55 -0
  39. data/spec/vcr_cassettes/concept_basic_url_json_search.yml +75 -0
  40. data/spec/vcr_cassettes/entity_basic_html_json_search.yml +61 -0
  41. data/spec/vcr_cassettes/entity_basic_text_json_search.yml +60 -0
  42. data/spec/vcr_cassettes/entity_basic_url_json_search.yml +71 -0
  43. data/spec/vcr_cassettes/keyword_basic_html_json_search.yml +48 -0
  44. data/spec/vcr_cassettes/keyword_basic_text_json_search.yml +48 -0
  45. data/spec/vcr_cassettes/keyword_basic_url_json_search.yml +67 -0
  46. data/spec/vcr_cassettes/language_basic_html_json_search.yml +49 -0
  47. data/spec/vcr_cassettes/language_basic_text_json_search.yml +49 -0
  48. data/spec/vcr_cassettes/language_basic_url_json_search.yml +49 -0
  49. data/spec/vcr_cassettes/relation_basic_html_json_search.yml +53 -0
  50. data/spec/vcr_cassettes/relation_basic_text_json_search.yml +53 -0
  51. data/spec/vcr_cassettes/relation_basic_url_json_search.yml +58 -0
  52. data/spec/vcr_cassettes/sentiment_basic_html_json_search.yml +48 -0
  53. data/spec/vcr_cassettes/sentiment_basic_text_json_search.yml +48 -0
  54. data/spec/vcr_cassettes/sentiment_basic_url_json_search.yml +48 -0
  55. data/spec/vcr_cassettes/text_basic_html_json_search.yml +47 -0
  56. data/spec/vcr_cassettes/text_basic_url_json_search.yml +47 -0
  57. metadata +196 -0
@@ -0,0 +1,13 @@
1
+ require 'minitest/spec'
2
+ require 'minitest/autorun'
3
+ require 'turn/autorun'
4
+ require 'vcr'
5
+
6
+ require File.expand_path(File.join(File.dirname(__FILE__), '../lib/alchemy-api'))
7
+
8
+ API_KEY = File.read('./.keys').chomp
9
+
10
+ VCR.configure do |c|
11
+ c.cassette_library_dir = 'spec/vcr_cassettes'
12
+ c.hook_into :fakeweb
13
+ end
@@ -0,0 +1,43 @@
1
+ require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper'))
2
+
3
+ describe AlchemyAPI, "text_categorization" do
4
+ before do
5
+ AlchemyAPI::Config.apikey = API_KEY
6
+ end
7
+
8
+ subject() { AlchemyAPI::TextCategorization.new }
9
+
10
+ describe "#search" do
11
+ {
12
+ :text => "lorem ipsum",
13
+ :url => "http://www.alchemyapi.com/"
14
+ }.each do |type,value|
15
+ [:json].each do |output_mode|
16
+ before do
17
+ AlchemyAPI::Config.output_mode = output_mode
18
+ end
19
+
20
+ describe "#{type} search with #{output_mode} results" do
21
+ it "returns an array of results" do
22
+ VCR.use_cassette("category_basic_#{type}_#{output_mode}_search") do
23
+ result = subject.search(type => value)
24
+
25
+ result.must_be_instance_of Hash
26
+ end
27
+ end
28
+
29
+ it "includes the keyword text and relavence" do
30
+ VCR.use_cassette("category_basic_#{type}_#{output_mode}_search") do
31
+ result = subject.search(type => value)
32
+
33
+ result["url"].wont_be_nil
34
+ result["category"].wont_be_nil
35
+ result["score"].wont_be_nil
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
43
+
@@ -0,0 +1,32 @@
1
+ require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper'))
2
+
3
+ describe AlchemyAPI, "text_extraction" do
4
+ before do
5
+ AlchemyAPI::Config.apikey = API_KEY
6
+ end
7
+
8
+ subject() { AlchemyAPI::TextExtraction.new }
9
+
10
+ describe "#search" do
11
+ {
12
+ :html => "<html><body>foo bar</body></html>",
13
+ :url => "http://www.google.com"
14
+ }.each do |type,value|
15
+ [:json].each do |output_mode|
16
+ before do
17
+ AlchemyAPI::Config.output_mode = output_mode
18
+ end
19
+
20
+ describe "#{type} search with #{output_mode} results" do
21
+ it "returns an array of results" do
22
+ VCR.use_cassette("text_basic_#{type}_#{output_mode}_search") do
23
+ result = subject.search(type => value)
24
+
25
+ result.must_be_instance_of String
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://access.alchemyapi.com/calls/html/HTMLGetAuthor
6
+ body:
7
+ encoding: US-ASCII
8
+ string: apikey=cbc80670767f2e9ccecc9a6f4df6f45f207d9cda&html=<html><body>Google
9
+ is a large, by Joe Smith</body></html>&outputMode=json
10
+ headers:
11
+ content-type:
12
+ - application/x-www-form-urlencoded
13
+ accept:
14
+ - ! '*/*'
15
+ user-agent:
16
+ - Ruby
17
+ connection:
18
+ - close
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ server:
25
+ - nginx
26
+ date:
27
+ - Sun, 17 Jun 2012 04:44:42 GMT
28
+ content-type:
29
+ - application/json
30
+ connection:
31
+ - close
32
+ content-length:
33
+ - '310'
34
+ cache-control:
35
+ - no-cache
36
+ access-control-allow-origin:
37
+ - ! '*'
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ! "{\r\n \"status\": \"ERROR\",\r\n \"statusInfo\": \"author-not-found:cannot-locate\",\r\n
41
+ \ \"usage\": \"By accessing AlchemyAPI or using information generated by
42
+ AlchemyAPI, you are agreeing to be bound by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
43
+ \ \"url\": \"\",\r\n \"author\": \"\"\r\n}\r\n"
44
+ http_version: '1.1'
45
+ recorded_at: Sun, 17 Jun 2012 03:46:41 GMT
46
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://access.alchemyapi.com/calls/url/URLGetAuthor
6
+ body:
7
+ encoding: US-ASCII
8
+ string: apikey=cbc80670767f2e9ccecc9a6f4df6f45f207d9cda&url=http://googleblog.blogspot.com/2012/06/find-out-what-people-are-searching-for.html&outputMode=json
9
+ headers:
10
+ content-type:
11
+ - application/x-www-form-urlencoded
12
+ accept:
13
+ - ! '*/*'
14
+ user-agent:
15
+ - Ruby
16
+ connection:
17
+ - close
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ server:
24
+ - nginx
25
+ date:
26
+ - Sun, 17 Jun 2012 04:44:43 GMT
27
+ content-type:
28
+ - application/json
29
+ connection:
30
+ - close
31
+ content-length:
32
+ - '392'
33
+ cache-control:
34
+ - no-cache
35
+ access-control-allow-origin:
36
+ - ! '*'
37
+ - ! '*'
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ! "{\r\n \"status\": \"ERROR\",\r\n \"statusInfo\": \"author-not-found:cannot-locate\",\r\n
41
+ \ \"usage\": \"By accessing AlchemyAPI or using information generated by
42
+ AlchemyAPI, you are agreeing to be bound by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
43
+ \ \"url\": \"http://googleblog.blogspot.com/2012/06/find-out-what-people-are-searching-for.html\",\r\n
44
+ \ \"author\": \"\"\r\n}\r\n"
45
+ http_version: '1.1'
46
+ recorded_at: Sun, 17 Jun 2012 03:46:42 GMT
47
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,43 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://access.alchemyapi.com/calls/html/HTMLGetCategory
6
+ body:
7
+ encoding: US-ASCII
8
+ string: apikey=cbc80670767f2e9ccecc9a6f4df6f45f207d9cda&html=<html><body>foo
9
+ bar</body></html>&outputMode=json
10
+ headers:
11
+ content-type:
12
+ - application/x-www-form-urlencoded
13
+ accept:
14
+ - ! '*/*'
15
+ user-agent:
16
+ - Ruby
17
+ connection:
18
+ - close
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ server:
25
+ - nginx
26
+ date:
27
+ - Sun, 17 Jun 2012 04:10:32 GMT
28
+ content-type:
29
+ - application/json
30
+ connection:
31
+ - close
32
+ content-length:
33
+ - '63'
34
+ cache-control:
35
+ - no-cache
36
+ access-control-allow-origin:
37
+ - ! '*'
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ! "{\r\n \"status\": \"ERROR\",\r\n \"statusInfo\": \"invalid-url\"\r\n}\r\n"
41
+ http_version: '1.1'
42
+ recorded_at: Sun, 17 Jun 2012 03:12:32 GMT
43
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://access.alchemyapi.com/calls/text/TextGetCategory
6
+ body:
7
+ encoding: US-ASCII
8
+ string: apikey=cbc80670767f2e9ccecc9a6f4df6f45f207d9cda&text=lorem ipsum&outputMode=json
9
+ headers:
10
+ content-type:
11
+ - application/x-www-form-urlencoded
12
+ accept:
13
+ - ! '*/*'
14
+ user-agent:
15
+ - Ruby
16
+ connection:
17
+ - close
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ server:
24
+ - nginx
25
+ date:
26
+ - Sun, 17 Jun 2012 04:10:33 GMT
27
+ content-type:
28
+ - application/json
29
+ connection:
30
+ - close
31
+ content-length:
32
+ - '317'
33
+ cache-control:
34
+ - no-cache
35
+ access-control-allow-origin:
36
+ - ! '*'
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ! "{\r\n \"status\": \"OK\",\r\n \"usage\": \"By accessing AlchemyAPI
40
+ or using information generated by AlchemyAPI, you are agreeing to be bound
41
+ by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
42
+ \ \"url\": \"\",\r\n \"language\": \"english\",\r\n \"category\":
43
+ \"unknown\",\r\n \"score\": \"0.400001\"\r\n}\r\n"
44
+ http_version: '1.1'
45
+ recorded_at: Sun, 17 Jun 2012 03:12:32 GMT
46
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://access.alchemyapi.com/calls/url/URLGetCategory
6
+ body:
7
+ encoding: US-ASCII
8
+ string: apikey=cbc80670767f2e9ccecc9a6f4df6f45f207d9cda&url=http://www.alchemyapi.com/&outputMode=json
9
+ headers:
10
+ content-type:
11
+ - application/x-www-form-urlencoded
12
+ accept:
13
+ - ! '*/*'
14
+ user-agent:
15
+ - Ruby
16
+ connection:
17
+ - close
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ server:
24
+ - nginx
25
+ date:
26
+ - Sun, 17 Jun 2012 04:10:33 GMT
27
+ content-type:
28
+ - application/json
29
+ connection:
30
+ - close
31
+ content-length:
32
+ - '353'
33
+ cache-control:
34
+ - no-cache
35
+ access-control-allow-origin:
36
+ - ! '*'
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ! "{\r\n \"status\": \"OK\",\r\n \"usage\": \"By accessing AlchemyAPI
40
+ or using information generated by AlchemyAPI, you are agreeing to be bound
41
+ by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
42
+ \ \"url\": \"http://www.alchemyapi.com/\",\r\n \"language\": \"english\",\r\n
43
+ \ \"category\": \"computer_internet\",\r\n \"score\": \"0.781348\"\r\n}\r\n"
44
+ http_version: '1.1'
45
+ recorded_at: Sun, 17 Jun 2012 03:12:32 GMT
46
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://access.alchemyapi.com/calls/html/HTMLGetRankedConcepts
6
+ body:
7
+ encoding: US-ASCII
8
+ string: apikey=cbc80670767f2e9ccecc9a6f4df6f45f207d9cda&html=<html><body>Google
9
+ is a large company</body></html>&outputMode=json
10
+ headers:
11
+ content-type:
12
+ - application/x-www-form-urlencoded
13
+ accept:
14
+ - ! '*/*'
15
+ user-agent:
16
+ - Ruby
17
+ connection:
18
+ - close
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ server:
25
+ - nginx
26
+ date:
27
+ - Sun, 17 Jun 2012 03:39:12 GMT
28
+ content-type:
29
+ - application/json
30
+ connection:
31
+ - close
32
+ content-length:
33
+ - '880'
34
+ cache-control:
35
+ - no-cache
36
+ access-control-allow-origin:
37
+ - ! '*'
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ! "{\r\n \"status\": \"OK\",\r\n \"usage\": \"By accessing AlchemyAPI
41
+ or using information generated by AlchemyAPI, you are agreeing to be bound
42
+ by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
43
+ \ \"url\": \"\",\r\n \"language\": \"english\",\r\n \"concepts\":
44
+ [\r\n {\r\n \"text\": \"Criticism of Google\",\r\n \"relevance\":
45
+ \"0.863093\",\r\n \"dbpedia\": \"http://dbpedia.org/resource/Criticism_of_Google\",\r\n
46
+ \ \"freebase\": \"http://rdf.freebase.com/ns/guid.9202a8c04000641f80000000055d4613\",\r\n
47
+ \ \"yago\": \"http://mpii.de/yago/resource/Criticism_of_Google\"\r\n
48
+ \ },\r\n {\r\n \"text\": \"Googol\",\r\n \"relevance\":
49
+ \"0.713045\",\r\n \"dbpedia\": \"http://dbpedia.org/resource/Googol\",\r\n
50
+ \ \"freebase\": \"http://rdf.freebase.com/ns/guid.9202a8c04000641f8000000000019f35\"\r\n
51
+ \ }\r\n ]\r\n}\r\n"
52
+ http_version: '1.1'
53
+ recorded_at: Sun, 17 Jun 2012 02:41:11 GMT
54
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://access.alchemyapi.com/calls/text/TextGetRankedConcepts
6
+ body:
7
+ encoding: US-ASCII
8
+ string: apikey=cbc80670767f2e9ccecc9a6f4df6f45f207d9cda&text=Google is a large
9
+ company&outputMode=json
10
+ headers:
11
+ content-type:
12
+ - application/x-www-form-urlencoded
13
+ accept:
14
+ - ! '*/*'
15
+ user-agent:
16
+ - Ruby
17
+ connection:
18
+ - close
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ server:
25
+ - nginx
26
+ date:
27
+ - Sun, 17 Jun 2012 03:39:12 GMT
28
+ content-type:
29
+ - application/json
30
+ connection:
31
+ - close
32
+ content-length:
33
+ - '880'
34
+ cache-control:
35
+ - no-cache
36
+ access-control-allow-origin:
37
+ - ! '*'
38
+ - ! '*'
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! "{\r\n \"status\": \"OK\",\r\n \"usage\": \"By accessing AlchemyAPI
42
+ or using information generated by AlchemyAPI, you are agreeing to be bound
43
+ by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
44
+ \ \"url\": \"\",\r\n \"language\": \"english\",\r\n \"concepts\":
45
+ [\r\n {\r\n \"text\": \"Criticism of Google\",\r\n \"relevance\":
46
+ \"0.863093\",\r\n \"dbpedia\": \"http://dbpedia.org/resource/Criticism_of_Google\",\r\n
47
+ \ \"freebase\": \"http://rdf.freebase.com/ns/guid.9202a8c04000641f80000000055d4613\",\r\n
48
+ \ \"yago\": \"http://mpii.de/yago/resource/Criticism_of_Google\"\r\n
49
+ \ },\r\n {\r\n \"text\": \"Googol\",\r\n \"relevance\":
50
+ \"0.713045\",\r\n \"dbpedia\": \"http://dbpedia.org/resource/Googol\",\r\n
51
+ \ \"freebase\": \"http://rdf.freebase.com/ns/guid.9202a8c04000641f8000000000019f35\"\r\n
52
+ \ }\r\n ]\r\n}\r\n"
53
+ http_version: '1.1'
54
+ recorded_at: Sun, 17 Jun 2012 02:41:11 GMT
55
+ recorded_with: VCR 2.2.0
@@ -0,0 +1,75 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://access.alchemyapi.com/calls/url/URLGetRankedConcepts
6
+ body:
7
+ encoding: US-ASCII
8
+ string: apikey=cbc80670767f2e9ccecc9a6f4df6f45f207d9cda&url=http://www.alchemy.com&outputMode=json
9
+ headers:
10
+ content-type:
11
+ - application/x-www-form-urlencoded
12
+ accept:
13
+ - ! '*/*'
14
+ user-agent:
15
+ - Ruby
16
+ connection:
17
+ - close
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ server:
24
+ - nginx
25
+ date:
26
+ - Sun, 17 Jun 2012 03:39:13 GMT
27
+ content-type:
28
+ - application/json
29
+ connection:
30
+ - close
31
+ content-length:
32
+ - '2623'
33
+ cache-control:
34
+ - no-cache
35
+ access-control-allow-origin:
36
+ - ! '*'
37
+ - ! '*'
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ! "{\r\n \"status\": \"OK\",\r\n \"usage\": \"By accessing AlchemyAPI
41
+ or using information generated by AlchemyAPI, you are agreeing to be bound
42
+ by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html\",\r\n
43
+ \ \"url\": \"http://www.alchemy.com/\",\r\n \"language\": \"english\",\r\n
44
+ \ \"concepts\": [\r\n {\r\n \"text\": \"Open source\",\r\n
45
+ \ \"relevance\": \"0.930718\",\r\n \"dbpedia\": \"http://dbpedia.org/resource/Open_source\",\r\n
46
+ \ \"freebase\": \"http://rdf.freebase.com/ns/guid.9202a8c04000641f8000000005bcd984\"\r\n
47
+ \ },\r\n {\r\n \"text\": \"Free software\",\r\n \"relevance\":
48
+ \"0.909806\",\r\n \"dbpedia\": \"http://dbpedia.org/resource/Free_software\",\r\n
49
+ \ \"freebase\": \"http://rdf.freebase.com/ns/guid.9202a8c04000641f8000000000016cef\",\r\n
50
+ \ \"yago\": \"http://mpii.de/yago/resource/Free_software\"\r\n },\r\n
51
+ \ {\r\n \"text\": \"Open content\",\r\n \"relevance\":
52
+ \"0.885892\",\r\n \"dbpedia\": \"http://dbpedia.org/resource/Open_content\",\r\n
53
+ \ \"freebase\": \"http://rdf.freebase.com/ns/guid.9202a8c04000641f800000000002c60f\",\r\n
54
+ \ \"yago\": \"http://mpii.de/yago/resource/Open_content\"\r\n },\r\n
55
+ \ {\r\n \"text\": \"Computer program\",\r\n \"relevance\":
56
+ \"0.840013\",\r\n \"dbpedia\": \"http://dbpedia.org/resource/Computer_program\",\r\n
57
+ \ \"freebase\": \"http://rdf.freebase.com/ns/guid.9202a8c04000641f800000000000dd3a\"\r\n
58
+ \ },\r\n {\r\n \"text\": \"Arithmetic mean\",\r\n
59
+ \ \"relevance\": \"0.6736\",\r\n \"dbpedia\": \"http://dbpedia.org/resource/Arithmetic_mean\",\r\n
60
+ \ \"freebase\": \"http://rdf.freebase.com/ns/guid.9202a8c04000641f8000000000003dd5\"\r\n
61
+ \ },\r\n {\r\n \"text\": \"Memory leak\",\r\n \"relevance\":
62
+ \"0.648\",\r\n \"dbpedia\": \"http://dbpedia.org/resource/Memory_leak\",\r\n
63
+ \ \"freebase\": \"http://rdf.freebase.com/ns/guid.9202a8c04000641f80000000000276cf\",\r\n
64
+ \ \"yago\": \"http://mpii.de/yago/resource/Memory_leak\"\r\n },\r\n
65
+ \ {\r\n \"text\": \"Sun Microsystems\",\r\n \"relevance\":
66
+ \"0.645431\",\r\n \"website\": \"http://www.oracle.com/sun\",\r\n
67
+ \ \"dbpedia\": \"http://dbpedia.org/resource/Sun_Microsystems\",\r\n
68
+ \ \"freebase\": \"http://rdf.freebase.com/ns/guid.9202a8c04000641f80000000000357a2\",\r\n
69
+ \ \"yago\": \"http://mpii.de/yago/resource/Sun_Microsystems\",\r\n
70
+ \ \"crunchbase\": \"http://www.crunchbase.com/company/sun-microsystems\",\r\n
71
+ \ \"semanticCrunchbase\": \"http://cb.semsol.org/company/sun-microsystems.rdf\"\r\n
72
+ \ }\r\n ]\r\n}\r\n"
73
+ http_version: '1.1'
74
+ recorded_at: Sun, 17 Jun 2012 02:41:12 GMT
75
+ recorded_with: VCR 2.2.0