iqvoc_skosxl 2.9.1 → 2.11.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +8 -10
- data/Gemfile.lock +475 -296
- data/README.md +1 -1
- data/app/assets/javascripts/iqvoc_skosxl/duplicate_check.js +104 -0
- data/app/assets/javascripts/iqvoc_skosxl/manifest.js +4 -0
- data/app/assets/javascripts/iqvoc_skosxl/new_label_modal.js +19 -0
- data/app/assets/javascripts/manifest.js +3 -3
- data/app/assets/stylesheets/manifest.scss +4 -0
- data/app/controllers/labels/versions_controller.rb +30 -50
- data/app/controllers/labels_controller.rb +71 -25
- data/app/controllers/rdf_controller.rb +8 -7
- data/app/controllers/xl_dashboard_controller.rb +43 -0
- data/app/helpers/iqvoc_skosxl_helper.rb +4 -0
- data/app/helpers/labels_helper.rb +8 -6
- data/app/models/application_record.rb +3 -0
- data/app/models/collection/skosxl/extension.rb +8 -0
- data/app/models/concept/skosxl/extension.rb +4 -2
- data/app/models/label/relation/base.rb +2 -2
- data/app/models/label/skosxl/base.rb +166 -29
- data/app/models/label/skosxl/properties/literal_form.rb +1 -1
- data/app/models/labeling/skosxl/alt_label.rb +12 -0
- data/app/models/labeling/skosxl/base.rb +65 -10
- data/app/models/labeling/skosxl/hidden_label.rb +2 -2
- data/app/models/labeling/skosxl/pref_label.rb +4 -0
- data/app/views/concepts/_form.html.erb +115 -0
- data/app/views/labels/_form.html.erb +11 -3
- data/app/views/labels/_language.html.erb +4 -0
- data/app/views/labels/_sidebar.html.erb +13 -7
- data/app/views/labels/duplicate.html.erb +4 -0
- data/app/views/labels/new.html.erb +1 -0
- data/app/views/labels/new_from_concept.html.erb +28 -0
- data/app/views/labels/notifications/_referenced_labels.html.erb +0 -1
- data/app/views/{rdf/show_label.iqrdf → labels/show.iqrdf} +1 -1
- data/app/views/labels/show_published.html.erb +5 -3
- data/app/views/labels/show_unpublished.html.erb +19 -22
- data/app/views/layouts/_label_in_concept_modal.html.erb +2 -0
- data/app/views/layouts/application.html.erb +51 -0
- data/app/views/partials/_modal.html.erb +17 -0
- data/app/views/partials/label/skosxl/_inline_base.html.erb +1 -0
- data/app/views/partials/label/skosxl/_new_link_base.html.erb +1 -1
- data/app/views/partials/labeling/skosxl/_base.html.erb +20 -13
- data/app/views/partials/labeling/skosxl/_edit_base.html.erb +3 -2
- data/config/application.rb +26 -14
- data/config/boot.rb +3 -3
- data/config/cable.yml +10 -0
- data/config/database.yml +21 -15
- data/config/database.yml.postgresql +12 -9
- data/config/environment.rb +1 -1
- data/config/initializers/content_security_policy.rb +25 -0
- data/config/initializers/filter_parameter_logging.rb +6 -2
- data/config/initializers/inflections.rb +4 -4
- data/config/initializers/iqvoc.rb +2 -0
- data/config/initializers/permissions_policy.rb +11 -0
- data/config/initializers/wrap_parameters.rb +2 -2
- data/config/initializers/zeitwerk.rb +7 -0
- data/config/locales/activerecord.de.yml +5 -2
- data/config/locales/activerecord.en.yml +3 -0
- data/config/locales/de.yml +13 -0
- data/config/locales/en.yml +13 -0
- data/config/routes.rb +8 -12
- data/config/storage.yml +34 -0
- data/db/migrate/20110408121540_extend_label.rb +3 -3
- data/db/migrate/20110408123644_add_label_relations.rb +1 -1
- data/db/migrate/20150108154312_add_fk_contraints_iqvoc_skosxl.rb +1 -1
- data/db/migrate/20150414083600_remove_fk_constraints_iqvoc_skosxl.rb +1 -1
- data/db/migrate/20231012174634_remove_locked_by_for_label.rb +5 -0
- data/db/schema.rb +173 -182
- data/iqvoc_skosxl.gemspec +2 -2
- data/lib/iqvoc/skosxl/version.rb +1 -1
- data/lib/iqvoc_skosxl.rb +8 -1
- data/public/assets/fonts/FiraMono-Regular-0b6138c5b386dc9125473fd851926f29.ttf +0 -0
- data/public/assets/fonts/FiraMono-Regular-690950e8d89c92cba41eeeb13f1de93e.woff +0 -0
- data/public/assets/fonts/FiraMono-Regular-98f97ed2dbf9d94d4fa5df048434b88d.eot +0 -0
- data/public/assets/fonts/FiraMono-Regular.eot +0 -0
- data/public/assets/fonts/FiraMono-Regular.ttf +0 -0
- data/public/assets/fonts/FiraMono-Regular.woff +0 -0
- data/public/assets/fonts/FiraSans-Bold-0de5f536bd0dc370449c0c67a49a6fe7.eot +0 -0
- data/public/assets/fonts/FiraSans-Bold-25037ef8d155e38b5df0c242a4c6cf2d.ttf +0 -0
- data/public/assets/fonts/FiraSans-Bold-494219a9639084eb9528ff47f79fcda1.woff +0 -0
- data/public/assets/fonts/FiraSans-Bold.eot +0 -0
- data/public/assets/fonts/FiraSans-Bold.ttf +0 -0
- data/public/assets/fonts/FiraSans-Bold.woff +0 -0
- data/public/assets/fonts/FiraSans-BoldItalic-5b3b812df9e1cb2b1f34baad65a2bdfb.ttf +0 -0
- data/public/assets/fonts/FiraSans-BoldItalic-90b8087c48feff2e828f658c49de5399.eot +0 -0
- data/public/assets/fonts/FiraSans-BoldItalic-b10e46158d50bf9b78968112acf87310.woff +0 -0
- data/public/assets/fonts/FiraSans-BoldItalic.eot +0 -0
- data/public/assets/fonts/FiraSans-BoldItalic.ttf +0 -0
- data/public/assets/fonts/FiraSans-BoldItalic.woff +0 -0
- data/public/assets/fonts/FiraSans-Book-659d252627051e785260ba445da8930f.woff +0 -0
- data/public/assets/fonts/FiraSans-Book-abc65ceb7bfaed729bff7a9d1367b7d4.eot +0 -0
- data/public/assets/fonts/FiraSans-Book-f0410501d5ecc5fe66bcdbc02b482c81.ttf +0 -0
- data/public/assets/fonts/FiraSans-Book.eot +0 -0
- data/public/assets/fonts/FiraSans-Book.ttf +0 -0
- data/public/assets/fonts/FiraSans-Book.woff +0 -0
- data/public/assets/fonts/FiraSans-ExtraLight-140f15ee97cb2099ff01c2b57dcd1a24.woff +0 -0
- data/public/assets/fonts/FiraSans-ExtraLight-28e5c2679df66406ebd117fbdded6753.eot +0 -0
- data/public/assets/fonts/FiraSans-ExtraLight-c15de70ebceffce178cbd2e82aa2c373.ttf +0 -0
- data/public/assets/fonts/FiraSans-ExtraLight.eot +0 -0
- data/public/assets/fonts/FiraSans-ExtraLight.ttf +0 -0
- data/public/assets/fonts/FiraSans-ExtraLight.woff +0 -0
- data/public/assets/fonts/FiraSans-Italic-ac4cb18fe14a7c90f29cdd2ce499ba59.woff +0 -0
- data/public/assets/fonts/FiraSans-Italic-bdea00fee0da5ca9176061e00c26a0da.eot +0 -0
- data/public/assets/fonts/FiraSans-Italic-e7e76a0ee170fd29b5d8100753eff569.ttf +0 -0
- data/public/assets/fonts/FiraSans-Italic.eot +0 -0
- data/public/assets/fonts/FiraSans-Italic.ttf +0 -0
- data/public/assets/fonts/FiraSans-Italic.woff +0 -0
- data/public/assets/fonts/FiraSans-Light-20adaf630b690c3e3184daaeae585f22.woff +0 -0
- data/public/assets/fonts/FiraSans-Light-3689e18b38d335ec0c43823adb6a2984.eot +0 -0
- data/public/assets/fonts/FiraSans-Light-55b04531e7a9ecdf58090d70b94b68e2.ttf +0 -0
- data/public/assets/fonts/FiraSans-Light-SC-098407a72b7ad46f7c2480d7ac11baf2.eot +0 -0
- data/public/assets/fonts/FiraSans-Light-SC-82763fe2ce9e6b897556c6f3c2aceb29.woff2 +0 -0
- data/public/assets/fonts/FiraSans-Light-SC-c73985985f0501c1845a5185b180fe6b.woff +0 -0
- data/public/assets/fonts/FiraSans-Light-SC-c9563f48d9cccd91f07e46801c27130f.ttf +0 -0
- data/public/assets/fonts/FiraSans-Light-SC.eot +0 -0
- data/public/assets/fonts/FiraSans-Light-SC.ttf +0 -0
- data/public/assets/fonts/FiraSans-Light-SC.woff +0 -0
- data/public/assets/fonts/FiraSans-Light-SC.woff2 +0 -0
- data/public/assets/fonts/FiraSans-Light.eot +0 -0
- data/public/assets/fonts/FiraSans-Light.ttf +0 -0
- data/public/assets/fonts/FiraSans-Light.woff +0 -0
- data/public/assets/fonts/FiraSans-Medium-082fab59048189168006bf2e914ba8b7.woff +0 -0
- data/public/assets/fonts/FiraSans-Medium-11706edfe8651c355b413bd24b4b5e10.eot +0 -0
- data/public/assets/fonts/FiraSans-Medium-3a0dacdeaba1b4c054f2d6cb5061965d.ttf +0 -0
- data/public/assets/fonts/FiraSans-Medium.eot +0 -0
- data/public/assets/fonts/FiraSans-Medium.ttf +0 -0
- data/public/assets/fonts/FiraSans-Medium.woff +0 -0
- data/public/assets/fonts/FiraSans-MediumItalic-6c8a2646d72641226527d574a8485b66.woff +0 -0
- data/public/assets/fonts/FiraSans-MediumItalic-b81e92794a6878b6c578d97b3ad5e6d7.ttf +0 -0
- data/public/assets/fonts/FiraSans-MediumItalic-eae7f4a3c4db9fe83025909ebfae5ad9.eot +0 -0
- data/public/assets/fonts/FiraSans-MediumItalic.eot +0 -0
- data/public/assets/fonts/FiraSans-MediumItalic.ttf +0 -0
- data/public/assets/fonts/FiraSans-MediumItalic.woff +0 -0
- data/public/assets/fonts/FiraSans-Regular-537188a19aeebdd74a92e114af7a02cb.ttf +0 -0
- data/public/assets/fonts/FiraSans-Regular-5d6a923de9be80ff5c2995cc03d93127.woff +0 -0
- data/public/assets/fonts/FiraSans-Regular-db689e5fea21ed4b7890811151968dc6.eot +0 -0
- data/public/assets/fonts/FiraSans-Regular.eot +0 -0
- data/public/assets/fonts/FiraSans-Regular.ttf +0 -0
- data/public/assets/fonts/FiraSans-Regular.woff +0 -0
- data/public/assets/fonts/FiraSans-UltraLight-3baefce4c224a0f0b26cdafe37dfa55d.eot +0 -0
- data/public/assets/fonts/FiraSans-UltraLight-e3909a352b87f853bb464836adfd602a.ttf +0 -0
- data/public/assets/fonts/FiraSans-UltraLight-f7289beeaa2353caf487553ee8b8ef03.woff +0 -0
- data/public/assets/fonts/FiraSans-UltraLight.eot +0 -0
- data/public/assets/fonts/FiraSans-UltraLight.ttf +0 -0
- data/public/assets/fonts/FiraSans-UltraLight.woff +0 -0
- data/public/assets/fonts/FontAwesome.otf +0 -0
- data/public/assets/fonts/fontawesome-webfont.eot +0 -0
- data/public/assets/fonts/fontawesome-webfont.svg +2671 -0
- data/public/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/public/assets/fonts/fontawesome-webfont.woff +0 -0
- data/public/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/public/assets/images/ajax-loader-30d8e72bfdae694b1938658e1b087df0.gif +0 -0
- data/public/assets/images/ajax-loader.gif +0 -0
- data/public/assets/images/iqvoc_logo-165f17a46cf0a1bf9464db9d136fb843.svg +41 -0
- data/public/assets/images/iqvoc_logo.svg +41 -0
- data/public/assets/images/treeview-default-line-5e3c0e0c48f48c23c45aef7b72c739c0.gif +0 -0
- data/public/assets/images/treeview-default-line.gif +0 -0
- data/public/assets/javascripts/bootstrap.bundle.min-3e959f3b878396c38e4ca7787278131b.js +6 -0
- data/public/assets/javascripts/bootstrap.bundle.min-68b3c2f1c1f636f947fff1229d3ffbf5.js +7 -0
- data/public/assets/javascripts/bootstrap.bundle.min.js +31 -0
- data/public/assets/javascripts/jquery-d52dc3a9171f1fc89dd0f8e35e42c9d2.js +26 -0
- data/public/assets/javascripts/jquery.js +10701 -0
- data/public/assets/javascripts/manifest-d95423d4873e576e7ae0b6a57cf18ec5.js +5486 -0
- data/public/assets/javascripts/manifest.js +6981 -0
- data/public/assets/manifest.json +1 -0
- data/public/assets/stylesheets/manifest-bbb2857850990f13f777f3dec120a018.css +13 -0
- data/public/assets/stylesheets/manifest-c82b7dfb6cbb9f6284de38abacbf7d49.css +13 -0
- data/public/assets/stylesheets/manifest.css +13620 -0
- data/public/favicon.ico +0 -0
- data/test/controllers/rdf_rendering_test.rb +19 -0
- data/test/controllers/routing_test.rb +5 -1
- data/test/integration/concept_label_language_test.rb +1 -3
- data/test/integration/dashboard_test.rb +1 -1
- data/test/integration/duplicate_label_test.rb +52 -0
- data/test/integration/edit_labels_test.rb +2 -2
- data/test/integration/label_creation_test.rb +8 -0
- data/test/integration/label_relation_test.rb +2 -2
- data/test/integration/labels_order_test.rb +6 -6
- data/test/integration/search_test.rb +117 -0
- data/test/integration_test_helper.rb +2 -2
- data/test/models/concept_test.rb +12 -0
- data/test/models/skos_importer_test.rb +1 -1
- data/test/models/zeitwerk_compliance_test.rb +7 -0
- metadata +139 -26
- data/app/assets/stylesheets/manifest.css.scss +0 -4
- data/app/views/labels/_value_and_language.html.erb +0 -9
- data/config/initializers/backtrace_silencers.rb +0 -7
- data/config/initializers/cookies_serializer.rb +0 -3
- data/config/initializers/mime_types.rb +0 -4
- data/public/export/iqvoc_dump-2017-06-07_13-08.ttl +0 -70
data/config/storage.yml
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
test:
|
2
|
+
service: Disk
|
3
|
+
root: <%= Rails.root.join("tmp/storage") %>
|
4
|
+
|
5
|
+
local:
|
6
|
+
service: Disk
|
7
|
+
root: <%= Rails.root.join("storage") %>
|
8
|
+
|
9
|
+
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
|
10
|
+
# amazon:
|
11
|
+
# service: S3
|
12
|
+
# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
|
13
|
+
# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
|
14
|
+
# region: us-east-1
|
15
|
+
# bucket: your_own_bucket
|
16
|
+
|
17
|
+
# Remember not to checkin your GCS keyfile to a repository
|
18
|
+
# google:
|
19
|
+
# service: GCS
|
20
|
+
# project: your_project
|
21
|
+
# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
|
22
|
+
# bucket: your_own_bucket
|
23
|
+
|
24
|
+
# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
|
25
|
+
# microsoft:
|
26
|
+
# service: AzureStorage
|
27
|
+
# storage_account_name: your_account_name
|
28
|
+
# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
|
29
|
+
# container: your_container_name
|
30
|
+
|
31
|
+
# mirror:
|
32
|
+
# service: Mirror
|
33
|
+
# primary: local
|
34
|
+
# mirrors: [ amazon, google, microsoft ]
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class ExtendLabel < ActiveRecord::Migration
|
1
|
+
class ExtendLabel < ActiveRecord::Migration[4.2]
|
2
2
|
FIELDS = [
|
3
3
|
{'rev' => {type: :integer, options: {default: 1}}},
|
4
4
|
{'published_version_id' => {type: :integer}},
|
@@ -14,7 +14,7 @@ class ExtendLabel < ActiveRecord::Migration
|
|
14
14
|
FIELDS.each do |hsh|
|
15
15
|
hsh.each do |column_name, hsh2|
|
16
16
|
unless column_exists?(:labels, column_name)
|
17
|
-
add_column(:labels, column_name, hsh2[:type], (hsh2[:options] || {}))
|
17
|
+
add_column(:labels, column_name, hsh2[:type], **(hsh2[:options] || {}))
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
@@ -31,4 +31,4 @@ class ExtendLabel < ActiveRecord::Migration
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
34
|
-
end
|
34
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class AddFkContraintsIqvocSkosxl < ActiveRecord::Migration
|
1
|
+
class AddFkContraintsIqvocSkosxl < ActiveRecord::Migration[4.2]
|
2
2
|
def change
|
3
3
|
add_foreign_key :labels, :labels, column: 'published_version_id', on_update: :cascade, on_delete: :cascade
|
4
4
|
add_foreign_key :label_relations, :labels, column: 'domain_id', on_update: :cascade, on_delete: :cascade
|
data/db/schema.rb
CHANGED
@@ -1,227 +1,218 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# This file is auto-generated from the current state of the database. Instead
|
3
2
|
# of editing this file, please use the migrations feature of Active Record to
|
4
3
|
# incrementally modify your database, and then regenerate this schema definition.
|
5
4
|
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
# from scratch.
|
10
|
-
#
|
5
|
+
# This file is the source Rails uses to define your schema when running `bin/rails
|
6
|
+
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
7
|
+
# be faster and is potentially less error prone than running all of your
|
8
|
+
# migrations from scratch. Old migrations may fail to apply correctly if those
|
9
|
+
# migrations use external dependencies or application code.
|
11
10
|
#
|
12
11
|
# It's strongly recommended that you check this file into your version control system.
|
13
12
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema[7.0].define(version: 2023_10_12_174634) do
|
14
|
+
# These are extensions that must be enabled in order to support this database
|
15
|
+
enable_extension "plpgsql"
|
15
16
|
|
16
|
-
create_table "collection_members", force: :cascade do |t|
|
17
|
-
t.integer "collection_id"
|
18
|
-
t.integer "target_id"
|
19
|
-
t.string
|
17
|
+
create_table "collection_members", id: :serial, force: :cascade do |t|
|
18
|
+
t.integer "collection_id"
|
19
|
+
t.integer "target_id"
|
20
|
+
t.string "type"
|
21
|
+
t.index ["collection_id", "target_id", "type"], name: "ix_collections_fk_type"
|
22
|
+
t.index ["type"], name: "index_collection_members_on_type"
|
20
23
|
end
|
21
24
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
t.
|
27
|
-
t.
|
28
|
-
t.integer
|
29
|
-
t.
|
30
|
-
t.datetime "updated_at"
|
31
|
-
t.integer "rank", limit: 4, default: 100
|
25
|
+
create_table "concept_relations", id: :serial, force: :cascade do |t|
|
26
|
+
t.string "type"
|
27
|
+
t.integer "owner_id"
|
28
|
+
t.integer "target_id"
|
29
|
+
t.datetime "created_at", precision: nil
|
30
|
+
t.datetime "updated_at", precision: nil
|
31
|
+
t.integer "rank", default: 100
|
32
|
+
t.index ["owner_id", "target_id"], name: "ix_concept_relations_fk"
|
32
33
|
end
|
33
34
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
t.
|
39
|
-
t.
|
40
|
-
t.
|
41
|
-
t.date
|
42
|
-
t.
|
43
|
-
t.
|
44
|
-
t.
|
45
|
-
t.
|
46
|
-
t.boolean
|
47
|
-
t.
|
48
|
-
t.
|
49
|
-
t.datetime "updated_at"
|
50
|
-
t.boolean "top_term", limit: 1, default: false
|
35
|
+
create_table "concepts", id: :serial, force: :cascade do |t|
|
36
|
+
t.string "type"
|
37
|
+
t.string "origin", limit: 4000
|
38
|
+
t.integer "rev", default: 1
|
39
|
+
t.date "published_at"
|
40
|
+
t.integer "published_version_id"
|
41
|
+
t.date "expired_at"
|
42
|
+
t.date "follow_up"
|
43
|
+
t.boolean "to_review"
|
44
|
+
t.date "rdf_updated_at"
|
45
|
+
t.datetime "created_at", precision: nil
|
46
|
+
t.datetime "updated_at", precision: nil
|
47
|
+
t.boolean "top_term", default: false
|
48
|
+
t.index ["origin"], name: "ix_concepts_on_origin"
|
49
|
+
t.index ["published_version_id"], name: "ix_concepts_publ_version_id"
|
51
50
|
end
|
52
51
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
create_table "configuration_settings", force: :cascade do |t|
|
58
|
-
t.string "key", limit: 255
|
59
|
-
t.string "value", limit: 255
|
52
|
+
create_table "configuration_settings", id: :serial, force: :cascade do |t|
|
53
|
+
t.string "key"
|
54
|
+
t.string "value"
|
60
55
|
end
|
61
56
|
|
62
|
-
create_table "delayed_jobs", force: :cascade do |t|
|
63
|
-
t.integer
|
64
|
-
t.integer
|
65
|
-
t.text
|
66
|
-
t.text
|
67
|
-
t.datetime "run_at"
|
68
|
-
t.datetime "locked_at"
|
69
|
-
t.datetime "failed_at"
|
70
|
-
t.string
|
71
|
-
t.string
|
72
|
-
t.datetime "created_at"
|
73
|
-
t.datetime "updated_at"
|
74
|
-
t.string
|
75
|
-
t.string
|
76
|
-
t.integer
|
77
|
-
t.string
|
57
|
+
create_table "delayed_jobs", id: :serial, force: :cascade do |t|
|
58
|
+
t.integer "priority", default: 0, null: false
|
59
|
+
t.integer "attempts", default: 0, null: false
|
60
|
+
t.text "handler", null: false
|
61
|
+
t.text "last_error"
|
62
|
+
t.datetime "run_at", precision: nil
|
63
|
+
t.datetime "locked_at", precision: nil
|
64
|
+
t.datetime "failed_at", precision: nil
|
65
|
+
t.string "locked_by"
|
66
|
+
t.string "queue"
|
67
|
+
t.datetime "created_at", precision: nil
|
68
|
+
t.datetime "updated_at", precision: nil
|
69
|
+
t.string "error_message"
|
70
|
+
t.string "delayed_reference_type"
|
71
|
+
t.integer "delayed_reference_id"
|
72
|
+
t.string "delayed_global_reference_id"
|
73
|
+
t.index ["delayed_global_reference_id"], name: "delayed_jobs_delayed_global_reference_id"
|
74
|
+
t.index ["delayed_reference_id"], name: "delayed_jobs_delayed_reference_id"
|
75
|
+
t.index ["delayed_reference_type"], name: "delayed_jobs_delayed_reference_type"
|
76
|
+
t.index ["priority", "run_at"], name: "delayed_jobs_priority"
|
77
|
+
t.index ["queue"], name: "delayed_jobs_queue"
|
78
78
|
end
|
79
79
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
t.
|
88
|
-
t.
|
89
|
-
t.
|
90
|
-
t.
|
91
|
-
t.string "token", limit: 255
|
92
|
-
t.datetime "created_at"
|
93
|
-
t.datetime "updated_at"
|
94
|
-
t.datetime "finished_at"
|
95
|
-
t.string "default_namespace", limit: 255
|
80
|
+
create_table "exports", id: :serial, force: :cascade do |t|
|
81
|
+
t.integer "user_id"
|
82
|
+
t.text "output"
|
83
|
+
t.boolean "success", default: false
|
84
|
+
t.integer "file_type"
|
85
|
+
t.string "token"
|
86
|
+
t.datetime "created_at", precision: nil
|
87
|
+
t.datetime "updated_at", precision: nil
|
88
|
+
t.datetime "finished_at", precision: nil
|
89
|
+
t.string "default_namespace"
|
90
|
+
t.index ["user_id"], name: "index_exports_on_user_id"
|
96
91
|
end
|
97
92
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
t.
|
102
|
-
t.
|
103
|
-
t.
|
104
|
-
t.datetime "
|
105
|
-
t.
|
106
|
-
t.
|
107
|
-
t.string
|
108
|
-
t.
|
109
|
-
t.string "default_namespace", limit: 255
|
93
|
+
create_table "imports", id: :serial, force: :cascade do |t|
|
94
|
+
t.integer "user_id"
|
95
|
+
t.text "output"
|
96
|
+
t.boolean "success", default: false
|
97
|
+
t.datetime "created_at", precision: nil
|
98
|
+
t.datetime "updated_at", precision: nil
|
99
|
+
t.datetime "finished_at", precision: nil
|
100
|
+
t.string "import_file"
|
101
|
+
t.boolean "publish"
|
102
|
+
t.string "default_namespace"
|
103
|
+
t.index ["user_id"], name: "index_imports_on_user_id"
|
110
104
|
end
|
111
105
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
t.
|
116
|
-
t.
|
117
|
-
t.
|
118
|
-
t.
|
119
|
-
t.
|
106
|
+
create_table "label_relations", id: :serial, force: :cascade do |t|
|
107
|
+
t.string "type"
|
108
|
+
t.integer "domain_id"
|
109
|
+
t.integer "range_id"
|
110
|
+
t.datetime "created_at", precision: nil
|
111
|
+
t.datetime "updated_at", precision: nil
|
112
|
+
t.index ["domain_id", "range_id", "type"], name: "ix_label_rel_dom_rng_type"
|
113
|
+
t.index ["type"], name: "ix_label_relations_on_type"
|
120
114
|
end
|
121
115
|
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
t.
|
128
|
-
t.
|
129
|
-
t.
|
130
|
-
t.datetime "created_at"
|
131
|
-
t.datetime "updated_at"
|
116
|
+
create_table "labelings", id: :serial, force: :cascade do |t|
|
117
|
+
t.string "type"
|
118
|
+
t.integer "owner_id"
|
119
|
+
t.integer "target_id"
|
120
|
+
t.datetime "created_at", precision: nil
|
121
|
+
t.datetime "updated_at", precision: nil
|
122
|
+
t.index ["owner_id", "target_id", "type"], name: "ix_labelings_fk_type"
|
123
|
+
t.index ["type"], name: "ix_labelings_on_type"
|
132
124
|
end
|
133
125
|
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
t.
|
140
|
-
t.
|
141
|
-
t.
|
142
|
-
t.
|
143
|
-
t.
|
144
|
-
t.
|
145
|
-
t.
|
146
|
-
t.
|
147
|
-
t.date
|
148
|
-
t.
|
149
|
-
t.
|
150
|
-
t.
|
151
|
-
t.boolean "to_review", limit: 1
|
152
|
-
t.date "rdf_updated_at"
|
126
|
+
create_table "labels", id: :serial, force: :cascade do |t|
|
127
|
+
t.string "type"
|
128
|
+
t.string "origin", limit: 4000
|
129
|
+
t.string "language"
|
130
|
+
t.string "value", limit: 1024
|
131
|
+
t.datetime "created_at", precision: nil
|
132
|
+
t.datetime "updated_at", precision: nil
|
133
|
+
t.integer "rev", default: 1
|
134
|
+
t.integer "published_version_id"
|
135
|
+
t.date "published_at"
|
136
|
+
t.date "expired_at"
|
137
|
+
t.date "follow_up"
|
138
|
+
t.boolean "to_review"
|
139
|
+
t.date "rdf_updated_at"
|
140
|
+
t.index ["language"], name: "ix_labels_on_language"
|
141
|
+
t.index ["origin"], name: "ix_labels_on_origin"
|
142
|
+
t.index ["published_version_id"], name: "ix_labels_on_published_v"
|
153
143
|
end
|
154
144
|
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
t.
|
161
|
-
t.
|
162
|
-
t.
|
163
|
-
t.datetime "created_at"
|
164
|
-
t.datetime "updated_at"
|
145
|
+
create_table "matches", id: :serial, force: :cascade do |t|
|
146
|
+
t.integer "concept_id"
|
147
|
+
t.string "type"
|
148
|
+
t.string "value"
|
149
|
+
t.datetime "created_at", precision: nil
|
150
|
+
t.datetime "updated_at", precision: nil
|
151
|
+
t.index ["concept_id", "type"], name: "ix_matches_fk_type"
|
152
|
+
t.index ["type"], name: "ix_matches_on_type"
|
165
153
|
end
|
166
154
|
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
t.
|
172
|
-
t.string "value", limit: 4000
|
173
|
-
t.string "data_type", limit: 4000
|
155
|
+
create_table "notations", id: :serial, force: :cascade do |t|
|
156
|
+
t.integer "concept_id"
|
157
|
+
t.string "value", limit: 4000
|
158
|
+
t.string "data_type", limit: 4000
|
159
|
+
t.index ["concept_id"], name: "index_notations_on_concept_id"
|
174
160
|
end
|
175
161
|
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
t.
|
180
|
-
t.
|
181
|
-
t.
|
182
|
-
t.
|
183
|
-
t.
|
184
|
-
t.
|
185
|
-
t.
|
162
|
+
create_table "note_annotations", id: :serial, force: :cascade do |t|
|
163
|
+
t.integer "note_id"
|
164
|
+
t.string "predicate", limit: 50
|
165
|
+
t.string "value", limit: 1024
|
166
|
+
t.datetime "created_at", precision: nil
|
167
|
+
t.datetime "updated_at", precision: nil
|
168
|
+
t.string "namespace", limit: 50
|
169
|
+
t.string "language"
|
170
|
+
t.index ["note_id"], name: "ix_note_annotations_fk"
|
171
|
+
t.index ["value"], name: "index_note_annotations_on_value"
|
186
172
|
end
|
187
173
|
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
t.string
|
192
|
-
t.
|
193
|
-
t.
|
194
|
-
t.
|
195
|
-
t.
|
196
|
-
t.integer
|
197
|
-
t.
|
174
|
+
create_table "notes", id: :serial, force: :cascade do |t|
|
175
|
+
t.string "language", limit: 2
|
176
|
+
t.string "value", limit: 4000
|
177
|
+
t.string "type", limit: 50
|
178
|
+
t.datetime "created_at", precision: nil
|
179
|
+
t.datetime "updated_at", precision: nil
|
180
|
+
t.integer "owner_id"
|
181
|
+
t.string "owner_type", null: false
|
182
|
+
t.integer "position"
|
183
|
+
t.index ["language"], name: "ix_notes_on_language"
|
184
|
+
t.index ["owner_id", "owner_type", "type"], name: "ix_notes_fk_type"
|
185
|
+
t.index ["type"], name: "ix_notes_on_type"
|
198
186
|
end
|
199
187
|
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
t.
|
206
|
-
t.
|
207
|
-
t.
|
208
|
-
t.string
|
209
|
-
t.
|
210
|
-
t.
|
211
|
-
t.
|
212
|
-
t.string
|
213
|
-
t.string
|
214
|
-
t.
|
215
|
-
t.
|
216
|
-
t.
|
217
|
-
t.
|
188
|
+
create_table "users", id: :serial, force: :cascade do |t|
|
189
|
+
t.string "forename"
|
190
|
+
t.string "surname"
|
191
|
+
t.string "email"
|
192
|
+
t.string "crypted_password"
|
193
|
+
t.boolean "active"
|
194
|
+
t.datetime "created_at", precision: nil
|
195
|
+
t.datetime "updated_at", precision: nil
|
196
|
+
t.string "password_salt"
|
197
|
+
t.string "persistence_token"
|
198
|
+
t.string "perishable_token"
|
199
|
+
t.string "role"
|
200
|
+
t.string "telephone_number"
|
201
|
+
t.string "type", default: "User"
|
202
|
+
t.text "comment"
|
203
|
+
t.integer "login_count", default: 0, null: false
|
204
|
+
t.integer "failed_login_count", default: 0, null: false
|
205
|
+
t.datetime "last_request_at", precision: nil
|
206
|
+
t.datetime "current_login_at", precision: nil
|
207
|
+
t.datetime "last_login_at", precision: nil
|
208
|
+
t.string "current_login_ip"
|
209
|
+
t.string "last_login_ip"
|
218
210
|
end
|
219
211
|
|
220
212
|
add_foreign_key "collection_members", "concepts", column: "collection_id", on_update: :cascade
|
221
213
|
add_foreign_key "collection_members", "concepts", column: "target_id", on_update: :cascade
|
222
214
|
add_foreign_key "concept_relations", "concepts", column: "owner_id", on_update: :cascade
|
223
215
|
add_foreign_key "concept_relations", "concepts", column: "target_id", on_update: :cascade
|
224
|
-
add_foreign_key "concepts", "users", column: "locked_by", on_update: :cascade, on_delete: :nullify
|
225
216
|
add_foreign_key "exports", "users", on_update: :cascade, on_delete: :nullify
|
226
217
|
add_foreign_key "imports", "users", on_update: :cascade, on_delete: :nullify
|
227
218
|
add_foreign_key "label_relations", "labels", column: "domain_id", on_update: :cascade, on_delete: :cascade
|
data/iqvoc_skosxl.gemspec
CHANGED
@@ -13,8 +13,8 @@ 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', '
|
17
|
-
s.add_development_dependency 'bundler'
|
16
|
+
s.add_dependency 'iqvoc', '~> 4.14.5'
|
17
|
+
s.add_development_dependency 'bundler'
|
18
18
|
|
19
19
|
s.files = %w(README.md Gemfile Gemfile.lock Rakefile iqvoc_skosxl.gemspec) +
|
20
20
|
Dir.glob('{app,config,db,public,lib,test}/**/*')
|
data/lib/iqvoc/skosxl/version.rb
CHANGED
data/lib/iqvoc_skosxl.rb
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
require 'iqvoc/xllabel'
|
2
|
+
require 'iqvoc/skosxl/version'
|
3
|
+
|
1
4
|
module IqvocSKOSXL
|
2
5
|
unless Iqvoc.const_defined?(:SKOSXL) && Iqvoc::SKOSXL.const_defined?(:Application)
|
3
6
|
require File.join(File.dirname(__FILE__), '../config/engine')
|
@@ -11,7 +14,8 @@ module IqvocSKOSXL
|
|
11
14
|
cfg.deregister_setting("#{prefix}Labeling::SKOS::AltLabel") # iQvoc core default
|
12
15
|
cfg.register_settings({
|
13
16
|
'title' => 'iQvoc SKOS-XL',
|
14
|
-
"#{prefix}Labeling::SKOSXL::AltLabel" => ['en', 'de']
|
17
|
+
"#{prefix}Labeling::SKOSXL::AltLabel" => ['en', 'de'],
|
18
|
+
"label_duplicate_check_mode" => "contains"
|
15
19
|
})
|
16
20
|
end
|
17
21
|
|
@@ -22,6 +26,9 @@ module IqvocSKOSXL
|
|
22
26
|
Iqvoc::Concept.include_module_names << 'Concept::SKOSXL::Extension'
|
23
27
|
Iqvoc::Concept.pref_labeling_class_name = 'Labeling::SKOSXL::PrefLabel'
|
24
28
|
Iqvoc::Concept.alt_labeling_class_name = 'Labeling::SKOSXL::AltLabel'
|
29
|
+
Iqvoc::Concept.hidden_labeling_class_name = 'Labeling::SKOSXL::HiddenLabel'
|
30
|
+
|
31
|
+
Iqvoc::Collection.include_module_names << 'Collection::SKOSXL::Extension'
|
25
32
|
|
26
33
|
# TODO
|
27
34
|
# Iqvoc.searchable_class_names = Iqvoc::Concept.labeling_class_names.keys +
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|