geomash 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/geomash/tgn.rb +1 -1
- data/lib/geomash/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23e71be42a8b40202d9ebdc6224d7391ab98adc9
|
4
|
+
data.tar.gz: 2719527dec75b92af6d9438cf0ec8f4e950598c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 705f4c442cf32e181af419c73394d4e8f47bd48190c5be0c56885930cf62ba31677bae479fb2023d33fdadd477c0dfb9d5bd262bffe38dc8e08f4cda719c8d62
|
7
|
+
data.tar.gz: 84fb7db8dec45b7e1c832546f01a034a59282737bd01e8d64ae8e139b48133e1a9a4ffc7d3e66e421289bd9e63a99a27768cd92d674b3818741e2c7924cd82b1
|
data/lib/geomash/tgn.rb
CHANGED
@@ -430,7 +430,7 @@ EXAMPLE SPARQL:
|
|
430
430
|
tgn_term = aat_response['place_label_latn_notone']['value']
|
431
431
|
else
|
432
432
|
#Just take the first prefLabel... could perhaps do some preference eventually... see 7002883 for an example of only a french prefLabel
|
433
|
-
default_label_response = Typhoeus::Request.get("http://vocab.getty.edu/download/json", :params=>{:uri=>"http://vocab.getty.edu/tgn/#{aat_response['identifier_place']}.json"}, :timeout=>500)
|
433
|
+
default_label_response = Typhoeus::Request.get("http://vocab.getty.edu/download/json", :params=>{:uri=>"http://vocab.getty.edu/tgn/#{aat_response['identifier_place']['value']}.json"}, :timeout=>500)
|
434
434
|
JSON.parse(default_label_response.body)['results']['bindings'].each do |ntriple|
|
435
435
|
case ntriple['Predicate']['value']
|
436
436
|
when 'http://www.w3.org/2004/02/skos/core#prefLabel'
|
data/lib/geomash/version.rb
CHANGED