iqvoc_skosxl 2.9.0 → 2.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -18
- data/config/initializers/iqvoc.rb +13 -11
- data/iqvoc_skosxl.gemspec +1 -1
- data/lib/iqvoc/skosxl/version.rb +1 -1
- data/public/export/iqvoc_dump-2017-06-07_13-08.ttl +70 -0
- metadata +11 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d94809eb6714182deeae3295c140eabf15435b4
|
4
|
+
data.tar.gz: 43a7340d81f9c30c763d3a087e7a995b3ab891d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1523fc2f4192da2eecff8bcd46a050786b498c214507ee370f09a043c01d939127530acd7c560adf774acc1db1fb75360bbd862911f29e360e2f352ca9897ea
|
7
|
+
data.tar.gz: 1dbb0d860da3df46c71b8c1414328c09318519614053b97355e660d40e186142034dd4ee967a5101f2e30db3ea78aef57bcbd94a5516805997e705e786586082
|
data/Gemfile.lock
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
GIT
|
2
2
|
remote: git://github.com/innoq/iqvoc.git
|
3
|
-
revision:
|
3
|
+
revision: 26d0162c8231fb55041bd107ff7add065a628ee9
|
4
4
|
branch: master
|
5
5
|
specs:
|
6
6
|
iqvoc (4.11.1)
|
@@ -20,7 +20,7 @@ GIT
|
|
20
20
|
iq_rdf (>= 0.1.15)
|
21
21
|
iq_triplestorage
|
22
22
|
json
|
23
|
-
kaminari
|
23
|
+
kaminari (~> 0.16.3)
|
24
24
|
kaminari-bootstrap (~> 3.0.1)
|
25
25
|
linkeddata (~> 1.1.2)
|
26
26
|
maruku
|
@@ -102,10 +102,10 @@ GEM
|
|
102
102
|
coderay (1.1.1)
|
103
103
|
concurrent-ruby (1.0.5)
|
104
104
|
database_cleaner (1.6.1)
|
105
|
-
delayed_job (4.1.
|
106
|
-
activesupport (>= 3.0, < 5.
|
107
|
-
delayed_job_active_record (4.1.
|
108
|
-
activerecord (>= 3.0, < 5.
|
105
|
+
delayed_job (4.1.3)
|
106
|
+
activesupport (>= 3.0, < 5.2)
|
107
|
+
delayed_job_active_record (4.1.2)
|
108
|
+
activerecord (>= 3.0, < 5.2)
|
109
109
|
delayed_job (>= 3.0, < 5)
|
110
110
|
ebnf (0.3.9)
|
111
111
|
rdf (~> 1.1)
|
@@ -139,21 +139,12 @@ GEM
|
|
139
139
|
json-ld (1.1.11.1)
|
140
140
|
multi_json (~> 1.11)
|
141
141
|
rdf (~> 1.1, >= 1.1.17, < 1.99)
|
142
|
-
kaminari (
|
143
|
-
|
144
|
-
|
145
|
-
kaminari-activerecord (= 1.0.1)
|
146
|
-
kaminari-core (= 1.0.1)
|
147
|
-
kaminari-actionview (1.0.1)
|
148
|
-
actionview
|
149
|
-
kaminari-core (= 1.0.1)
|
150
|
-
kaminari-activerecord (1.0.1)
|
151
|
-
activerecord
|
152
|
-
kaminari-core (= 1.0.1)
|
142
|
+
kaminari (0.16.3)
|
143
|
+
actionpack (>= 3.0.0)
|
144
|
+
activesupport (>= 3.0.0)
|
153
145
|
kaminari-bootstrap (3.0.1)
|
154
146
|
kaminari (>= 0.13.0)
|
155
147
|
rails
|
156
|
-
kaminari-core (1.0.1)
|
157
148
|
link_header (0.0.8)
|
158
149
|
linkeddata (1.1.11.2)
|
159
150
|
equivalent-xml (~> 0.5)
|
@@ -3,10 +3,10 @@ silence_warnings do
|
|
3
3
|
end
|
4
4
|
|
5
5
|
Iqvoc.searchable_class_names = {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
'Label::SKOSXL::Base' => 'xllabels',
|
7
|
+
'Labeling::SKOSXL::Base' => 'labels',
|
8
|
+
'Labeling::SKOSXL::PrefLabel' => 'pref_labels',
|
9
|
+
'Labeling::SKOSXL::AltLabel' => 'alt_labels'
|
10
10
|
}
|
11
11
|
|
12
12
|
module SkosXlExporterExtensions
|
@@ -17,16 +17,20 @@ module SkosXlExporterExtensions
|
|
17
17
|
@logger.info 'Exporting xl labels...'
|
18
18
|
|
19
19
|
offset = 0
|
20
|
-
|
21
|
-
labels = Iqvoc::XLLabel.base_class.published
|
20
|
+
loop do
|
21
|
+
labels = Iqvoc::XLLabel.base_class.published
|
22
|
+
.order('id')
|
23
|
+
.limit(100)
|
24
|
+
.offset(offset)
|
25
|
+
|
22
26
|
limit = labels.size < 100 ? labels.size : 100
|
23
|
-
break if labels.size
|
27
|
+
break if labels.size.zero?
|
24
28
|
|
25
29
|
labels.each do |label|
|
26
30
|
render_label_rdf(document, label)
|
27
31
|
end
|
28
32
|
|
29
|
-
@logger.info "Labels #{offset+1}-#{offset+limit} exported."
|
33
|
+
@logger.info "Labels #{offset + 1}-#{offset + limit} exported."
|
30
34
|
offset += labels.size # Size is important!
|
31
35
|
end
|
32
36
|
|
@@ -34,13 +38,11 @@ module SkosXlExporterExtensions
|
|
34
38
|
end
|
35
39
|
end
|
36
40
|
|
37
|
-
|
41
|
+
ActiveSupport.on_load :rdf_export_before_save do
|
38
42
|
class SkosExporter
|
39
43
|
include SkosXlExporterExtensions
|
40
44
|
end
|
41
|
-
end
|
42
45
|
|
43
|
-
ActiveSupport.on_load :rdf_export_before_save do
|
44
46
|
add_skos_xl_labels(@document)
|
45
47
|
end
|
46
48
|
|
data/iqvoc_skosxl.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.license = 'Apache License 2.0'
|
14
14
|
s.description = 'iQvoc - a SKOS(-XL) vocabulary management system built on the Semantic Web'
|
15
15
|
|
16
|
-
s.add_dependency 'iqvoc', '
|
16
|
+
s.add_dependency 'iqvoc', '>= 4.4.0', '~> 4.11'
|
17
17
|
s.add_development_dependency 'bundler', '~> 1.6'
|
18
18
|
|
19
19
|
s.files = %w(README.md Gemfile Gemfile.lock Rakefile iqvoc_skosxl.gemspec) +
|
data/lib/iqvoc/skosxl/version.rb
CHANGED
@@ -0,0 +1,70 @@
|
|
1
|
+
@prefix : <http://0.0.0.0:3000/>.
|
2
|
+
@prefix dct: <http://purl.org/dc/terms/>.
|
3
|
+
@prefix foaf: <http://xmlns.com/foaf/spec/>.
|
4
|
+
@prefix iqvoc: <http://try.iqvoc.net/schema#>.
|
5
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#>.
|
6
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
|
7
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
|
8
|
+
@prefix schema: <http://0.0.0.0:3000/schema#>.
|
9
|
+
@prefix skos: <http://www.w3.org/2004/02/skos/core#>.
|
10
|
+
@prefix skosxl: <http://www.w3.org/2008/05/skos-xl#>.
|
11
|
+
@prefix void: <http://rdfs.org/ns/void#>.
|
12
|
+
|
13
|
+
:_ca82d8aa a skos:Concept;
|
14
|
+
skos:inScheme :scheme;
|
15
|
+
skosxl:prefLabel :_30c696e0;
|
16
|
+
skos:prefLabel "Englisches Label"@en;
|
17
|
+
skosxl:prefLabel :_30c696e0;
|
18
|
+
skos:prefLabel "Englisches Label"@de;
|
19
|
+
skos:changeNote [
|
20
|
+
rdfs:comment "initial version"@en;
|
21
|
+
dct:created "2016-11-08T10:27:26+01:00";
|
22
|
+
dct:creator "Marc Jansing"
|
23
|
+
].
|
24
|
+
:_277d5174 a skos:Concept;
|
25
|
+
skos:inScheme :scheme;
|
26
|
+
skosxl:prefLabel :_a17feb96;
|
27
|
+
skos:prefLabel "GEIL"@en;
|
28
|
+
skosxl:prefLabel :_a17feb96;
|
29
|
+
skos:prefLabel "GEIL"@de;
|
30
|
+
skos:changeNote [
|
31
|
+
rdfs:comment "initial version"@en;
|
32
|
+
dct:created "2016-11-08T13:21:31+01:00";
|
33
|
+
dct:creator "Marc Jansing"
|
34
|
+
].
|
35
|
+
:_c71448b1 a skosxl:Label;
|
36
|
+
skosxl:literalForm "Testlabel (en)"@en.
|
37
|
+
:_9802f102 a skosxl:Label;
|
38
|
+
skosxl:literalForm "Testlabel 2 (en)"@en.
|
39
|
+
:_b335b546 a skosxl:Label;
|
40
|
+
skosxl:literalForm "Testlabel (en)"@en;
|
41
|
+
skos:changeNote [
|
42
|
+
rdfs:comment "initial version"@en;
|
43
|
+
dct:created "2016-06-28T10:56:04+02:00";
|
44
|
+
dct:creator "Marc Jansing"
|
45
|
+
];
|
46
|
+
skos:changeNote [
|
47
|
+
dct:creator "Marc Jansing";
|
48
|
+
dct:modified "2016-06-28T10:57:54+02:00"
|
49
|
+
].
|
50
|
+
:_30c696e0 a skosxl:Label;
|
51
|
+
skosxl:literalForm "Englisches Label"@en;
|
52
|
+
skos:changeNote [
|
53
|
+
rdfs:comment "initial version"@en;
|
54
|
+
dct:created "2016-11-08T10:26:57+01:00";
|
55
|
+
dct:creator "Marc Jansing"
|
56
|
+
].
|
57
|
+
:_e1f315ab a skosxl:Label;
|
58
|
+
skosxl:literalForm "Deutsches Label"@de;
|
59
|
+
skos:changeNote [
|
60
|
+
rdfs:comment "initial version"@en;
|
61
|
+
dct:created "2016-11-08T10:27:55+01:00";
|
62
|
+
dct:creator "Marc Jansing"
|
63
|
+
].
|
64
|
+
:_a17feb96 a skosxl:Label;
|
65
|
+
skosxl:literalForm "GEIL"@en;
|
66
|
+
skos:changeNote [
|
67
|
+
rdfs:comment "initial version"@en;
|
68
|
+
dct:created "2016-11-08T13:21:13+01:00";
|
69
|
+
dct:creator "Marc Jansing"
|
70
|
+
].
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iqvoc_skosxl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Glaser
|
@@ -10,22 +10,28 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-06-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: iqvoc
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
+
- - ">="
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 4.4.0
|
19
22
|
- - "~>"
|
20
23
|
- !ruby/object:Gem::Version
|
21
|
-
version: 4.11
|
24
|
+
version: '4.11'
|
22
25
|
type: :runtime
|
23
26
|
prerelease: false
|
24
27
|
version_requirements: !ruby/object:Gem::Requirement
|
25
28
|
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: 4.4.0
|
26
32
|
- - "~>"
|
27
33
|
- !ruby/object:Gem::Version
|
28
|
-
version: 4.11
|
34
|
+
version: '4.11'
|
29
35
|
- !ruby/object:Gem::Dependency
|
30
36
|
name: bundler
|
31
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,6 +135,7 @@ files:
|
|
129
135
|
- lib/iqvoc/skosxl/version.rb
|
130
136
|
- lib/iqvoc/xllabel.rb
|
131
137
|
- lib/iqvoc_skosxl.rb
|
138
|
+
- public/export/iqvoc_dump-2017-06-07_13-08.ttl
|
132
139
|
- test/controllers/routing_test.rb
|
133
140
|
- test/fixtures/hobbies.nt
|
134
141
|
- test/integration/concept_label_language_test.rb
|