wikidata-client 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/config/mapping.yml +13 -0
- data/lib/wikidata/version.rb +1 -1
- data/spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_commons_media/should_return_CommonsMedia_from_a_key_logo_image_here_.yml +86 -0
- data/spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_commons_media/should_return_CommonsMedia_from_a_property_id_P154_for_logo_image_here_.yml +82 -0
- data/spec/wikidata/entity_spec.rb +16 -0
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 658ec4889ebd51fa65fd381fb0b1a62afce9a4ce
|
4
|
+
data.tar.gz: ffdcbafa77ca5ed82c2d367cf42d901ba317a576
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0719f59e8f92742100e81212af233cf6e9a5614aea727815ccbb854cb6e9d8a54e6753af6d3b9aa24201ab8ff5401e0712e90557bd23db6b63f8ba2ae5f434a
|
7
|
+
data.tar.gz: 639ef0804a1d113cdf23fdabdde99ee6fb7b9fc6fbbe3d710631774960ff8173c680589db9ec844c70d23e6eb795e171b99c1088063dba650d3db1a39dbea59d
|
data/README.md
CHANGED
data/config/mapping.yml
CHANGED
@@ -10,13 +10,26 @@ resources:
|
|
10
10
|
gender: P21
|
11
11
|
is_in_the_administrative_territorial_entity: P131
|
12
12
|
coordinate_location: P625
|
13
|
+
located_at_street_address: P969
|
14
|
+
postal_code: P281
|
15
|
+
geonames_id: P1566
|
16
|
+
continent: P30
|
17
|
+
country: P17
|
13
18
|
freebase_identifier: P646
|
14
19
|
father: P22
|
15
20
|
start_date: P580
|
16
21
|
end_date: P582
|
17
22
|
point_in_time: P585
|
23
|
+
image: P18
|
24
|
+
logo_image: P154
|
25
|
+
flag_image: P41
|
26
|
+
coat_of_arms_image: P94
|
27
|
+
seal_image: P158
|
28
|
+
official_language: P37
|
29
|
+
wikimedia_language_code: P424
|
18
30
|
collections:
|
19
31
|
official_websites: P856
|
20
32
|
instance_of: P31
|
21
33
|
subclass_of: P279
|
22
34
|
children: P40
|
35
|
+
postal_codes: P281
|
data/lib/wikidata/version.rb
CHANGED
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://www.wikidata.org/w/api.php?action=wbgetentities&format=json&sites=enwiki&titles=GitHub
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: ''
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- Apache
|
19
|
+
X-Powered-By:
|
20
|
+
- HHVM/3.6.5
|
21
|
+
X-Content-Type-Options:
|
22
|
+
- nosniff
|
23
|
+
Cache-Control:
|
24
|
+
- private, must-revalidate, max-age=0
|
25
|
+
X-Frame-Options:
|
26
|
+
- DENY
|
27
|
+
Vary:
|
28
|
+
- Accept-Encoding
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
X-Varnish:
|
32
|
+
- 2578095848, 1512388112, 1353913808
|
33
|
+
Via:
|
34
|
+
- 1.1 varnish, 1.1 varnish, 1.1 varnish
|
35
|
+
Content-Length:
|
36
|
+
- '10377'
|
37
|
+
Accept-Ranges:
|
38
|
+
- bytes
|
39
|
+
Date:
|
40
|
+
- Tue, 13 Oct 2015 09:39:35 GMT
|
41
|
+
Age:
|
42
|
+
- '0'
|
43
|
+
Connection:
|
44
|
+
- keep-alive
|
45
|
+
X-Cache:
|
46
|
+
- cp1052 miss (0), cp4017 miss (0), cp4008 frontend miss (0)
|
47
|
+
Set-Cookie:
|
48
|
+
- WMF-Last-Access=13-Oct-2015;Path=/;HttpOnly;Expires=Sat, 14 Nov 2015 00:00:00
|
49
|
+
GMT, GeoIP=MY:01:Johor_Bahru:1.47:103.76:v4; Path=/; Domain=.wikidata.org:80
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"entities":{"Q364":{"pageid":561,"ns":0,"title":"Q364","lastrevid":255550954,"modified":"2015-10-08T19:37:46Z","type":"item","id":"Q364","labels":{"en":{"language":"en","value":"GitHub"},"pl":{"language":"pl","value":"GitHub"},"fr":{"language":"fr","value":"GitHub"},"de":{"language":"de","value":"GitHub"},"zh":{"language":"zh","value":"GitHub"},"es":{"language":"es","value":"GitHub"},"fa":{"language":"fa","value":"\u06af\u06cc\u062a\u200c\u0647\u0627\u0628"},"id":{"language":"id","value":"GitHub"},"ja":{"language":"ja","value":"GitHub"},"ko":{"language":"ko","value":"\uae30\ud2b8\ud5c8\ube0c"},"nl":{"language":"nl","value":"GitHub"},"pt":{"language":"pt","value":"GitHub"},"ru":{"language":"ru","value":"GitHub"},"sv":{"language":"sv","value":"Github"},"uk":{"language":"uk","value":"GitHub"},"it":{"language":"it","value":"GitHub"},"ar":{"language":"ar","value":"\u063a\u064a\u062a
|
53
|
+
\u0647\u0628"},"hu":{"language":"hu","value":"GitHub"},"fi":{"language":"fi","value":"GitHub"},"nb":{"language":"nb","value":"GitHub"},"ca":{"language":"ca","value":"Github"},"ta":{"language":"ta","value":"\u0b9c\u0bbf\u0b9f\u0bcd\u0bb9\u0baa\u0bcd"},"oc":{"language":"oc","value":"GitHub"},"pt-br":{"language":"pt-br","value":"GitHub"},"bg":{"language":"bg","value":"GitHub"},"tr":{"language":"tr","value":"GitHub"},"hi":{"language":"hi","value":"\u0917\u093f\u091f\u0939\u092c"},"cs":{"language":"cs","value":"GitHub"},"ro":{"language":"ro","value":"GitHub"},"he":{"language":"he","value":"GitHub"},"vi":{"language":"vi","value":"GitHub"},"ka":{"language":"ka","value":"GitHub"},"sco":{"language":"sco","value":"GitHub"},"ne":{"language":"ne","value":"\u0917\u093f\u091f\u0939\u092c"},"da":{"language":"da","value":"GitHub"},"fo":{"language":"fo","value":"GitHub"},"is":{"language":"is","value":"GitHub"},"kl":{"language":"kl","value":"GitHub"},"nn":{"language":"nn","value":"GitHub"},"bs":{"language":"bs","value":"GitHub"},"ur":{"language":"ur","value":"\u06af\u0679
|
54
|
+
\u06c1\u0628"},"en-ca":{"language":"en-ca","value":"GitHub"},"en-gb":{"language":"en-gb","value":"GitHub"}},"descriptions":{"en":{"language":"en","value":"web-based
|
55
|
+
hosting service for software development projects using Git"},"pl":{"language":"pl","value":"hostingowy
|
56
|
+
serwis internetowy przeznaczony dla projekt\u00f3w programistycznych wykorzystuj\u0105cych
|
57
|
+
system kontroli wersji Git"},"fr":{"language":"fr","value":"plateforme web
|
58
|
+
collaborative"},"de":{"language":"de","value":"webbasierter Hosting-Dienst
|
59
|
+
f\u00fcr Software-Entwicklungsprojekte"},"es":{"language":"es","value":"plataforma
|
60
|
+
de software para alojar proyectos usando el sistema Git"},"it":{"language":"it","value":"servizio
|
61
|
+
di hosting basato sul web"},"ru":{"language":"ru","value":"\u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441
|
62
|
+
\u0434\u043b\u044f \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432
|
63
|
+
\u0438 \u0438\u0445 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0439
|
64
|
+
\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438"},"fi":{"language":"fi","value":"Git-j\u00e4rjestelm\u00e4\u00e4
|
65
|
+
k\u00e4ytt\u00e4v\u00e4 verkkopalvelu ohjelmistokehitysprojektien s\u00e4ilytykseen"},"nb":{"language":"nb","value":"nettbasert
|
66
|
+
programvaretjeneste"},"ca":{"language":"ca","value":"Servei hosting per projectes
|
67
|
+
de desenvolupament de programari usant Git"},"pt-br":{"language":"pt-br","value":"servi\u00e7o
|
68
|
+
de hospedagem baseado na web para projetos de desenvolvimento de software
|
69
|
+
utilizando Git"},"zh-hans":{"language":"zh-hans","value":"GitHub\u516c\u53f8\u7684\u5171\u4eab\u865a\u62df\u4e3b\u673a\u670d\u52a1"},"uk":{"language":"uk","value":"\u043e\u0434\u0438\u043d
|
70
|
+
\u0437 \u043d\u0430\u0439\u0431\u0456\u043b\u044c\u0448\u0438\u0445 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0456\u0441\u0456\u0432
|
71
|
+
\u0434\u043b\u044f \u0441\u043f\u0456\u043b\u044c\u043d\u043e\u0457 \u0440\u043e\u0437\u0440\u043e\u0431\u043a\u0438
|
72
|
+
\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043d\u043e\u0433\u043e \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0435\u043d\u043d\u044f"},"hu":{"language":"hu","value":"szoftver
|
73
|
+
fejleszt\u00e9si projekt t\u00e1rol\u00e1s\u00e1ra alkalmas internetes szolg\u00e1ltat\u00e1s"},"cs":{"language":"cs","value":"web-based
|
74
|
+
hosting service for software development projects using Git"},"ne":{"language":"ne","value":"Git
|
75
|
+
\u0938\u092b\u094d\u091f\u0935\u0947\u092f\u0930 \u092a\u094d\u0930\u092f\u094b\u0917
|
76
|
+
\u0917\u0930\u094d\u0928\u0947 \u0935\u093f\u0915\u093e\u0938 \u092a\u0930\u093f\u092f\u094b\u091c\u0928\u093e\u0915\u093e
|
77
|
+
\u0932\u093e\u0917\u093f \u0935\u0947\u092c\u092e\u093e \u0906\u0927\u093e\u0930\u093f\u0924
|
78
|
+
\u0939\u094b\u0938\u094d\u091f\u093f\u0919 \u0938\u0947\u0935\u093e"}},"aliases":{"en":[{"language":"en","value":"GitHub
|
79
|
+
Inc."},{"language":"en","value":"github.com"}],"de":[{"language":"de","value":"GitHub
|
80
|
+
Inc."},{"language":"de","value":"github.com"}],"fr":[{"language":"fr","value":"github"},{"language":"fr","value":"Github"},{"language":"fr","value":"github.com"}]},"claims":{"P373":[{"mainsnak":{"snaktype":"value","property":"P373","datavalue":{"value":"GitHub","type":"string"},"datatype":"string"},"type":"statement","id":"Q364$538b1205-4615-c5d6-76b0-b2020b415325","rank":"normal"}],"P112":[{"mainsnak":{"snaktype":"value","property":"P112","datavalue":{"value":{"entity-type":"item","numeric-id":16602077},"type":"wikibase-entityid"},"datatype":"wikibase-item"},"type":"statement","id":"Q364$f0389704-4977-82d9-ed76-d831c3c6544d","rank":"normal"}],"P154":[{"mainsnak":{"snaktype":"value","property":"P154","datavalue":{"value":"GitHub
|
81
|
+
logo 2013.svg","type":"string"},"datatype":"commonsMedia"},"type":"statement","id":"q364$b35bab9e-4177-91ca-03e8-6c44cacc30ef","rank":"normal"}],"P854":[{"mainsnak":{"snaktype":"value","property":"P854","datavalue":{"value":"https://github.com/","type":"string"},"datatype":"url"},"type":"statement","id":"Q364$70e04427-4316-6339-9868-6bd48c6e241e","rank":"normal"}],"P31":[{"mainsnak":{"snaktype":"value","property":"P31","datavalue":{"value":{"entity-type":"item","numeric-id":588365},"type":"wikibase-entityid"},"datatype":"wikibase-item"},"type":"statement","id":"Q364$3fc07a87-4ab2-91dd-eb11-1b4d8442c9f3","rank":"normal"}],"P856":[{"mainsnak":{"snaktype":"value","property":"P856","datavalue":{"value":"https://github.com","type":"string"},"datatype":"url"},"type":"statement","id":"Q364$FEC870C9-C7FD-4841-ACC0-0B04561A34B5","rank":"normal","references":[{"hash":"7eb64cf9621d34c54fd4bd040ed4b61a88c4a1a0","snaks":{"P143":[{"snaktype":"value","property":"P143","datavalue":{"value":{"entity-type":"item","numeric-id":328},"type":"wikibase-entityid"},"datatype":"wikibase-item"}]},"snaks-order":["P143"]}]}],"P159":[{"mainsnak":{"snaktype":"value","property":"P159","datavalue":{"value":{"entity-type":"item","numeric-id":62},"type":"wikibase-entityid"},"datatype":"wikibase-item"},"type":"statement","id":"Q364$e834e2ab-4e89-db51-949f-df05f41d8b44","rank":"normal"}],"P646":[{"mainsnak":{"snaktype":"value","property":"P646","datavalue":{"value":"/m/04g0kcw","type":"string"},"datatype":"string"},"type":"statement","id":"Q364$8A2C3FCF-9A1D-40AE-BC5B-E0CA0B886B10","rank":"normal","references":[{"hash":"af38848ab5d9d9325cffd93a5ec656cc6ca889ed","snaks":{"P248":[{"snaktype":"value","property":"P248","datavalue":{"value":{"entity-type":"item","numeric-id":15241312},"type":"wikibase-entityid"},"datatype":"wikibase-item"}],"P577":[{"snaktype":"value","property":"P577","datavalue":{"value":{"time":"+2013-10-28T00:00:00Z","timezone":0,"before":0,"after":0,"precision":11,"calendarmodel":"http://www.wikidata.org/entity/Q1985727"},"type":"time"},"datatype":"time"}]},"snaks-order":["P248","P577"]}]}],"P1482":[{"mainsnak":{"snaktype":"value","property":"P1482","datavalue":{"value":"http://stackoverflow.com/tags/github","type":"string"},"datatype":"url"},"type":"statement","id":"Q364$3827AA10-1FBC-4EC8-8EAD-9A0FDFAAD690","rank":"normal"}],"P1687":[{"mainsnak":{"snaktype":"value","property":"P1687","datavalue":{"value":{"entity-type":"property","numeric-id":2037},"type":"wikibase-entityid"},"datatype":"wikibase-property"},"type":"statement","id":"Q364$46314eca-407c-d3de-fb71-c3233285fb32","rank":"normal"}],"P1581":[{"mainsnak":{"snaktype":"value","property":"P1581","datavalue":{"value":"https://github.com/blog","type":"string"},"datatype":"url"},"type":"statement","id":"Q364$dff698bd-4462-106c-1db4-51f914192f7c","rank":"normal"}]},"sitelinks":{"arwiki":{"site":"arwiki","title":"\u063a\u064a\u062a
|
82
|
+
\u0647\u0627\u0628","badges":[]},"bgwiki":{"site":"bgwiki","title":"GitHub","badges":[]},"cawiki":{"site":"cawiki","title":"GitHub","badges":[]},"cswiki":{"site":"cswiki","title":"GitHub","badges":[]},"dewiki":{"site":"dewiki","title":"GitHub","badges":[]},"enwiki":{"site":"enwiki","title":"GitHub","badges":[]},"eswiki":{"site":"eswiki","title":"GitHub","badges":[]},"fawiki":{"site":"fawiki","title":"\u06af\u06cc\u062a\u200c\u0647\u0627\u0628","badges":[]},"fiwiki":{"site":"fiwiki","title":"GitHub","badges":[]},"frwiki":{"site":"frwiki","title":"GitHub","badges":[]},"hewiki":{"site":"hewiki","title":"GitHub","badges":[]},"hiwiki":{"site":"hiwiki","title":"\u0917\u093f\u091f\u0939\u092c","badges":[]},"idwiki":{"site":"idwiki","title":"GitHub","badges":[]},"itwiki":{"site":"itwiki","title":"GitHub","badges":[]},"jawiki":{"site":"jawiki","title":"GitHub","badges":[]},"kawiki":{"site":"kawiki","title":"GitHub","badges":[]},"kowiki":{"site":"kowiki","title":"\uae43\ud5c8\ube0c","badges":[]},"nlwiki":{"site":"nlwiki","title":"GitHub","badges":[]},"ocwiki":{"site":"ocwiki","title":"GitHub","badges":[]},"plwiki":{"site":"plwiki","title":"GitHub","badges":[]},"ptwiki":{"site":"ptwiki","title":"GitHub","badges":[]},"rowiki":{"site":"rowiki","title":"GitHub","badges":[]},"ruwiki":{"site":"ruwiki","title":"GitHub","badges":[]},"ruwikinews":{"site":"ruwikinews","title":"\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f:GitHub","badges":[]},"svwiki":{"site":"svwiki","title":"Github","badges":[]},"trwiki":{"site":"trwiki","title":"GitHub","badges":[]},"ttwiki":{"site":"ttwiki","title":"Github","badges":[]},"ukwiki":{"site":"ukwiki","title":"GitHub","badges":[]},"urwiki":{"site":"urwiki","title":"\u06af\u0679
|
83
|
+
\u06c1\u0628","badges":[]},"viwiki":{"site":"viwiki","title":"GitHub","badges":[]},"zhwiki":{"site":"zhwiki","title":"GitHub","badges":[]}}}},"success":1}'
|
84
|
+
http_version:
|
85
|
+
recorded_at: Tue, 13 Oct 2015 09:39:35 GMT
|
86
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,82 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://www.wikidata.org/w/api.php?action=wbgetentities&format=json&sites=enwiki&titles=GitHub
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: ''
|
16
|
+
headers:
|
17
|
+
Server:
|
18
|
+
- Apache
|
19
|
+
X-Powered-By:
|
20
|
+
- HHVM/3.6.5
|
21
|
+
X-Content-Type-Options:
|
22
|
+
- nosniff
|
23
|
+
Cache-Control:
|
24
|
+
- private, must-revalidate, max-age=0
|
25
|
+
X-Frame-Options:
|
26
|
+
- DENY
|
27
|
+
Vary:
|
28
|
+
- Accept-Encoding
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
X-Varnish:
|
32
|
+
- 2578095168, 1512387811, 1353912629
|
33
|
+
Via:
|
34
|
+
- 1.1 varnish, 1.1 varnish, 1.1 varnish
|
35
|
+
Date:
|
36
|
+
- Tue, 13 Oct 2015 09:39:34 GMT
|
37
|
+
Age:
|
38
|
+
- '0'
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
X-Cache:
|
42
|
+
- cp1052 miss (0), cp4017 miss (0), cp4008 frontend miss (0)
|
43
|
+
Set-Cookie:
|
44
|
+
- WMF-Last-Access=13-Oct-2015;Path=/;HttpOnly;Expires=Sat, 14 Nov 2015 00:00:00
|
45
|
+
GMT, GeoIP=MY:01:Johor_Bahru:1.47:103.76:v4; Path=/; Domain=.wikidata.org:80
|
46
|
+
body:
|
47
|
+
encoding: UTF-8
|
48
|
+
string: '{"entities":{"Q364":{"pageid":561,"ns":0,"title":"Q364","lastrevid":255550954,"modified":"2015-10-08T19:37:46Z","type":"item","id":"Q364","labels":{"en":{"language":"en","value":"GitHub"},"pl":{"language":"pl","value":"GitHub"},"fr":{"language":"fr","value":"GitHub"},"de":{"language":"de","value":"GitHub"},"zh":{"language":"zh","value":"GitHub"},"es":{"language":"es","value":"GitHub"},"fa":{"language":"fa","value":"\u06af\u06cc\u062a\u200c\u0647\u0627\u0628"},"id":{"language":"id","value":"GitHub"},"ja":{"language":"ja","value":"GitHub"},"ko":{"language":"ko","value":"\uae30\ud2b8\ud5c8\ube0c"},"nl":{"language":"nl","value":"GitHub"},"pt":{"language":"pt","value":"GitHub"},"ru":{"language":"ru","value":"GitHub"},"sv":{"language":"sv","value":"Github"},"uk":{"language":"uk","value":"GitHub"},"it":{"language":"it","value":"GitHub"},"ar":{"language":"ar","value":"\u063a\u064a\u062a
|
49
|
+
\u0647\u0628"},"hu":{"language":"hu","value":"GitHub"},"fi":{"language":"fi","value":"GitHub"},"nb":{"language":"nb","value":"GitHub"},"ca":{"language":"ca","value":"Github"},"ta":{"language":"ta","value":"\u0b9c\u0bbf\u0b9f\u0bcd\u0bb9\u0baa\u0bcd"},"oc":{"language":"oc","value":"GitHub"},"pt-br":{"language":"pt-br","value":"GitHub"},"bg":{"language":"bg","value":"GitHub"},"tr":{"language":"tr","value":"GitHub"},"hi":{"language":"hi","value":"\u0917\u093f\u091f\u0939\u092c"},"cs":{"language":"cs","value":"GitHub"},"ro":{"language":"ro","value":"GitHub"},"he":{"language":"he","value":"GitHub"},"vi":{"language":"vi","value":"GitHub"},"ka":{"language":"ka","value":"GitHub"},"sco":{"language":"sco","value":"GitHub"},"ne":{"language":"ne","value":"\u0917\u093f\u091f\u0939\u092c"},"da":{"language":"da","value":"GitHub"},"fo":{"language":"fo","value":"GitHub"},"is":{"language":"is","value":"GitHub"},"kl":{"language":"kl","value":"GitHub"},"nn":{"language":"nn","value":"GitHub"},"bs":{"language":"bs","value":"GitHub"},"ur":{"language":"ur","value":"\u06af\u0679
|
50
|
+
\u06c1\u0628"},"en-ca":{"language":"en-ca","value":"GitHub"},"en-gb":{"language":"en-gb","value":"GitHub"}},"descriptions":{"en":{"language":"en","value":"web-based
|
51
|
+
hosting service for software development projects using Git"},"pl":{"language":"pl","value":"hostingowy
|
52
|
+
serwis internetowy przeznaczony dla projekt\u00f3w programistycznych wykorzystuj\u0105cych
|
53
|
+
system kontroli wersji Git"},"fr":{"language":"fr","value":"plateforme web
|
54
|
+
collaborative"},"de":{"language":"de","value":"webbasierter Hosting-Dienst
|
55
|
+
f\u00fcr Software-Entwicklungsprojekte"},"es":{"language":"es","value":"plataforma
|
56
|
+
de software para alojar proyectos usando el sistema Git"},"it":{"language":"it","value":"servizio
|
57
|
+
di hosting basato sul web"},"ru":{"language":"ru","value":"\u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441
|
58
|
+
\u0434\u043b\u044f \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432
|
59
|
+
\u0438 \u0438\u0445 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0439
|
60
|
+
\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438"},"fi":{"language":"fi","value":"Git-j\u00e4rjestelm\u00e4\u00e4
|
61
|
+
k\u00e4ytt\u00e4v\u00e4 verkkopalvelu ohjelmistokehitysprojektien s\u00e4ilytykseen"},"nb":{"language":"nb","value":"nettbasert
|
62
|
+
programvaretjeneste"},"ca":{"language":"ca","value":"Servei hosting per projectes
|
63
|
+
de desenvolupament de programari usant Git"},"pt-br":{"language":"pt-br","value":"servi\u00e7o
|
64
|
+
de hospedagem baseado na web para projetos de desenvolvimento de software
|
65
|
+
utilizando Git"},"zh-hans":{"language":"zh-hans","value":"GitHub\u516c\u53f8\u7684\u5171\u4eab\u865a\u62df\u4e3b\u673a\u670d\u52a1"},"uk":{"language":"uk","value":"\u043e\u0434\u0438\u043d
|
66
|
+
\u0437 \u043d\u0430\u0439\u0431\u0456\u043b\u044c\u0448\u0438\u0445 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0456\u0441\u0456\u0432
|
67
|
+
\u0434\u043b\u044f \u0441\u043f\u0456\u043b\u044c\u043d\u043e\u0457 \u0440\u043e\u0437\u0440\u043e\u0431\u043a\u0438
|
68
|
+
\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043d\u043e\u0433\u043e \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0435\u043d\u043d\u044f"},"hu":{"language":"hu","value":"szoftver
|
69
|
+
fejleszt\u00e9si projekt t\u00e1rol\u00e1s\u00e1ra alkalmas internetes szolg\u00e1ltat\u00e1s"},"cs":{"language":"cs","value":"web-based
|
70
|
+
hosting service for software development projects using Git"},"ne":{"language":"ne","value":"Git
|
71
|
+
\u0938\u092b\u094d\u091f\u0935\u0947\u092f\u0930 \u092a\u094d\u0930\u092f\u094b\u0917
|
72
|
+
\u0917\u0930\u094d\u0928\u0947 \u0935\u093f\u0915\u093e\u0938 \u092a\u0930\u093f\u092f\u094b\u091c\u0928\u093e\u0915\u093e
|
73
|
+
\u0932\u093e\u0917\u093f \u0935\u0947\u092c\u092e\u093e \u0906\u0927\u093e\u0930\u093f\u0924
|
74
|
+
\u0939\u094b\u0938\u094d\u091f\u093f\u0919 \u0938\u0947\u0935\u093e"}},"aliases":{"en":[{"language":"en","value":"GitHub
|
75
|
+
Inc."},{"language":"en","value":"github.com"}],"de":[{"language":"de","value":"GitHub
|
76
|
+
Inc."},{"language":"de","value":"github.com"}],"fr":[{"language":"fr","value":"github"},{"language":"fr","value":"Github"},{"language":"fr","value":"github.com"}]},"claims":{"P373":[{"mainsnak":{"snaktype":"value","property":"P373","datavalue":{"value":"GitHub","type":"string"},"datatype":"string"},"type":"statement","id":"Q364$538b1205-4615-c5d6-76b0-b2020b415325","rank":"normal"}],"P112":[{"mainsnak":{"snaktype":"value","property":"P112","datavalue":{"value":{"entity-type":"item","numeric-id":16602077},"type":"wikibase-entityid"},"datatype":"wikibase-item"},"type":"statement","id":"Q364$f0389704-4977-82d9-ed76-d831c3c6544d","rank":"normal"}],"P154":[{"mainsnak":{"snaktype":"value","property":"P154","datavalue":{"value":"GitHub
|
77
|
+
logo 2013.svg","type":"string"},"datatype":"commonsMedia"},"type":"statement","id":"q364$b35bab9e-4177-91ca-03e8-6c44cacc30ef","rank":"normal"}],"P854":[{"mainsnak":{"snaktype":"value","property":"P854","datavalue":{"value":"https://github.com/","type":"string"},"datatype":"url"},"type":"statement","id":"Q364$70e04427-4316-6339-9868-6bd48c6e241e","rank":"normal"}],"P31":[{"mainsnak":{"snaktype":"value","property":"P31","datavalue":{"value":{"entity-type":"item","numeric-id":588365},"type":"wikibase-entityid"},"datatype":"wikibase-item"},"type":"statement","id":"Q364$3fc07a87-4ab2-91dd-eb11-1b4d8442c9f3","rank":"normal"}],"P856":[{"mainsnak":{"snaktype":"value","property":"P856","datavalue":{"value":"https://github.com","type":"string"},"datatype":"url"},"type":"statement","id":"Q364$FEC870C9-C7FD-4841-ACC0-0B04561A34B5","rank":"normal","references":[{"hash":"7eb64cf9621d34c54fd4bd040ed4b61a88c4a1a0","snaks":{"P143":[{"snaktype":"value","property":"P143","datavalue":{"value":{"entity-type":"item","numeric-id":328},"type":"wikibase-entityid"},"datatype":"wikibase-item"}]},"snaks-order":["P143"]}]}],"P159":[{"mainsnak":{"snaktype":"value","property":"P159","datavalue":{"value":{"entity-type":"item","numeric-id":62},"type":"wikibase-entityid"},"datatype":"wikibase-item"},"type":"statement","id":"Q364$e834e2ab-4e89-db51-949f-df05f41d8b44","rank":"normal"}],"P646":[{"mainsnak":{"snaktype":"value","property":"P646","datavalue":{"value":"/m/04g0kcw","type":"string"},"datatype":"string"},"type":"statement","id":"Q364$8A2C3FCF-9A1D-40AE-BC5B-E0CA0B886B10","rank":"normal","references":[{"hash":"af38848ab5d9d9325cffd93a5ec656cc6ca889ed","snaks":{"P248":[{"snaktype":"value","property":"P248","datavalue":{"value":{"entity-type":"item","numeric-id":15241312},"type":"wikibase-entityid"},"datatype":"wikibase-item"}],"P577":[{"snaktype":"value","property":"P577","datavalue":{"value":{"time":"+2013-10-28T00:00:00Z","timezone":0,"before":0,"after":0,"precision":11,"calendarmodel":"http://www.wikidata.org/entity/Q1985727"},"type":"time"},"datatype":"time"}]},"snaks-order":["P248","P577"]}]}],"P1482":[{"mainsnak":{"snaktype":"value","property":"P1482","datavalue":{"value":"http://stackoverflow.com/tags/github","type":"string"},"datatype":"url"},"type":"statement","id":"Q364$3827AA10-1FBC-4EC8-8EAD-9A0FDFAAD690","rank":"normal"}],"P1687":[{"mainsnak":{"snaktype":"value","property":"P1687","datavalue":{"value":{"entity-type":"property","numeric-id":2037},"type":"wikibase-entityid"},"datatype":"wikibase-property"},"type":"statement","id":"Q364$46314eca-407c-d3de-fb71-c3233285fb32","rank":"normal"}],"P1581":[{"mainsnak":{"snaktype":"value","property":"P1581","datavalue":{"value":"https://github.com/blog","type":"string"},"datatype":"url"},"type":"statement","id":"Q364$dff698bd-4462-106c-1db4-51f914192f7c","rank":"normal"}]},"sitelinks":{"arwiki":{"site":"arwiki","title":"\u063a\u064a\u062a
|
78
|
+
\u0647\u0627\u0628","badges":[]},"bgwiki":{"site":"bgwiki","title":"GitHub","badges":[]},"cawiki":{"site":"cawiki","title":"GitHub","badges":[]},"cswiki":{"site":"cswiki","title":"GitHub","badges":[]},"dewiki":{"site":"dewiki","title":"GitHub","badges":[]},"enwiki":{"site":"enwiki","title":"GitHub","badges":[]},"eswiki":{"site":"eswiki","title":"GitHub","badges":[]},"fawiki":{"site":"fawiki","title":"\u06af\u06cc\u062a\u200c\u0647\u0627\u0628","badges":[]},"fiwiki":{"site":"fiwiki","title":"GitHub","badges":[]},"frwiki":{"site":"frwiki","title":"GitHub","badges":[]},"hewiki":{"site":"hewiki","title":"GitHub","badges":[]},"hiwiki":{"site":"hiwiki","title":"\u0917\u093f\u091f\u0939\u092c","badges":[]},"idwiki":{"site":"idwiki","title":"GitHub","badges":[]},"itwiki":{"site":"itwiki","title":"GitHub","badges":[]},"jawiki":{"site":"jawiki","title":"GitHub","badges":[]},"kawiki":{"site":"kawiki","title":"GitHub","badges":[]},"kowiki":{"site":"kowiki","title":"\uae43\ud5c8\ube0c","badges":[]},"nlwiki":{"site":"nlwiki","title":"GitHub","badges":[]},"ocwiki":{"site":"ocwiki","title":"GitHub","badges":[]},"plwiki":{"site":"plwiki","title":"GitHub","badges":[]},"ptwiki":{"site":"ptwiki","title":"GitHub","badges":[]},"rowiki":{"site":"rowiki","title":"GitHub","badges":[]},"ruwiki":{"site":"ruwiki","title":"GitHub","badges":[]},"ruwikinews":{"site":"ruwikinews","title":"\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f:GitHub","badges":[]},"svwiki":{"site":"svwiki","title":"Github","badges":[]},"trwiki":{"site":"trwiki","title":"GitHub","badges":[]},"ttwiki":{"site":"ttwiki","title":"Github","badges":[]},"ukwiki":{"site":"ukwiki","title":"GitHub","badges":[]},"urwiki":{"site":"urwiki","title":"\u06af\u0679
|
79
|
+
\u06c1\u0628","badges":[]},"viwiki":{"site":"viwiki","title":"GitHub","badges":[]},"zhwiki":{"site":"zhwiki","title":"GitHub","badges":[]}}}},"success":1}'
|
80
|
+
http_version:
|
81
|
+
recorded_at: Tue, 13 Oct 2015 09:39:35 GMT
|
82
|
+
recorded_with: VCR 2.9.3
|
@@ -132,6 +132,22 @@ describe Wikidata::Entity, :vcr do
|
|
132
132
|
end
|
133
133
|
end
|
134
134
|
end
|
135
|
+
|
136
|
+
context 'of type commons media' do
|
137
|
+
it 'should return CommonsMedia from a property id (P154 for logo image here)' do
|
138
|
+
github.property('P154').tap do |c|
|
139
|
+
c.should be_kind_of Wikidata::Property::CommonsMedia
|
140
|
+
c.value.should eq 'GitHub logo 2013.svg'
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
it 'should return CommonsMedia from a key (logo_image here)' do
|
145
|
+
github.logo_image.tap do |c|
|
146
|
+
c.should be_kind_of Wikidata::Property::CommonsMedia
|
147
|
+
c.value.should eq 'GitHub logo 2013.svg'
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
135
151
|
end
|
136
152
|
end
|
137
153
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wikidata-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kévin Lacointe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -173,6 +173,8 @@ files:
|
|
173
173
|
- spec/fixtures/vcr/Wikidata_Entity/properties/entities/should_allow_to_return_only_entities_ids_from_an_id.yml
|
174
174
|
- spec/fixtures/vcr/Wikidata_Entity/properties/entities/should_return_entities_property_from_a_key_children_here_.yml
|
175
175
|
- spec/fixtures/vcr/Wikidata_Entity/properties/entities/should_return_entities_property_from_an_id_P40_for_children_here_.yml
|
176
|
+
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_commons_media/should_return_CommonsMedia_from_a_key_logo_image_here_.yml
|
177
|
+
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_commons_media/should_return_CommonsMedia_from_a_property_id_P154_for_logo_image_here_.yml
|
176
178
|
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_date/should_return_Time_from_a_a_key_date_of_birth_here_.yml
|
177
179
|
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_date/should_return_Time_from_a_property_id_P569_for_date_of_birth_here_.yml
|
178
180
|
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_globe_coordinate/should_return_GlobeCoordinate_from_a_key_coordinate_location_here_.yml
|
@@ -228,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
228
230
|
version: '0'
|
229
231
|
requirements: []
|
230
232
|
rubyforge_project:
|
231
|
-
rubygems_version: 2.4.5
|
233
|
+
rubygems_version: 2.4.5.1
|
232
234
|
signing_key:
|
233
235
|
specification_version: 4
|
234
236
|
summary: Wikidata API client
|
@@ -237,6 +239,8 @@ test_files:
|
|
237
239
|
- spec/fixtures/vcr/Wikidata_Entity/properties/entities/should_allow_to_return_only_entities_ids_from_an_id.yml
|
238
240
|
- spec/fixtures/vcr/Wikidata_Entity/properties/entities/should_return_entities_property_from_a_key_children_here_.yml
|
239
241
|
- spec/fixtures/vcr/Wikidata_Entity/properties/entities/should_return_entities_property_from_an_id_P40_for_children_here_.yml
|
242
|
+
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_commons_media/should_return_CommonsMedia_from_a_key_logo_image_here_.yml
|
243
|
+
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_commons_media/should_return_CommonsMedia_from_a_property_id_P154_for_logo_image_here_.yml
|
240
244
|
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_date/should_return_Time_from_a_a_key_date_of_birth_here_.yml
|
241
245
|
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_date/should_return_Time_from_a_property_id_P569_for_date_of_birth_here_.yml
|
242
246
|
- spec/fixtures/vcr/Wikidata_Entity/properties/properties/of_type_globe_coordinate/should_return_GlobeCoordinate_from_a_key_coordinate_location_here_.yml
|
@@ -271,4 +275,3 @@ test_files:
|
|
271
275
|
- spec/wikidata/property/common_media_spec.rb
|
272
276
|
- spec/wikidata/property/time_spec.rb
|
273
277
|
- spec/wikidata_spec.rb
|
274
|
-
has_rdoc:
|