iqvoc 4.10.0 → 4.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/Gemfile +3 -3
  4. data/Gemfile.lock +74 -71
  5. data/LICENSE +1 -1
  6. data/app/aides/rdfapi.rb +1 -0
  7. data/app/assets/javascripts/framework.js +1 -3
  8. data/app/assets/javascripts/iqvoc/federated_concept_mapper.js +1 -1
  9. data/app/assets/javascripts/iqvoc/iqvoc.js +18 -5
  10. data/app/assets/javascripts/iqvoc/label_resolver.js +10 -17
  11. data/app/assets/javascripts/iqvoc/onebox.js.erb +1 -17
  12. data/app/controllers/concepts/alphabetical_controller.rb +3 -1
  13. data/app/controllers/concepts_controller.rb +14 -3
  14. data/app/controllers/dashboard_controller.rb +2 -2
  15. data/app/controllers/rdf_controller.rb +5 -2
  16. data/app/controllers/reverse_matches_controller.rb +29 -23
  17. data/app/exceptions/matched_concept_unpublished.rb +7 -0
  18. data/app/jobs/reverse_match_job.rb +3 -1
  19. data/app/models/collection/base.rb +2 -2
  20. data/app/models/concept/base.rb +12 -16
  21. data/app/models/concept/validations.rb +2 -0
  22. data/app/models/dataset/adaptors/iqvoc/alphabetical_search_adaptor.rb +3 -3
  23. data/app/models/dataset/adaptors/iqvoc/http_adaptor.rb +3 -3
  24. data/app/models/dataset/adaptors/iqvoc/search_adaptor.rb +1 -2
  25. data/app/models/dataset/iqvoc_dataset.rb +14 -4
  26. data/app/models/match/base.rb +4 -0
  27. data/app/models/services/reverse_match_service.rb +7 -7
  28. data/app/presenters/alphabetical_search_result_remote.rb +6 -1
  29. data/app/views/concepts/_form.html.erb +15 -11
  30. data/app/views/layouts/_controls.html.erb +1 -1
  31. data/app/views/layouts/_navigation.html.erb +6 -5
  32. data/app/views/partials/collection/_member.html.erb +1 -1
  33. data/app/views/partials/note/_base.html.erb +1 -1
  34. data/app/views/partials/note/_edit_base.html.erb +1 -1
  35. data/app/views/partials/note/skos/_edit_change_note.html.erb +6 -0
  36. data/app/views/partials/note/skos/change_note/_search_result.html.erb +5 -3
  37. data/app/views/rdf/dataset.iqrdf +2 -2
  38. data/config/locales/de.yml +4 -3
  39. data/config/locales/defaults.de.yml +1 -1
  40. data/config/locales/en.yml +1 -0
  41. data/db/schema.rb +10 -10
  42. data/iqvoc.gemspec +5 -5
  43. data/lib/engine_tasks/db.rake +2 -1
  44. data/lib/iqvoc/version.rb +1 -1
  45. data/lib/tasks/matches.rake +1 -11
  46. data/public/export/10192805148978885837967844546781669290.nt +28 -0
  47. data/public/export/116918272411112416290066634905903813354.nt +28 -0
  48. data/public/export/13837.nt +28 -0
  49. data/public/export/1417.nt +28 -0
  50. data/public/export/153275568579348383693796155341871693100.nt +28 -0
  51. data/public/export/15332.nt +28 -0
  52. data/public/export/19005675879943976619209658028974932617.nt +28 -0
  53. data/public/export/208299769475402765740883052440976216922.nt +28 -0
  54. data/public/export/22367.nt +28 -0
  55. data/public/export/239842039859946079048284298581204422602.nt +28 -0
  56. data/public/export/24489.nt +28 -0
  57. data/public/export/263331012556698690896467806067510942801.nt +28 -0
  58. data/public/export/270933597086710360561526644701101107992.nt +28 -0
  59. data/public/export/30428904238451414062970608699950348184.nt +28 -0
  60. data/public/export/30747.nt +28 -0
  61. data/public/export/31194.nt +28 -0
  62. data/public/export/38674.nt +28 -0
  63. data/public/export/41895.nt +28 -0
  64. data/public/export/44382.nt +28 -0
  65. data/public/export/48640.nt +28 -0
  66. data/public/export/51540.nt +28 -0
  67. data/public/export/55305.nt +28 -0
  68. data/public/export/59453.nt +28 -0
  69. data/public/export/65515.nt +28 -0
  70. data/public/export/8784603487603018400727339241555940088.nt +28 -0
  71. data/public/uploads/import/0c65980ba25416fbc4d503426e1a8f25.nt +259 -0
  72. data/public/uploads/import/13b577babf078cb2daa4886acf527dab.nt +259 -0
  73. data/public/uploads/import/2630c1b010d4f6cd0bfc1a82b567c0f2.nt +259 -0
  74. data/public/uploads/import/2b4c8e8a0e717ec7482fbb0858a73ca9.nt +259 -0
  75. data/public/uploads/import/3b10e21d4d4ae99504757daea91e37ea.nt +259 -0
  76. data/public/uploads/import/3e2c6beca4bc3d1845c608e85a653b6b.nt +259 -0
  77. data/public/uploads/import/484589b64bb31625095e2aa461c7c5f5.nt +259 -0
  78. data/public/uploads/import/549f0c78be0d5a4071366cd5668b4fb8.nt +259 -0
  79. data/public/uploads/import/5d66b58c29807cd92be65cd536c4b237.nt +259 -0
  80. data/public/uploads/import/6c96310921be5d247e00badec43170ff.nt +259 -0
  81. data/public/uploads/import/76e98edd3edd803faa12c82047ebf7fc.nt +259 -0
  82. data/public/uploads/import/7a8c8a3531229829bf7b16380550cb8c.nt +259 -0
  83. data/public/uploads/import/876b3334d3fd4143d573e4e1c213a637.nt +259 -0
  84. data/public/uploads/import/8a39cdbeb92dcabb370bcc9a586a3d2e.nt +259 -0
  85. data/public/uploads/import/94a3ea41583c51b9c36ffe5ea2d0535c.nt +259 -0
  86. data/public/uploads/import/95d86f95ae7ef0a4c45f498587b51700.nt +259 -0
  87. data/public/uploads/import/a8398ee85fdd1f866c2051f1074638b1.nt +259 -0
  88. data/public/uploads/import/addcaf555e2cfcb8baf358fb469f8a0a.nt +259 -0
  89. data/public/uploads/import/ae54ee7fda3362df0f6de4da0459106d.nt +259 -0
  90. data/public/uploads/import/b220fb27294d324cc34a4f32dcb15613.nt +259 -0
  91. data/public/uploads/import/bc8a3cd089026ff128732c047e7b911f.nt +259 -0
  92. data/public/uploads/import/ca4a8b0c64170bc9e93d32be13b30136.nt +259 -0
  93. data/public/uploads/import/f2620905a23bbc9e0e49f186b10ac51a.nt +259 -0
  94. data/public/uploads/import/f3572e0f9e4ec2ef482789e048a11af8.nt +259 -0
  95. data/public/uploads/import/fad73d1341ee30e4888cd1698f502ab5.nt +259 -0
  96. data/public/uploads/tmp/1463649041-61474-2323/hobbies.nt +259 -0
  97. data/public/uploads/tmp/1463664346-5686-2298/hobbies.nt +259 -0
  98. data/public/uploads/tmp/1463665390-6932-0270/hobbies.nt +259 -0
  99. data/public/uploads/tmp/1463668304-9630-3251/hobbies.nt +259 -0
  100. data/public/uploads/tmp/1463669489-10839-0938/hobbies.nt +259 -0
  101. data/public/uploads/tmp/1466609043-45060-5576/hobbies.nt +259 -0
  102. data/public/uploads/tmp/1467099160-32022-0649/hobbies.nt +259 -0
  103. data/public/uploads/tmp/1467099195-32141-0911/hobbies.nt +259 -0
  104. data/public/uploads/tmp/1467104923-38750-3228/hobbies.nt +259 -0
  105. data/public/uploads/tmp/1467195067-15511-1862/hobbies.nt +259 -0
  106. data/public/uploads/tmp/1477904194-9559-9102/hobbies.nt +259 -0
  107. data/public/uploads/tmp/1478096083-30132-9555/hobbies.nt +259 -0
  108. data/public/uploads/tmp/1479132609-14928-7976/hobbies.nt +259 -0
  109. data/public/uploads/tmp/1479133367-19225-4523/hobbies.nt +259 -0
  110. data/public/uploads/tmp/1479139859-34556-4051/hobbies.nt +259 -0
  111. data/public/uploads/tmp/1479201601-72814-6787/hobbies.nt +259 -0
  112. data/public/uploads/tmp/1479208599-84188-0489/hobbies.nt +259 -0
  113. data/public/uploads/tmp/1479210883-89869-0006/hobbies.nt +259 -0
  114. data/public/uploads/tmp/1479219219-14488-9873/hobbies.nt +259 -0
  115. data/public/uploads/tmp/1479220116-16009-2099/hobbies.nt +259 -0
  116. data/public/uploads/tmp/1479221749-20446-1586/hobbies.nt +259 -0
  117. data/public/uploads/tmp/1479221819-21274-6192/hobbies.nt +259 -0
  118. data/public/uploads/tmp/1479292258-60665-3926/hobbies.nt +259 -0
  119. data/public/uploads/tmp/1479903704-8347-9444/hobbies.nt +259 -0
  120. data/public/uploads/tmp/1479905096-13975-7245/hobbies.nt +259 -0
  121. data/test/integration/concept_collection_assignment_test.rb +78 -0
  122. data/test/integration/note_annotations_test.rb +12 -3
  123. data/test/integration/reverse_match_job_test.rb +1 -1
  124. metadata +102 -18
