semantic-crawler 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,6 +43,10 @@ module SemanticCrawler
43
43
  SemanticCrawler::Fao::Country.new get_country_name
44
44
  end
45
45
 
46
+ # @return [SemanticCrawler::Freebase::Country] A Freebase country object
47
+ def get_freebase_country
48
+ SemanticCrawler::Freebase::Country.new get_country_name
49
+ end
46
50
  end
47
51
  end
48
52
  end
@@ -1,4 +1,4 @@
1
1
  module SemanticCrawler
2
2
  # The current version of this library.
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.licenses = ["MIT"]
13
13
  s.homepage = "https://github.com/obale/semantic_crawler"
14
14
  s.summary = "SemanticCrawler is a ruby library that encapsulates data gathering from different sources."
15
- s.description = "SemanticCrawler is a ruby library that encapsulates data gathering from different sources. Currently country information from Factbook and FAO (Food and Agriculture Organization of the United Nations), crisis information from GDACS.org and geo data from LinkedGeoData are supported. Additional the GeoNames module allows to get Factbook and FAO country information from GPS coordinates."
15
+ s.description = "SemanticCrawler is a ruby library that encapsulates data gathering from different sources. Currently country information from Freebase, Factbook and FAO (Food and Agriculture Organization of the United Nations), crisis information from GDACS.org and geo data from LinkedGeoData are supported. Additional the GeoNames module allows to get Factbook and FAO country information from GPS coordinates."
16
16
 
17
17
  s.files = `git ls-files`.split("\n")
18
18
  s.executables = `git ls-files -- bin/*`.split('\n').map{ |f| File.basename(f) }
@@ -33,4 +33,10 @@ describe SemanticCrawler::GeoNames do
33
33
  fao.country_name.to_s.should eq("Austria")
34
34
  fao.population_notes.to_s.should eq("2010 Revision from the UN Population Division")
35
35
  end
36
+
37
+ it "get freebase country" do
38
+ freebase = @innsbruck.get_freebase_country
39
+ freebase.country_name.to_s.should eq("Austria")
40
+ freebase.website.should eq("http://www.austria.gv.at/")
41
+ end
36
42
  end
@@ -8511,3 +8511,11 @@ Interrupt: : rollback transaction
8511
8511
   (0.0ms) rollback transaction
8512
8512
   (0.3ms) begin transaction
8513
8513
   (0.0ms) rollback transaction
8514
+  (0.3ms) begin transaction
8515
+  (0.0ms) rollback transaction
8516
+  (0.3ms) begin transaction
8517
+  (0.0ms) rollback transaction
8518
+  (0.3ms) begin transaction
8519
+  (0.0ms) rollback transaction
8520
+  (0.3ms) begin transaction
8521
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semantic-crawler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -188,10 +188,10 @@ dependencies:
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0'
190
190
  description: SemanticCrawler is a ruby library that encapsulates data gathering from
191
- different sources. Currently country information from Factbook and FAO (Food and
192
- Agriculture Organization of the United Nations), crisis information from GDACS.org
193
- and geo data from LinkedGeoData are supported. Additional the GeoNames module allows
194
- to get Factbook and FAO country information from GPS coordinates.
191
+ different sources. Currently country information from Freebase, Factbook and FAO
192
+ (Food and Agriculture Organization of the United Nations), crisis information from
193
+ GDACS.org and geo data from LinkedGeoData are supported. Additional the GeoNames
194
+ module allows to get Factbook and FAO country information from GPS coordinates.
195
195
  email:
196
196
  - alex.oberhauser@sigimera.org
197
197
  executables: []
@@ -292,7 +292,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
292
292
  version: '0'
293
293
  segments:
294
294
  - 0
295
- hash: -4201444334486941347
295
+ hash: -795134225753439223
296
296
  required_rubygems_version: !ruby/object:Gem::Requirement
297
297
  none: false
298
298
  requirements:
@@ -301,7 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
301
301
  version: '0'
302
302
  segments:
303
303
  - 0
304
- hash: -4201444334486941347
304
+ hash: -795134225753439223
305
305
  requirements: []
306
306
  rubyforge_project:
307
307
  rubygems_version: 1.8.22