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
|
data/semantic_crawler.gemspec
CHANGED
@@ -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) }
|
data/spec/geo_names_spec.rb
CHANGED
@@ -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
|
data/test/dummy/log/test.log
CHANGED
@@ -8511,3 +8511,11 @@ Interrupt: : rollback transaction
|
|
8511
8511
|
[1m[35m (0.0ms)[0m rollback transaction
|
8512
8512
|
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
8513
8513
|
[1m[35m (0.0ms)[0m rollback transaction
|
8514
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
8515
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8516
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
8517
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8518
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
8519
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8520
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
8521
|
+
[1m[35m (0.0ms)[0m 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.
|
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
|
192
|
-
Agriculture Organization of the United Nations), crisis information from
|
193
|
-
and geo data from LinkedGeoData are supported. Additional the GeoNames
|
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: -
|
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: -
|
304
|
+
hash: -795134225753439223
|
305
305
|
requirements: []
|
306
306
|
rubyforge_project:
|
307
307
|
rubygems_version: 1.8.22
|