@@ -1,7 +1,7 @@
1
1
  <ul class="nav navbar-nav navbar-right">
2
2
  <li class="divider-vertical"></li>
3
3
  <li id="language_selection" class="dropdown">
4
- <a href="javascript:;" class="dropdown-toggle">
4
+ <a class="dropdown-toggle" data-toggle="dropdown" href="#">
5
5
  <%= t("txt.views.lang_widget.caption") %>
6
6
  <i class="fa fa-angle-down"></i>
7
7
  </a>
@@ -1,13 +1,14 @@
1
- <div class="navbar navbar-default navbar-fixed-top" role="navigation">
1
+ <nav class="navbar navbar-default navbar-fixed-top">
2
2
  <div class="container">
3
3
  <div class="navbar-header">
4
- <button class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
4
+ <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
5
+ <span class="sr-only">Toggle navigation</span>
5
6
  <i class="fa fa-bars"></i> <%= t('txt.common.menu') %>
6
7
  </button>
7
- <%= link_to Iqvoc.config["title"], localized_root_path, :class => "navbar-brand" %>
8
+ <%= link_to Iqvoc.config["title"], localized_root_path, class: 'navbar-brand' %>
8
9
  </div>
9
10
 
10
- <div class="navbar-collapse collapse">
11
+ <div id="navbar" class="navbar-collapse collapse">
11
12
  <ul class="nav navbar-nav">
12
13
  <%= nav_items Iqvoc.navigation_items %>
13
14
  </ul>
@@ -15,4 +16,4 @@
15
16
  <%= render "layouts/controls" %>
16
17
  </div>
17
18
  </div>
18
- </div>
19
+ </nav>
@@ -1,4 +1,4 @@
1
- <div class="relation panel">
1
+ <div class="relation panel" id="assigned_collections">
2
2
  <h2><%= klass.model_name.human(:count => 2) %></h2>
3
3
  <div class="relation-body">
4
4
  <%- if concept.collections.any? -%>
@@ -1,4 +1,4 @@
1
- <div class="<%= html_classes("relation", "panel", (class_name rescue nil)) %>">
1
+ <div id="<%= klass.to_s.to_relation_name %>" class="<%= html_classes("relation", "panel", (class_name rescue nil)) %>">
2
2
  <%# Provide support for iqvoc_skosxl %>
3
3
  <% object = if defined?(concept)
4
4
  concept
@@ -6,7 +6,7 @@
6
6
  <%= f.fields_for assoc_klass.name.to_relation_name, note do |note_form| %>
7
7
  <%= note_form.text_area :value %>
8
8
  <%= note_form.select :language, Iqvoc.note_languages.map { |l| [l, l]}, :label => t("txt.common.language") %>
9
- <% unless note.new_record? %>
9
+ <% if note.persisted? %>
10
10
  <%= note_form.check_box :"_destroy", :label => t("txt.common.delete") %>
11
11
  <% end %>
12
12
  <% end %>
@@ -17,6 +17,12 @@
17
17
  :label => t("txt.common.language"),
18
18
  :include_blank => false %>
19
19
 
20
+ <%= note_form.fields_for :annotations do |na| %>
21
+ <%= na.hidden_field :namespace %>
22
+ <%= na.hidden_field :predicate %>
23
+ <%= na.hidden_field :value %>
24
+ <% end %>
25
+
20
26
  <%= f.form_group :note_annotations, :label => {:text => Note::Annotated::Base.model_name.human(:count => 2)} do %>
21
27
  <dl class="note_annotations">
22
28
  <% note.annotations.each do |na| %>
@@ -1,9 +1,11 @@
1
1
  <li class="search-result" data-rdf-namespace="<%= iqvoc_default_rdf_namespaces[result.rdf_namespace.try(:to_sym)] %>" data-rdf-predicate="<%= result.rdf_predicate %>" data-rdf-value="<%= result.to_s %>" data-rdf-language="<%= result.language %>">
2
- <% result.annotations.each do |annotation| %>
3
- <%= link_to_object(result.owner, "#{annotation.predicate}: #{annotation.value}" %><br/>
2
+ <% if result.owner.is_a?(Concept::Base) %>
3
+ <%= link_to "#{result.owner.pref_label.to_s} (#{result.owner.origin})", concept_path(:id => result.owner) %>
4
+ <% elsif result.owner.is_a?(Label::Base) %>
5
+ <%= link_to result.owner.value, label_path(:id => result.owner), :lang => result.language %>
4
6
  <% end %>
5
7
  <dl class="search-result-meta">
6
8
  <dt class="search-result-key"><%= t('txt.views.search_results.type') %></dt>
7
- <dd class="search-result-value"><%= result.class.model_name.human %></dd>
9
+ <dd class="search-result-value"><%= result.model_name.human %></dd>
8
10
  </dl>
9
11
  </li>
@@ -5,6 +5,6 @@ end
5
5
 
6
6
  ns = IqRdf::Namespace.find_namespace_class(:void)
7
7
 
8
- document << IqRdf.build_uri(Iqvoc.config['title'].parameterize, ns.build_uri('Dataset')) do |dataset|
9
- dataset.dct.title Iqvoc.config['title']
8
+ document << IqRdf.build_uri(@title.parameterize, ns.build_uri('Dataset')) do |dataset|
9
+ dataset.dct.title @title
10
10
  end
@@ -132,11 +132,11 @@ de:
132
132
  new: "Neues %{concept_class_name}"
133
133
  pref_label: "Bevorzugtes Label"
134
134
  classifiers: "Umweltklassen"
135
- pending_jobs_header: "Austehende Jobs"
136
- pending_jobs_message: "Zu diesem Konzept existieren noch austehende Jobs."
135
+ pending_jobs_header: "Ausstehende Jobs"
136
+ pending_jobs_message: "Zu diesem Konzept existieren noch ausstehende Jobs."
137
137
  add_match: "Anlage:"
138
138
  remove_match: "Löschung:"
139
- job_detail: "%{match_class}-Beziehung von Konzept %{subject} aus entfernter Ontologie auf %{target} austehend."
139
+ job_detail: "%{match_class}-Beziehung von Konzept %{subject} aus entfernter Ontologie auf %{target} ausstehend."
140
140
  job_state: "(Status: %{state})"
141
141
  to_concept: "Zum Konzept"
142
142
  teaser:
@@ -269,6 +269,7 @@ de:
269
269
  current_revision: "Aktuelle Revision %{rev}"
270
270
  in_ongoing_editing_by: "in Bearbeitung von %{user}."
271
271
  to_review_error: "Konnte nicht in den Freigabeprozess aufgenommen werden"
272
+ initial_version: "Initiale Version"
272
273
  labelings:
273
274
  edit:
274
275
  header: "Labeling bearbeiten"
@@ -31,7 +31,7 @@ de:
31
31
  time:
32
32
  formats:
33
33
  default: "%A, %d. %B %Y, %H:%M Uhr"
34
- short: "%d. %B, %H:%M Uhr"
34
+ short: "%d.%m.%Y, %H:%M Uhr"
35
35
  long: "%A, %d. %B %Y, %H:%M Uhr"
36
36
  time: "%H:%M"
37
37
 
@@ -276,6 +276,7 @@ en:
276
276
  consistency_check: "Check consistency"
277
277
  current_revision: "Current revision %{rev}"
278
278
  in_ongoing_editing_by: "is being edited by %{user}."
279
+ initial_version: "initial version"
279
280
  labelings:
280
281
  edit:
281
282
  header: "Edit labeling"
@@ -20,7 +20,7 @@ ActiveRecord::Schema.define(version: 20150317162953) do
20
20
  end
21
21
 
22
22
  add_index "collection_members", ["collection_id", "target_id", "type"], name: "ix_collections_fk_type", using: :btree
23
- add_index "collection_members", ["target_id"], name: "fk_rails_677feefc03", using: :btree
23
+ add_index "collection_members", ["target_id"], name: "fk_rails_2a51b48094", using: :btree
24
24
 
25
25
  create_table "concept_relations", force: :cascade do |t|
26
26
  t.string "type", limit: 255
@@ -32,7 +32,7 @@ ActiveRecord::Schema.define(version: 20150317162953) do
32
32
  end
33
33
 
34
34
  add_index "concept_relations", ["owner_id", "target_id"], name: "ix_concept_relations_fk", using: :btree
35
- add_index "concept_relations", ["target_id"], name: "fk_rails_fdb9a8342e", using: :btree
35
+ add_index "concept_relations", ["target_id"], name: "fk_rails_fd6c6e6fd7", using: :btree
36
36
 
37
37
  create_table "concepts", force: :cascade do |t|
38
38
  t.string "type", limit: 255
@@ -43,14 +43,14 @@ ActiveRecord::Schema.define(version: 20150317162953) do
43
43
  t.integer "locked_by", limit: 4
44
44
  t.date "expired_at"
45
45
  t.date "follow_up"
46
- t.boolean "to_review", limit: 1
46
+ t.boolean "to_review"
47
47
  t.date "rdf_updated_at"
48
48
  t.datetime "created_at"
49
49
  t.datetime "updated_at"
50
- t.boolean "top_term", limit: 1, default: false
50
+ t.boolean "top_term", default: false
51
51
  end
52
52
 
53
- add_index "concepts", ["locked_by"], name: "fk_rails_be867cf8c7", using: :btree
53
+ add_index "concepts", ["locked_by"], name: "fk_rails_69655c7fd3", using: :btree
54
54
  add_index "concepts", ["origin"], name: "ix_concepts_on_origin", length: {"origin"=>255}, using: :btree
55
55
  add_index "concepts", ["published_version_id"], name: "ix_concepts_publ_version_id", using: :btree
56
56
 
@@ -86,7 +86,7 @@ ActiveRecord::Schema.define(version: 20150317162953) do
86
86
  create_table "exports", force: :cascade do |t|
87
87
  t.integer "user_id", limit: 4
88
88
  t.text "output", limit: 65535
89
- t.boolean "success", limit: 1, default: false
89
+ t.boolean "success", default: false
90
90
  t.integer "file_type", limit: 4
91
91
  t.string "token", limit: 255
92
92
  t.datetime "created_at"
@@ -100,12 +100,12 @@ ActiveRecord::Schema.define(version: 20150317162953) do
100
100
  create_table "imports", force: :cascade do |t|
101
101
  t.integer "user_id", limit: 4
102
102
  t.text "output", limit: 65535
103
- t.boolean "success", limit: 1, default: false
103
+ t.boolean "success", default: false
104
104
  t.datetime "created_at"
105
105
  t.datetime "updated_at"
106
106
  t.datetime "finished_at"
107
107
  t.string "import_file", limit: 255
108
- t.boolean "publish", limit: 1
108
+ t.boolean "publish"
109
109
  t.string "default_namespace", limit: 255
110
110
  end
111
111
 
@@ -120,7 +120,7 @@ ActiveRecord::Schema.define(version: 20150317162953) do
120
120
  end
121
121
 
122
122
  add_index "labelings", ["owner_id", "target_id", "type"], name: "ix_labelings_fk_type", using: :btree
123
- add_index "labelings", ["target_id"], name: "fk_rails_4926ce64b9", using: :btree
123
+ add_index "labelings", ["target_id"], name: "fk_rails_5897707e64", using: :btree
124
124
  add_index "labelings", ["type"], name: "ix_labelings_on_type", using: :btree
125
125
 
126
126
  create_table "labels", force: :cascade do |t|
@@ -186,7 +186,7 @@ ActiveRecord::Schema.define(version: 20150317162953) do
186
186
  t.string "surname", limit: 255
187
187
  t.string "email", limit: 255
188
188
  t.string "crypted_password", limit: 255
189
- t.boolean "active", limit: 1
189
+ t.boolean "active"
190
190
  t.datetime "created_at"
191
191
  t.datetime "updated_at"
192
192
  t.string "password_salt", limit: 255
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.description = 'iQvoc - a SKOS(-XL) vocabulary management system built on the Semantic Web'
14
14
  s.license = 'Apache License 2.0'
15
15
 
16
- s.add_dependency 'rails', '~> 4.2.0'
16
+ s.add_dependency('rails', '>= 4.2.8', '< 5.0')
17
17
  s.add_dependency 'bundler'
18
18
  s.add_dependency 'kaminari'
19
19
  s.add_dependency 'kaminari-bootstrap', '~> 3.0.1'
@@ -28,16 +28,16 @@ Gem::Specification.new do |s|
28
28
  s.add_dependency 'bootstrap-sass', '~> 3.3.1.0'
29
29
  s.add_dependency 'bootstrap_form', '~> 2.2.0'
30
30
  s.add_dependency 'iq_triplestorage'
31
- s.add_dependency 'nokogiri'
32
- s.add_dependency 'linkeddata'
31
+ s.add_dependency 'nokogiri', '~> 1.6.0'
32
+ s.add_dependency 'linkeddata', '~> 1.1.2'
33
33
  s.add_dependency 'font-awesome-rails', '~> 4.2.0'
34
34
  s.add_dependency 'uglifier', '>= 1.3.0'
35
35
  s.add_dependency 'apipie-rails', '~> 0.3.5'
36
36
  s.add_dependency 'maruku'
37
37
  s.add_dependency 'database_cleaner'
38
- s.add_dependency 'delayed_job_active_record', '~> 4.0.1'
38
+ s.add_dependency 'delayed_job_active_record', '~> 4.1.1'
39
39
  s.add_dependency 'carrierwave'
40
- s.add_dependency 'autoprefixer-rails', '~> 5.1.8'
40
+ s.add_dependency 'autoprefixer-rails', '~> 6.5.1.1'
41
41
 
42
42
  s.files = %w(LICENSE README.md CHANGELOG.md Gemfile Gemfile.lock Rakefile iqvoc.gemspec) +
43
43
  Dir.glob('{app,config,db,public,lib,test,vendor}/**/*')
@@ -9,7 +9,8 @@ namespace :iqvoc do
9
9
  desc "Load seeds from all engines (db/seed tasks should be idempotent)"
10
10
  task :seed_all => :environment do
11
11
  engines = Rails.application.railties.select do |e|
12
- e.config.respond_to?(:paths) &&
12
+ e.method(:config).arity == 0 &&
13
+ e.config.respond_to?(:paths) &&
13
14
  e.config.paths["db/seeds.rb"] &&
14
15
  e.config.paths["db/seeds.rb"].existent.any?
15
16
  end
@@ -15,5 +15,5 @@
15
15
  # limitations under the License.
16
16
 
17
17
  module Iqvoc
18
- VERSION = "4.10.0"
18
+ VERSION = "4.11.0"
19
19
  end
@@ -17,10 +17,7 @@ namespace :iqvoc do
17
17
  reverse_match_service = Services::ReverseMatchService.new(host, port)
18
18
 
19
19
  Match::Base.includes(:concept).find_each do |m|
20
- target_base_uri = base_uri(m.value)
21
-
22
- # create jobs if target_base_uri is in iqvoc_sources
23
- if iqvoc_sources.include?(target_base_uri)
20
+ if iqvoc_sources.detect { |url| m.value.starts_with? url.to_s }
24
21
  job = reverse_match_service.build_job(:add_match, m.concept, m.value, m.type)
25
22
  reverse_match_service.add(job)
26
23
 
@@ -38,12 +35,5 @@ namespace :iqvoc do
38
35
  stdout_logger.info "Cleared Jobs"
39
36
  end
40
37
 
41
- private
42
-
43
- def base_uri(url_string)
44
- target_uri = URI.parse(url_string)
45
- base_uri = URI.parse("#{target_uri.scheme}://#{target_uri.host}:#{target_uri.port}")
46
- end
47
-
48
38
  end
49
39
  end
@@ -0,0 +1,28 @@
1
+ <http://www.example.com/animal> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
2
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
3
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tier"@de .
4
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#prefLabel> "Animal"@en .
5
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#altLabel> "Viehzeug"@de .
6
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/cow> .
7
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/donkey> .
8
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/monkey> .
9
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#definition> "Ein Tier ist kein Mensch."@de .
10
+ <http://www.example.com/cow> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
11
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
12
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#prefLabel> "Kuh"@de .
13
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#prefLabel> "Cow"@en .
14
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#altLabel> "Rind"@de .
15
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
16
+ <http://www.example.com/donkey> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
17
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
18
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Esel"@de .
19
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Donkey"@en .
20
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
21
+ <http://www.example.com/monkey> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
22
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
23
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Affe"@de .
24
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Monkey"@en .
25
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#altLabel> "Äffle"@de .
26
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#altLabel> "Ape"@en .
27
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
28
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#exactMatch> <http://dbpedia.org/page/Monkey> .
@@ -0,0 +1,28 @@
1
+ <http://www.example.com/animal> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
2
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
3
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tier"@de .
4
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#prefLabel> "Animal"@en .
5
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#altLabel> "Viehzeug"@de .
6
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/cow> .
7
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/donkey> .
8
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/monkey> .
9
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#definition> "Ein Tier ist kein Mensch."@de .
10
+ <http://www.example.com/cow> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
11
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
12
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#prefLabel> "Kuh"@de .
13
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#prefLabel> "Cow"@en .
14
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#altLabel> "Rind"@de .
15
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
16
+ <http://www.example.com/donkey> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
17
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
18
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Esel"@de .
19
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Donkey"@en .
20
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
21
+ <http://www.example.com/monkey> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
22
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
23
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Affe"@de .
24
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Monkey"@en .
25
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#altLabel> "Äffle"@de .
26
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#altLabel> "Ape"@en .
27
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
28
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#exactMatch> <http://dbpedia.org/page/Monkey> .
@@ -0,0 +1,28 @@
1
+ <http://www.example.com/animal> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
2
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
3
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tier"@de .
4
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#prefLabel> "Animal"@en .
5
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#altLabel> "Viehzeug"@de .
6
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/cow> .
7
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/donkey> .
8
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/monkey> .
9
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#definition> "Ein Tier ist kein Mensch."@de .
10
+ <http://www.example.com/cow> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
11
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
12
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#prefLabel> "Kuh"@de .
13
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#prefLabel> "Cow"@en .
14
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#altLabel> "Rind"@de .
15
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
16
+ <http://www.example.com/donkey> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
17
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
18
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Esel"@de .
19
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Donkey"@en .
20
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
21
+ <http://www.example.com/monkey> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
22
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
23
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Affe"@de .
24
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Monkey"@en .
25
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#altLabel> "Äffle"@de .
26
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#altLabel> "Ape"@en .
27
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
28
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#exactMatch> <http://dbpedia.org/page/Monkey> .
@@ -0,0 +1,28 @@
1
+ <http://www.example.com/animal> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
2
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
3
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tier"@de .
4
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#prefLabel> "Animal"@en .
5
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#altLabel> "Viehzeug"@de .
6
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/cow> .
7
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/donkey> .
8
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/monkey> .
9
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#definition> "Ein Tier ist kein Mensch."@de .
10
+ <http://www.example.com/cow> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
11
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
12
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#prefLabel> "Kuh"@de .
13
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#prefLabel> "Cow"@en .
14
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#altLabel> "Rind"@de .
15
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
16
+ <http://www.example.com/donkey> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
17
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
18
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Esel"@de .
19
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Donkey"@en .
20
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
21
+ <http://www.example.com/monkey> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
22
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
23
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Affe"@de .
24
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Monkey"@en .
25
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#altLabel> "Äffle"@de .
26
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#altLabel> "Ape"@en .
27
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
28
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#exactMatch> <http://dbpedia.org/page/Monkey> .
@@ -0,0 +1,28 @@
1
+ <http://www.example.com/animal> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
2
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
3
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tier"@de .
4
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#prefLabel> "Animal"@en .
5
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#altLabel> "Viehzeug"@de .
6
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/cow> .
7
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/donkey> .
8
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/monkey> .
9
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#definition> "Ein Tier ist kein Mensch."@de .
10
+ <http://www.example.com/cow> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
11
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
12
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#prefLabel> "Kuh"@de .
13
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#prefLabel> "Cow"@en .
14
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#altLabel> "Rind"@de .
15
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
16
+ <http://www.example.com/donkey> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
17
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
18
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Esel"@de .
19
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Donkey"@en .
20
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
21
+ <http://www.example.com/monkey> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
22
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
23
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Affe"@de .
24
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Monkey"@en .
25
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#altLabel> "Äffle"@de .
26
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#altLabel> "Ape"@en .
27
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
28
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#exactMatch> <http://dbpedia.org/page/Monkey> .
@@ -0,0 +1,28 @@
1
+ <http://www.example.com/animal> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
2
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
3
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tier"@de .
4
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#prefLabel> "Animal"@en .
5
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#altLabel> "Viehzeug"@de .
6
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/cow> .
7
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/donkey> .
8
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#narrower> <http://www.example.com/monkey> .
9
+ <http://www.example.com/animal> <http://www.w3.org/2004/02/skos/core#definition> "Ein Tier ist kein Mensch."@de .
10
+ <http://www.example.com/cow> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
11
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
12
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#prefLabel> "Kuh"@de .
13
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#prefLabel> "Cow"@en .
14
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#altLabel> "Rind"@de .
15
+ <http://www.example.com/cow> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
16
+ <http://www.example.com/donkey> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
17
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
18
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Esel"@de .
19
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Donkey"@en .
20
+ <http://www.example.com/donkey> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
21
+ <http://www.example.com/monkey> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
22
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#inScheme> <http://www.example.com/scheme> .
23
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Affe"@de .
24
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#prefLabel> "Monkey"@en .
25
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#altLabel> "Äffle"@de .
26
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#altLabel> "Ape"@en .
27
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#broader> <http://www.example.com/animal> .
28
+ <http://www.example.com/monkey> <http://www.w3.org/2004/02/skos/core#exactMatch> <http://dbpedia.org/page/Monkey> .