iqvoc 4.3.3 → 4.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/Gemfile +20 -21
- data/Gemfile.lock +212 -171
- data/LICENSE +1 -1
- data/README.md +12 -4
- data/app/assets/javascripts/framework.js +3 -3
- data/app/assets/javascripts/iqvoc/concept_mapper.js +6 -4
- data/app/assets/javascripts/iqvoc/entityselect.js.erb +19 -6
- data/app/assets/javascripts/iqvoc/federated_concept_mapper.js +4 -2
- data/app/assets/javascripts/iqvoc/onebox.js.erb +8 -9
- data/app/assets/stylesheets/framework.css.scss +1 -2
- data/app/assets/stylesheets/iqvoc/components/_components.css.scss +17 -7
- data/app/concerns/first_level_object_validations.rb +22 -0
- data/app/concerns/versioning.rb +187 -0
- data/app/controllers/collections/versions_controller.rb +144 -0
- data/app/controllers/collections_controller.rb +46 -29
- data/app/controllers/concepts/alphabetical_controller.rb +9 -6
- data/app/controllers/concepts/expired_controller.rb +1 -1
- data/app/controllers/concepts/hierarchical_controller.rb +15 -17
- data/app/controllers/concepts/scheme_controller.rb +8 -4
- data/app/controllers/concepts/untranslated_controller.rb +2 -4
- data/app/controllers/concepts/versions_controller.rb +24 -25
- data/app/controllers/concepts_controller.rb +40 -37
- data/app/controllers/concerns/dataset_initialization.rb +1 -2
- data/app/controllers/dashboard_controller.rb +6 -9
- data/app/controllers/exports_controller.rb +65 -0
- data/app/controllers/frontpage_controller.rb +0 -2
- data/app/controllers/hierarchy_controller.rb +24 -25
- data/app/controllers/imports_controller.rb +18 -9
- data/app/controllers/instance_configuration_controller.rb +19 -16
- data/app/controllers/rdf_controller.rb +8 -9
- data/app/controllers/remote_labels_controller.rb +2 -3
- data/app/controllers/search_results_controller.rb +33 -37
- data/app/controllers/triplestore_sync_controller.rb +12 -13
- data/app/controllers/user_sessions_controller.rb +10 -7
- data/app/controllers/users_controller.rb +20 -7
- data/app/exceptions/invalid_string_literal_error.rb +7 -0
- data/app/helpers/application_helper.rb +16 -24
- data/app/helpers/concepts_helper.rb +14 -20
- data/app/helpers/dashboard_helper.rb +11 -13
- data/app/helpers/form_helper.rb +3 -6
- data/app/helpers/link_helper.rb +3 -3
- data/app/helpers/navigation_helper.rb +15 -15
- data/app/helpers/rdf_helper.rb +29 -3
- data/app/helpers/rdf_namespaces_helper.rb +11 -0
- data/app/helpers/search_results_helper.rb +1 -3
- data/app/helpers/widget_helper.rb +0 -2
- data/app/jobs/export_job.rb +19 -0
- data/app/jobs/import_job.rb +2 -2
- data/app/models/collection/base.rb +25 -41
- data/app/models/collection/member/base.rb +4 -6
- data/app/models/collection/member/skos/base.rb +3 -4
- data/app/models/collection/skos/base.rb +4 -6
- data/app/models/collection/unordered.rb +1 -4
- data/app/models/concept/base.rb +53 -77
- data/app/models/concept/relation/base.rb +8 -10
- data/app/models/concept/relation/reverse_relation_extension.rb +4 -6
- data/app/models/concept/relation/skos/base.rb +5 -7
- data/app/models/concept/relation/skos/broader/base.rb +1 -3
- data/app/models/concept/relation/skos/broader/mono.rb +1 -3
- data/app/models/concept/relation/skos/broader/poly.rb +1 -3
- data/app/models/concept/relation/skos/narrower/base.rb +2 -4
- data/app/models/concept/relation/skos/related.rb +0 -2
- data/app/models/concept/skos/base.rb +4 -5
- data/app/models/concept/skos/scheme.rb +8 -8
- data/app/models/concept/validations.rb +25 -40
- data/app/models/configuration_setting.rb +1 -3
- data/app/models/dataset/adaptors/iqvoc/alphabetical_search_adaptor.rb +3 -3
- data/app/models/dataset/adaptors/iqvoc/http_adaptor.rb +2 -2
- data/app/models/dataset/adaptors/iqvoc/search_adaptor.rb +8 -8
- data/app/models/dataset/iqvoc_dataset.rb +2 -2
- data/app/models/export.rb +32 -0
- data/app/models/import.rb +2 -0
- data/app/models/label/base.rb +12 -18
- data/app/models/label/skos/base.rb +2 -2
- data/app/models/labeling/base.rb +7 -9
- data/app/models/labeling/skos/alt_label.rb +0 -2
- data/app/models/labeling/skos/base.rb +10 -19
- data/app/models/labeling/skos/hidden_label.rb +1 -3
- data/app/models/labeling/skos/pref_label.rb +0 -2
- data/app/models/match/base.rb +5 -7
- data/app/models/match/skos/base.rb +1 -3
- data/app/models/match/skos/broad_match.rb +0 -2
- data/app/models/match/skos/close_match.rb +0 -2
- data/app/models/match/skos/exact_match.rb +0 -2
- data/app/models/match/skos/mapping_relation.rb +0 -2
- data/app/models/match/skos/narrow_match.rb +0 -2
- data/app/models/match/skos/related_match.rb +0 -2
- data/app/models/notation/base.rb +6 -8
- data/app/models/note/annotated/base.rb +2 -4
- data/app/models/note/base.rb +15 -16
- data/app/models/note/skos/base.rb +7 -9
- data/app/models/note/skos/change_note.rb +2 -4
- data/app/models/note/skos/definition.rb +1 -3
- data/app/models/note/skos/editorial_note.rb +0 -2
- data/app/models/note/skos/example.rb +0 -2
- data/app/models/note/skos/history_note.rb +0 -2
- data/app/models/note/skos/scope_note.rb +0 -2
- data/app/models/search_extension.rb +3 -6
- data/app/models/user.rb +7 -8
- data/app/models/user_session.rb +0 -2
- data/app/presenters/alphabetical_search_result.rb +2 -2
- data/app/presenters/search_result_remote.rb +1 -1
- data/app/uploaders/base.rb +21 -0
- data/app/uploaders/rdf_uploader.rb +7 -0
- data/app/views/collections/_data.html.erb +40 -0
- data/app/views/collections/_form.html.erb +5 -4
- data/app/views/collections/_sidebar.html.erb +1 -0
- data/app/views/collections/show.iqrdf +4 -20
- data/app/views/collections/show_published.html.erb +16 -0
- data/app/views/collections/show_unpublished.html.erb +41 -0
- data/app/views/concepts/_form.html.erb +13 -8
- data/app/views/concepts/alphabetical/index.html.erb +2 -2
- data/app/views/concepts/expired/index.html.erb +1 -1
- data/app/views/concepts/scheme/_sidebar.html.erb +1 -0
- data/app/views/concepts/scheme/edit.html.erb +6 -4
- data/app/views/concepts/scheme/show.html.erb +1 -1
- data/app/views/concepts/scheme/show.iqrdf +3 -2
- data/app/views/concepts/show.iqrdf +3 -2
- data/app/views/concepts/show_published.html.erb +2 -2
- data/app/views/concepts/show_unpublished.html.erb +7 -7
- data/app/views/concepts/sidebars/_singular.html.erb +1 -0
- data/app/views/dashboard/_sidebar.html.erb +2 -5
- data/app/views/exports/index.html.erb +39 -0
- data/app/views/exports/show.html.erb +7 -0
- data/app/views/frontpage/index.html.erb +10 -7
- data/app/views/hierarchy/show.iqrdf +3 -2
- data/app/views/imports/index.html.erb +23 -30
- data/app/views/instance_configuration/index.html.erb +9 -8
- data/app/views/layouts/_controls.html.erb +1 -1
- data/app/views/layouts/_navigation.html.erb +13 -24
- data/app/views/layouts/application.html.erb +3 -2
- data/app/views/partials/collection/_edit_link_base.html.erb +4 -0
- data/app/views/partials/collection/_new_link_base.html.erb +3 -0
- data/app/views/partials/concept/_new_link_base.html.erb +1 -1
- data/app/views/partials/concept/relation/_edit_base.html.erb +1 -1
- data/app/views/partials/concept/relation/_edit_ranked.html.erb +1 -1
- data/app/views/partials/concept/relation/_ranked.html.erb +1 -1
- data/app/views/partials/labeling/skos/_edit_base.html.erb +5 -8
- data/app/views/partials/match/_edit_base.html.erb +8 -3
- data/app/views/partials/notation/_edit_base.html.erb +5 -5
- data/app/views/partials/note/_edit_base.html.erb +6 -7
- data/app/views/partials/note/skos/_edit_change_note.html.erb +10 -13
- data/app/views/rdf/dataset.iqrdf +3 -2
- data/app/views/search_results/_form.html.erb +9 -9
- data/app/views/search_results/_sidebar.html.erb +1 -0
- data/app/views/search_results/index.html.erb +1 -1
- data/app/views/search_results/index.iqrdf +3 -2
- data/app/views/search_results/sections/_collection.html.erb +6 -3
- data/app/views/search_results/sections/_datasets.html.erb +17 -14
- data/app/views/search_results/sections/_klass.html.erb +10 -7
- data/app/views/search_results/sections/_languages.html.erb +17 -14
- data/app/views/search_results/sections/_mode.html.erb +11 -8
- data/app/views/search_results/sections/_terms.html.erb +10 -7
- data/app/views/search_results/sections/_type.html.erb +23 -5
- data/app/views/triplestore_sync/index.html.erb +3 -2
- data/app/views/user_sessions/_form.html.erb +5 -5
- data/app/views/users/_form.html.erb +13 -10
- data/app/views/users/index.html.erb +27 -24
- data/config/application.rb +2 -29
- data/config/boot.rb +1 -1
- data/config/database.yml.mysql +3 -3
- data/config/engine.rb +7 -8
- data/config/environments/heroku.rb +0 -10
- data/config/initializers/apipie.rb +5 -5
- data/config/initializers/assets.rb +3 -0
- data/config/initializers/cookies_serializer.rb +3 -0
- data/config/initializers/filter_parameter_logging.rb +4 -0
- data/config/initializers/iqvoc.rb +4 -2
- data/config/initializers/mime_types.rb +3 -2
- data/config/initializers/{secret_token.rb.template → secret_token.rb} +1 -1
- data/config/initializers/session_store.rb +1 -1
- data/config/initializers/wrap_parameters.rb +14 -0
- data/config/locales/activerecord.de.yml +13 -0
- data/config/locales/activerecord.en.yml +11 -0
- data/config/locales/de.yml +17 -5
- data/config/locales/en.yml +17 -6
- data/config/routes.rb +51 -38
- data/config/secrets.yml +11 -0
- data/db/migrate/20100927101502_create_schema.rb +122 -122
- data/db/migrate/20101125141218_add_collection_tables.rb +2 -2
- data/db/migrate/20101210153916_add_indexes_to_collections.rb +2 -2
- data/db/migrate/20110204121244_create_collection_labels.rb +2 -2
- data/db/migrate/20110208084250_change_origin_lengths.rb +4 -4
- data/db/migrate/20110408120357_remove_classifications_and_classifiers.rb +15 -20
- data/db/migrate/20110408120740_remove_xl_specfic_stuff.rb +25 -28
- data/db/migrate/20110420133640_change_value_in_notes.rb +1 -1
- data/db/migrate/20110427120534_add_published_at_to_labels.rb +2 -2
- data/db/migrate/20110512132624_extend_notes_value_field_length.rb +1 -1
- data/db/migrate/20110525103100_separate_note_annotation_predicates.rb +5 -5
- data/db/migrate/20120119000000_create_configuration_settings.rb +1 -3
- data/db/migrate/20120201120736_add_top_term_to_concepts.rb +1 -3
- data/db/migrate/20120326102037_add_rank_to_concept_relations.rb +1 -1
- data/db/migrate/20130315093255_add_notations.rb +3 -3
- data/db/migrate/20130508103137_adjust_note_languages_setting.rb +5 -7
- data/db/migrate/20131220134356_create_delayed_jobs.rb +5 -5
- data/db/migrate/20131220144601_create_imports.rb +1 -1
- data/db/migrate/20140423095147_create_exports.rb +13 -0
- data/db/migrate/20140425130615_add_fk_indexes_to_exports_and_imports.rb +6 -0
- data/db/migrate/20140505144919_add_import_file_to_imports.rb +5 -0
- data/db/migrate/20140506073428_add_missing_imports_attributes.rb +6 -0
- data/db/migrate/20140506133619_add_namespace_to_exports.rb +5 -0
- data/db/schema.rb +57 -84
- data/db/seeds.rb +4 -4
- data/iqvoc.gemspec +21 -20
- data/lib/engine_tasks/db.rake +4 -3
- data/lib/generators/app/template.rb +19 -20
- data/lib/iqvoc.rb +0 -1
- data/lib/iqvoc/ability.rb +10 -13
- data/lib/iqvoc/configuration/collection.rb +2 -1
- data/lib/iqvoc/configuration/concept.rb +7 -8
- data/lib/iqvoc/configuration/core.rb +82 -82
- data/lib/iqvoc/configuration/label.rb +0 -1
- data/lib/iqvoc/configuration/sync.rb +4 -5
- data/lib/iqvoc/controller_extensions.rb +14 -15
- data/lib/iqvoc/deep_cloning.rb +8 -10
- data/lib/iqvoc/environments/development.rb +9 -9
- data/lib/iqvoc/environments/production.rb +4 -11
- data/lib/iqvoc/environments/test.rb +2 -8
- data/lib/iqvoc/inline_data_helper.rb +3 -5
- data/lib/iqvoc/instance_configuration.rb +5 -8
- data/lib/iqvoc/maker.rb +28 -30
- data/lib/iqvoc/navigation.rb +2 -2
- data/lib/iqvoc/origin.rb +6 -42
- data/lib/iqvoc/rankable.rb +0 -1
- data/lib/iqvoc/rdf_sync.rb +19 -21
- data/lib/iqvoc/rdfapi.rb +2 -2
- data/lib/iqvoc/skos_exporter.rb +153 -0
- data/lib/iqvoc/skos_importer.rb +125 -56
- data/lib/iqvoc/version.rb +1 -1
- data/lib/multi_logger.rb +0 -1
- data/lib/string.rb +1 -3
- data/lib/tasks/exporter.rake +22 -0
- data/lib/tasks/importer.rake +2 -1
- data/lib/tasks/reset.rake +14 -0
- data/public/export/{104047454295817920610168807659129435311.nt → 10110.nt} +0 -0
- data/public/export/{10726.nt → 10528.nt} +0 -0
- data/public/export/{10751365034669120987598940220863369604.nt → 11105.nt} +0 -0
- data/public/export/{111691466774189666307584118743393932328.nt → 11353.nt} +0 -0
- data/public/export/{12325399400132639231204595208154762660.nt → 11790.nt} +0 -0
- data/public/export/12931.nt +1 -0
- data/public/export/{151644452539207638297695765208032122293.nt → 1385.nt} +0 -0
- data/public/export/{15263706163704853684442315777380853572.nt → 15083.nt} +0 -0
- data/public/export/{15327.nt → 16538.nt} +0 -0
- data/public/export/{15666.nt → 1879.nt} +0 -0
- data/public/export/{173626129450223321263719262149444213847.nt → 19502.nt} +0 -0
- data/public/export/{18948.nt → 19834.nt} +0 -0
- data/public/export/{199578749544886032300136278910417855540.nt → 21183.nt} +0 -0
- data/public/export/{213890660005255527251394676521741138403.nt → 21512.nt} +0 -0
- data/public/export/{213987519797093111958174693910375706600.nt → 22034.nt} +0 -0
- data/public/export/{214800276811658695171005552465925318151.nt → 2434.nt} +0 -0
- data/public/export/{21930.nt → 24841.nt} +0 -0
- data/public/export/{220598335291843294191166072463233833628.nt → 26109.nt} +0 -0
- data/public/export/{242910803893093872189091525372405462985.nt → 27784.nt} +0 -0
- data/public/export/{24509.nt → 28422.nt} +0 -0
- data/public/export/{249458227092013520089223290936103182178.nt → 28627.nt} +0 -0
- data/public/export/{25981.nt → 29185.nt} +0 -0
- data/public/export/{271163890329327117562409702966294853312.nt → 30124.nt} +0 -0
- data/public/export/305768326302831570152374795088739069204.nt +447 -0
- data/public/export/3118.nt +1 -0
- data/public/export/{27484.nt → 31250.nt} +0 -0
- data/public/export/{287251617830426667971006908766107175810.nt → 31272.nt} +0 -0
- data/public/export/{28754.nt → 31875.nt} +0 -0
- data/public/export/{29022.nt → 32197.nt} +0 -0
- data/public/export/{293720064238755056739270868818770835353.nt → 32223.nt} +0 -0
- data/public/export/{29976.nt → 32324.nt} +0 -0
- data/public/export/{30643.nt → 33084.nt} +0 -0
- data/public/export/{309135899928267675232062298368405782595.nt → 33257.nt} +0 -0
- data/public/export/{317588775827727829310573625081613440402.nt → 33545.nt} +0 -0
- data/public/export/{3199.nt → 34179.nt} +0 -0
- data/public/export/34582.nt +1 -0
- data/public/export/{32054.nt → 35271.nt} +0 -0
- data/public/export/35426.nt +36 -0
- data/public/export/{327890543532187929176278243423558506722.nt → 36234.nt} +0 -0
- data/public/export/{33055.nt → 36363.nt} +0 -0
- data/public/export/{337748600310244218106909976567220577473.nt → 36559.nt} +0 -0
- data/public/export/{3383.nt → 37333.nt} +0 -0
- data/public/export/{33936.nt → 38332.nt} +0 -0
- data/public/export/{33993.nt → 38461.nt} +0 -0
- data/public/export/{34906.nt → 38721.nt} +0 -0
- data/public/export/{35365.nt → 39469.nt} +0 -0
- data/public/export/{37098.nt → 40637.nt} +0 -0
- data/public/export/{37534146541112437090211766955764945845.nt → 40746.nt} +0 -0
- data/public/export/{39353594202090916952403280275602550330.nt → 4297.nt} +0 -0
- data/public/export/{41272.nt → 43236.nt} +0 -0
- data/public/export/{42271.nt → 43644.nt} +0 -0
- data/public/export/{44392.nt → 45021.nt} +0 -0
- data/public/export/45120.nt +1 -0
- data/public/export/{45675.nt → 45552.nt} +0 -0
- data/public/export/{47529.nt → 46172.nt} +0 -0
- data/public/export/{48309.nt → 46739.nt} +0 -0
- data/public/export/{4956.nt → 4929.nt} +0 -0
- data/public/export/{49623.nt → 50335.nt} +0 -0
- data/public/export/{50516.nt → 51428.nt} +0 -0
- data/public/export/{50650725356216411444149011685563244498.nt → 51494.nt} +0 -0
- data/public/export/51877.nt +1 -0
- data/public/export/{54880.nt → 5359.nt} +0 -0
- data/public/export/{55142.nt → 53989.nt} +0 -0
- data/public/export/{55398.nt → 54563.nt} +0 -0
- data/public/export/{55625.nt → 54634.nt} +0 -0
- data/public/export/{5754.nt → 54759.nt} +0 -0
- data/public/export/{57727.nt → 54895.nt} +0 -0
- data/public/export/{58069939020968861674794480549301466954.nt → 55279.nt} +0 -0
- data/public/export/{5890.nt → 5567.nt} +0 -0
- data/public/export/{61404.nt → 57502.nt} +0 -0
- data/public/export/{62809.nt → 58015.nt} +0 -0
- data/public/export/{65156.nt → 58964.nt} +0 -0
- data/public/export/{6520.nt → 60674.nt} +0 -0
- data/public/export/{801.nt → 61265.nt} +0 -0
- data/public/export/{863.nt → 61895.nt} +0 -0
- data/public/export/{9372.nt → 62372.nt} +0 -0
- data/public/export/62469.nt +28 -0
- data/public/export/62880.nt +28 -0
- data/public/export/63673.nt +28 -0
- data/public/export/64151.nt +28 -0
- data/public/export/64891.nt +28 -0
- data/public/export/7089.nt +28 -0
- data/public/export/7365.nt +28 -0
- data/public/export/7473.nt +28 -0
- data/public/export/7939.nt +28 -0
- data/public/export/8509.nt +28 -0
- data/public/export/9370.nt +28 -0
- data/public/export/9600.nt +28 -0
- data/public/uploads/import/{038dd516e01fe211375441c3af8d90e8.nt → 01cb889ac483ce809435db5e37d01010.nt} +0 -0
- data/public/uploads/import/{07e71ca0235e798be39acd246114d962.nt → 05c5e3cc92a18a3ce176065485caafeb.nt} +0 -0
- data/public/uploads/import/0a539be7eb44e0aa1f4eebe485e67d32.nt +260 -0
- data/public/uploads/import/0ceccdec88406d5de2f9c91d6c32bd63.nt +260 -0
- data/public/uploads/import/{0a4c173bc9db7a5cd469c9454fdfa749.nt → 0d199979d7a157c89b517b0121f220de.nt} +0 -0
- data/public/uploads/import/0d1cb3a3c90c406735065c39ccf36882.nt +260 -0
- data/public/uploads/import/{0e8336cb2ef2c8b67767dfe8879d9cfb.nt → 1146b2566f01d412f53aefb921b8abf6.nt} +0 -0
- data/public/uploads/import/{0f4eb8cd6390b1c5c5354a22e533ee0e.nt → 12f08c2e20a05620666d39cabb148b90.nt} +0 -0
- data/public/uploads/import/{105400714d68d2207209e23826345e76.nt → 136c72e86af49d44b885c609a97050e5.nt} +0 -0
- data/public/uploads/import/{1130cde10b15a3f5fc203d47f6989aea.nt → 1406b0ff2e1b68d38bdafe54a54e7981.nt} +0 -0
- data/public/uploads/import/{1147ab054ce55abf0a5bf93b99220231.nt → 142764b92a63f20feb0e6d1398517394.nt} +0 -0
- data/public/uploads/import/{14b64b1f2252aba1e89d83f770d14e29.nt → 1618cd8f36abb0d25d5cee9eef4162dd.nt} +0 -0
- data/public/uploads/import/{1c6f11c300224248bf919885f8545daf.nt → 1838327ebac2c062a9036e0187d8c607.nt} +0 -0
- data/public/uploads/import/{21d34b65ef0a8156111e845992fd004f.nt → 1be9a54bb74a467fbd6321190e10a23b.nt} +0 -0
- data/public/uploads/import/{2783fade523132942999836a74228d64.nt → 1eb3eabccf76ddb2a6bba92eac8b84b9.nt} +0 -0
- data/public/uploads/import/{2bc90e07e5c42e5f26a1607756cc0ab3.nt → 1f147a50c4203690ea4b1ac66f748537.nt} +0 -0
- data/public/uploads/import/{2e4073a94eeae98095de9f43b5e5774a.nt → 22be1db3763deeafb6e9bdc8af7de52f.nt} +0 -0
- data/public/uploads/import/{32548678e7d47b3e256590d6eef6fb03.nt → 24ed4b1b10f4c9facb797d8055f3cc59.nt} +0 -0
- data/public/uploads/import/{330e08c32fde94fb80f656346d1f8383.nt → 25634d3f1c727c79e47104d45a169d22.nt} +0 -0
- data/public/uploads/import/{337790be2663214e66066b1215fdd137.nt → 25eb335ad83136428eedfd427409f5bb.nt} +0 -0
- data/public/uploads/import/{34b77ff970ca71511fb4b224b7dadd1c.nt → 283e799cc2342cf33550a1668e760021.nt} +0 -0
- data/public/uploads/import/{38de0d3c9cba92e8a3c312e7e95e7ec1.nt → 28848fff43a56cba0924478a015e4c8e.nt} +0 -0
- data/public/uploads/import/28a2a5974b1eed79e85d92046fe58d22.nt +260 -0
- data/public/uploads/import/296bea9c560bb915222cb892124c9bab.nt +260 -0
- data/public/uploads/import/2ac22cf493b3991b6524e7bf7c9c9483.nt +260 -0
- data/public/uploads/import/{3981aa91cf22e26fbf6b1312b2bcdcc8.nt → 2b0de64784aa4f574c74bd7a5ca67e81.nt} +0 -0
- data/public/uploads/import/{3d01f84539a62ebe6f76124e8cdbbb23.nt → 2be31e7e2493319f9cb7e210eabb84b6.nt} +0 -0
- data/public/uploads/import/2f7a5213d7e134237b69cbdc9c8e0985.nt +260 -0
- data/public/uploads/import/{3d05bb72c3751da3830cf53e966283d4.nt → 3025f07688ed08e81c430eed8e5e2b2c.nt} +0 -0
- data/public/uploads/import/{3e1d2f770bfe3c79a367780731536a3a.nt → 3062df55d07d30a0db0b00fc59a066ef.nt} +0 -0
- data/public/uploads/import/{3e41bd1875dc23401278c73bd12be881.nt → 35901d7daa6f90eb09b508eab2f19f97.nt} +0 -0
- data/public/uploads/import/35943ba240eb26dc43092746316a666a.nt +260 -0
- data/public/uploads/import/{3f3e3dbb09c3df6bfaed261311de3e7d.nt → 3a39842a235c47d341390bb5ff76b013.nt} +0 -0
- data/public/uploads/import/{4297d9970e47be5ced4991a083032eb9.nt → 4217de34967f03696a2d1c4ec832b395.nt} +0 -0
- data/public/uploads/import/{5925186958bd537ad5e79e76e3a1f714.nt → 432a521429991340c75d39069672f200.nt} +0 -0
- data/public/uploads/import/4410370b7349278a941ec73edc506afb.nt +260 -0
- data/public/uploads/import/{596c40774bb5979c8de5ce6daa58de35.nt → 44f43bafabc21e6a080bb820b86c8efa.nt} +0 -0
- data/public/uploads/import/{5dc5dcd978db1c59ec074e9137f0109c.nt → 4910bf38577bcef7ca835225a22d04cf.nt} +0 -0
- data/public/uploads/import/{5e46663e7e2eb92e5e8846d7c0f8e713.nt → 4a1092bfdd2c3e6cd684d00f2ebb48a0.nt} +0 -0
- data/public/uploads/import/{70022a2a7e808000dc3d55529d203480.nt → 4a924fe4d94485b794a0ac4ae2dbe7b2.nt} +0 -0
- data/public/uploads/import/4ab869eeeec7deaf5840548196350ffe.nt +260 -0
- data/public/uploads/import/{70b32583acaca5843ac7dbdc2a89de99.nt → 4d8c90b9e5b7a06e40dc9b426f19d762.nt} +0 -0
- data/public/uploads/import/4f884498309031e9a3b75c5d7c59b353.nt +260 -0
- data/public/uploads/import/{77ea050ae3a00aedd2a6e4158454a54d.nt → 503e198ce4ec0e311db1d06fc2b6962a.nt} +0 -0
- data/public/uploads/import/{7cc9feb5e9180d29865b9d4e81694921.nt → 51fcfdd1ba9e57f7afd8bfb3135b18be.nt} +0 -0
- data/public/uploads/import/{8030e54313e2c7231c4c30cd4145d576.nt → 525b24358e3b1a5afd18bbbe930bcb35.nt} +0 -0
- data/public/uploads/import/{8a380e32de64ffe7fce5da5068fe174f.nt → 542a2a3b0a62b9599922a67a5085c625.nt} +0 -0
- data/public/uploads/import/{8bb6484a9eb0c3266274c08ad8500669.nt → 5572705385339b834e975f5d7f26f89a.nt} +0 -0
- data/public/uploads/import/{8e0bf83a2ca503753efaa29bff6f84f6.nt → 56aafaf5adcdd148722aeaf0b37a2ba3.nt} +0 -0
- data/public/uploads/import/{90711ea002f6b7b4e5476e414e185603.nt → 59b6122c9a524891ae8dadf34e04f925.nt} +0 -0
- data/public/uploads/import/{918a5fc2c8fcdbaddc2a02588d599dcf.nt → 5d4578b7bb3e3f2067f354be5b68d08f.nt} +0 -0
- data/public/uploads/import/{923f9ebccb7b0e9e9fafddc60750b989.nt → 645eb1a598ae7003b45b29176587088b.nt} +0 -0
- data/public/uploads/import/{933e4e2baee4d91b8f7681fa4d2ad9fa.nt → 64cea1620f460841301aa57d23e6223c.nt} +0 -0
- data/public/uploads/import/{93f642eacd966c98645345d2ccdf578d.nt → 6bee752d1b71422389551999e1c29af9.nt} +0 -0
- data/public/uploads/import/{9a3d0f8d1872d4ba5dd281194ddea4a2.nt → 6c03e1aa271ca4613340130d16722850.nt} +0 -0
- data/public/uploads/import/{9a3f1c9de8e734b7e1d969d07ea57a83.nt → 6d829ce927bca0d0291d3ca94c87d47d.nt} +0 -0
- data/public/uploads/import/{9f91263fee5275ecbf303c7da0a9e84d.nt → 7019eec0ddbd6deccfa69f564e03007d.nt} +0 -0
- data/public/uploads/import/{9f9d6b4293be8def1b406156a3e2bcd9.nt → 70dcaf9bcb39a21172db26e20ef3abb1.nt} +0 -0
- data/public/uploads/import/{a230b36c3666a6b16fec6283e99b221f.nt → 7c7f872865d77373f4e5d12d3b46c6d1.nt} +0 -0
- data/public/uploads/import/7d630e4ae70fcdef7a26a5f54be1c87d.nt +260 -0
- data/public/uploads/import/{a51b35089dc096f0f1f5d5250edb8d5c.nt → 7e2154e0fb9ecfa38d7d1791ba1f91e2.nt} +0 -0
- data/public/uploads/import/{a5265a00946627588ecdac317c061c6c.nt → 7f5864cd2bb3608a478b6cacf213b6ef.nt} +0 -0
- data/public/uploads/import/{a712bf10adc7546d5c567194d7a13603.nt → 7fd575d1e51e867294cc3c55dd7b86d3.nt} +0 -0
- data/public/uploads/import/{a7e315db905ac7808126b600dd1f6203.nt → 81e614eb844d0a6e07724df0e0a391af.nt} +0 -0
- data/public/uploads/import/{a95b7d93b7483116ff13c894a46b5c1c.nt → 8635fc73b0ad52e5531f6542cf73aab0.nt} +0 -0
- data/public/uploads/import/{b5e47ea582afb81341f7b7084cc17a06.nt → 87e8ab3b30135925cd296a4f105fdf28.nt} +0 -0
- data/public/uploads/import/{b826bcfad8f18294a425d65482c46033.nt → 88f3ede5c716bcdc9ac4b16361f6014c.nt} +0 -0
- data/public/uploads/import/{bcf18c9e4dbe72745f4ec2878a4b1690.nt → 8a09903d5ce62375eb315fb5a28cfb1e.nt} +0 -0
- data/public/uploads/import/8dd67edd0888cc10c181b0cb13f114a5.nt +260 -0
- data/public/uploads/import/{c32855cb4b3e8616db2ef3f5f9cb5ca7.nt → 945e467cd3b86903a712322622403350.nt} +0 -0
- data/public/uploads/import/{c438f3150fb39b93ee01a6f8bc5bb7b9.nt → 947fc847742818ad2f8946150fa68280.nt} +0 -0
- data/public/uploads/import/{c7b54e24ea6bde65f8430d1d747a6dda.nt → 9668f439f7429886747a4981c53d2f7b.nt} +0 -0
- data/public/uploads/import/97bf213b1827e1b3fe4a93f660cd297b.nt +260 -0
- data/public/uploads/import/9cc1c8c8530900bb42723b35a85c997a.nt +260 -0
- data/public/uploads/import/{c8ee5bc696312468c4354bad6c583321.nt → a34ebe5f52348d8e0690efbbd7dbb29b.nt} +0 -0
- data/public/uploads/import/{cfc73574fe398be7ce684fbc17aa1bb7.nt → a6362a3aa7b0154ee5881aa4e97e4fc1.nt} +0 -0
- data/public/uploads/import/{d038a0416528900076cdb4a28211a84c.nt → acfb67a494ba87573b3cdd7997c7aba2.nt} +0 -0
- data/public/uploads/import/{d2366992f6e9e4377d02fc691fc2d3d3.nt → ae888974bc1697ae1949a95dbcaa104b.nt} +0 -0
- data/public/uploads/import/{d250e9b7a2819d62a43d5270031eaa6d.nt → b238195b0159fd1aca793e33ea179b1d.nt} +0 -0
- data/public/uploads/import/{dc14a0fa30c105a5770da2c960daaf29.nt → b36159aad53d09f5e6ca12e0dcea000c.nt} +0 -0
- data/public/uploads/import/{e9289f6f920cf44d0e81599410b39090.nt → b42cf56722b79ef7e6730d19130d9dfd.nt} +0 -0
- data/public/uploads/import/b54ffcb43a4c939b339fca358223177d.nt +260 -0
- data/public/uploads/import/{ed1c212d4f320e414caacda7a7988f83.nt → bc140bce0ab1818edd55350b793eb36c.nt} +0 -0
- data/public/uploads/import/{ed460af60bf4d0884d37a86bb02411e7.nt → bdfe458413c233f7c2e96041b8c2aa9d.nt} +0 -0
- data/public/uploads/import/{f0cde297ac63a3654a1d5e5535a6f685.nt → bf0168c5d5f472442707ff76115480b0.nt} +0 -0
- data/public/uploads/import/{f17024adf37be768041307528e848bd6.nt → c0479e6569a5cbd8fc74702c165f71b5.nt} +0 -0
- data/public/uploads/import/{f2f6025f6de90ee4609c2928a817c51d.nt → c2c0372e27f625ca1ce1aa527059d6d2.nt} +0 -0
- data/public/uploads/import/{f427507b1c208ddf69204ea5414e5d18.nt → c43fbad62457debced3e2b5f175b633a.nt} +0 -0
- data/public/uploads/import/{ffce91887b3ac5b7319a80926ff310ef.nt → c4d8f635e4bb5601713bbf9bc456c797.nt} +0 -0
- data/public/uploads/{tmp/1417625624-7926-3861/hobbies.nt → import/c61960b982b3a8308e41de6cf094255d.nt} +0 -0
- data/public/uploads/{tmp/1417625658-7975-5171/hobbies.nt → import/c63faf859a988775b27acb8e8712f13b.nt} +0 -0
- data/public/uploads/{tmp/1418649743-7886-1510/hobbies.nt → import/cb1b6b27edfcc404ca469fa3ec6b0664.nt} +0 -0
- data/public/uploads/{tmp/1418653029-9019-1572/hobbies.nt → import/cb37615bf36a26ecbfd6e0f738302d17.nt} +0 -0
- data/public/uploads/{tmp/1418656093-9614-5971/hobbies.nt → import/d0369e2cb8216ddc3858a5ae93307da2.nt} +0 -0
- data/public/uploads/import/d395b7bd9126c74ee3586b849768ef14.nt +260 -0
- data/public/uploads/{tmp/1418659992-10218-8665/hobbies.nt → import/d5d835b59eae82a208653c1b30ad74c9.nt} +0 -0
- data/public/uploads/{tmp/1418664440-11199-8740/hobbies.nt → import/d82612b6c9d65e2f2dcfbda202b59a90.nt} +0 -0
- data/public/uploads/{tmp/1418665022-11430-9919/hobbies.nt → import/df361efdd673094c731454a91d925850.nt} +0 -0
- data/public/uploads/import/df66a381628757d745ae3b60642c3746.nt +260 -0
- data/public/uploads/{tmp/1418665225-11485-5805/hobbies.nt → import/e1c59deb5c9119a65787bc5c2d71d678.nt} +0 -0
- data/public/uploads/{tmp/1418665744-11777-4958/hobbies.nt → import/e2242e8bc7216edacba54071db90e2f7.nt} +0 -0
- data/public/uploads/{tmp/1418666103-11837-9818/hobbies.nt → import/e3d2d0b824f8c45aae697261a4dbe891.nt} +0 -0
- data/public/uploads/{tmp/1418666157-11880-9002/hobbies.nt → import/e59bb2aced9152cc0c9a8b1be30bf7b0.nt} +0 -0
- data/public/uploads/{tmp/1418666292-11920-9076/hobbies.nt → import/e9a6f6db0a5a7e13b6eb576a8f724347.nt} +0 -0
- data/public/uploads/{tmp/1418666482-11968-5799/hobbies.nt → import/ea69b273df07fb624312cbf853c434f4.nt} +0 -0
- data/public/uploads/{tmp/1418666589-12006-6137/hobbies.nt → import/eaa64a373eab2b1ccf3a0caf4b9a9b36.nt} +0 -0
- data/public/uploads/import/eaec06e06215273b63df2bfbfcd1be1f.nt +260 -0
- data/public/uploads/{tmp/1419417707-62741-8601/hobbies.nt → import/ed37994c6a8c15cc9dfcc5f0fc98d25e.nt} +0 -0
- data/public/uploads/{tmp/1419418501-62977-9798/hobbies.nt → import/ef8c5b07b56a2f5bfd0818d146b54ad0.nt} +0 -0
- data/public/uploads/import/f02c74ffa5f9b0247ed608654d69afbe.nt +260 -0
- data/public/uploads/import/f19ecbe95745af34dc11c7ee3a185250.nt +260 -0
- data/public/uploads/{tmp/1419419091-63178-5200/hobbies.nt → import/f1f6bbcef457c577c6cf8a41c332ed52.nt} +0 -0
- data/public/uploads/{tmp/1419845421-37940-7338/hobbies.nt → import/f24e1405527ac90b18fc4b9103b0356b.nt} +0 -0
- data/public/uploads/{tmp/1419872019-93309-7785/hobbies.nt → import/f324628e42cd2165e0befb2dc9e19ec3.nt} +0 -0
- data/public/uploads/{tmp/1419872459-93489-7475/hobbies.nt → import/f4f4b5eb4283efc264b2e29b728b45ce.nt} +0 -0
- data/public/uploads/{tmp/1420204292-55473-2339/hobbies.nt → import/f6cda0379fadb6b9ed88b59b04d1544a.nt} +0 -0
- data/public/uploads/import/f8eb5272e6cc4b691765b370685b634e.nt +260 -0
- data/public/uploads/{tmp/1420469113-94913-1977/hobbies.nt → import/f92c5202d53cf595d63051016ebe2aed.nt} +0 -0
- data/public/uploads/{tmp/1420469218-94957-7818/hobbies.nt → import/f9948cb7e270f1582313d9d64a0013f4.nt} +0 -0
- data/public/uploads/tmp/1399391854-10068-6618/hobbies.nt +260 -0
- data/public/uploads/tmp/1399391911-10213-8446/hobbies.nt +260 -0
- data/public/uploads/tmp/1399392015-10496-2495/hobbies.nt +260 -0
- data/public/uploads/tmp/1399465936-82819-2227/hobbies.nt +260 -0
- data/public/uploads/tmp/1399562287-11058-4844/hobbies.nt +260 -0
- data/public/uploads/tmp/1399562349-11220-5006/hobbies.nt +260 -0
- data/public/uploads/tmp/1399562606-12081-8172/hobbies.nt +260 -0
- data/public/uploads/tmp/1399562663-12419-6959/hobbies.nt +260 -0
- data/public/uploads/tmp/1399562758-12675-1044/hobbies.nt +260 -0
- data/public/uploads/tmp/1399563325-14184-4165/hobbies.nt +260 -0
- data/public/uploads/tmp/1399563511-14691-1597/hobbies.nt +260 -0
- data/public/uploads/tmp/1399563577-14899-9811/hobbies.nt +260 -0
- data/public/uploads/tmp/1399563654-15101-9704/hobbies.nt +260 -0
- data/public/uploads/tmp/1399563789-15465-3853/hobbies.nt +260 -0
- data/public/uploads/tmp/1399564038-16136-7758/hobbies.nt +260 -0
- data/public/uploads/tmp/1399564391-17273-4324/hobbies.nt +260 -0
- data/public/uploads/tmp/1399565011-19048-6725/hobbies.nt +260 -0
- data/public/uploads/tmp/1399565066-19204-6162/hobbies.nt +260 -0
- data/public/uploads/tmp/1399639727-33218-9866/hobbies.nt +260 -0
- data/public/uploads/tmp/1399642528-42021-8916/hobbies.nt +260 -0
- data/public/uploads/tmp/1399642763-42734-7348/hobbies.nt +260 -0
- data/public/uploads/tmp/1399886894-13606-2429/hobbies.nt +260 -0
- data/public/uploads/tmp/{1420471310-95437-1840 → 1400683232-10539-5676}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420475764-97681-5693 → 1400683420-10634-8312}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420475937-97729-2119 → 1400683468-10666-6540}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420476857-98058-7891 → 1400684714-11424-9829}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420535851-99018-0174 → 1400846672-62648-9413}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420536204-1785-0172 → 1400846766-62697-7073}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420551687-4559-4581 → 1401180379-3162-2871}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420553228-5060-8398 → 1401185202-4377-2768}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420554138-5330-1218 → 1401192012-6573-2832}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420623682-11549-0730 → 1401194508-7699-9522}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420627830-12489-1669 → 1401194627-7742-0813}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420643849-18200-3932 → 1401194954-7841-9994}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420649772-21728-5542 → 1401195326-7932-3790}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420708117-27095-8292 → 1401206318-10643-2808}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420708387-27223-6774 → 1401292131-92601-6112}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420708470-27267-7475 → 1401292181-92670-8615}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420708517-27294-4695 → 1401292252-92839-0886}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420708539-27319-1354 → 1401292294-92900-5587}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420708586-27334-3786 → 1401292390-92976-9639}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420708992-27418-8019 → 1401701949-3140-4347}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420709221-27495-1252 → 1401702355-40904-9058}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420709888-27667-9904 → 1401702361-40926-1371}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420710092-27729-5735 → 1401702406-40992-5615}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420710448-27814-7190 → 1401702475-41050-2716}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420710886-27909-4558 → 1401702625-41136-3304}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420711474-28046-6914 → 1401702771-41202-1777}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420711601-28081-0714 → 1401704263-41803-0906}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420711904-28153-8591 → 1401704312-41845-2277}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420712160-28240-2054 → 1401704455-41906-3348}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420712349-28303-3685 → 1401704517-41941-3825}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420712756-28475-0893 → 1401704557-42078-2926}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420712995-28567-4743 → 1401704659-42140-2026}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420722946-31448-5312 → 1401704727-42194-2926}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420723021-31498-6069 → 1401704810-42233-0719}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420723172-31541-4390 → 1401704877-42346-6423}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1420723249-31574-6508 → 1401704969-42396-2636}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1422290833-38334-3392 → 1401706200-42741-9489}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1422292996-38701-6635 → 1401706505-42885-6630}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1422293183-38751-2662 → 1401706579-42925-3938}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1422293478-38811-6215 → 1401706998-43068-7269}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1422300870-38980-1343 → 1401707073-43147-4480}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1422372626-67843-5956 → 1401707148-43190-8990}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1422374262-68176-3483 → 1401707185-43233-6339}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1422374611-68319-4455 → 1401707525-43306-5760}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1422467418-10546-8937 → 1401716194-45552-4247}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1422467614-10596-6509 → 1401716269-45634-6256}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1422537271-15787-8339 → 1401716431-45713-6690}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1422538114-15972-5522 → 1401717803-46392-3771}/hobbies.nt +0 -0
- data/public/uploads/tmp/{1422540419-16733-4506 → 1401717970-46482-3771}/hobbies.nt +0 -0
- data/public/uploads/tmp/1401719163-46906-3771/hobbies.nt +259 -0
- data/public/uploads/tmp/1401719307-46967-3771/hobbies.nt +259 -0
- data/public/uploads/tmp/1401719376-47013-3771/hobbies.nt +259 -0
- data/public/uploads/tmp/1401719630-47114-3771/hobbies.nt +259 -0
- data/public/uploads/tmp/1401719982-47199-3873/hobbies.nt +259 -0
- data/public/uploads/tmp/1401720178-47285-9163/hobbies.nt +259 -0
- data/public/uploads/tmp/1401720378-47376-3771/hobbies.nt +259 -0
- data/public/uploads/tmp/1401720550-47464-3771/hobbies.nt +259 -0
- data/public/uploads/tmp/1401720661-47532-3771/hobbies.nt +259 -0
- data/public/uploads/tmp/1401721032-47662-3771/hobbies.nt +259 -0
- data/public/uploads/tmp/1401721110-47707-3771/hobbies.nt +259 -0
- data/public/uploads/tmp/1401722057-48025-3771/hobbies.nt +259 -0
- data/public/uploads/tmp/1401722131-48079-3771/hobbies.nt +259 -0
- data/public/uploads/tmp/1401722177-48112-3771/hobbies.nt +259 -0
- data/public/uploads/tmp/1401722330-48176-3771/hobbies.nt +259 -0
- data/public/uploads/tmp/1401722430-48237-4227/hobbies.nt +259 -0
- data/public/uploads/tmp/1401722732-48343-4227/hobbies.nt +259 -0
- data/public/uploads/tmp/1401722909-48424-1412/hobbies.nt +259 -0
- data/public/uploads/tmp/1401723009-48482-7948/hobbies.nt +259 -0
- data/public/uploads/tmp/1401723431-48680-9071/hobbies.nt +259 -0
- data/public/uploads/tmp/1401724808-49229-3988/hobbies.nt +259 -0
- data/public/uploads/tmp/1401725005-49344-4227/hobbies.nt +259 -0
- data/public/uploads/tmp/1401801415-57643-7508/hobbies.nt +259 -0
- data/public/uploads/tmp/1401801470-57683-1511/hobbies.nt +259 -0
- data/public/uploads/tmp/1401801589-57766-6716/hobbies.nt +259 -0
- data/public/uploads/tmp/1401801648-57810-6653/hobbies.nt +259 -0
- data/public/uploads/tmp/1401801703-57902-1218/hobbies.nt +259 -0
- data/public/uploads/tmp/1401801780-57957-6963/hobbies.nt +259 -0
- data/public/uploads/tmp/1401801876-58010-6576/hobbies.nt +259 -0
- data/public/uploads/tmp/1401801925-58061-5018/hobbies.nt +259 -0
- data/public/uploads/tmp/1401801966-58088-4598/hobbies.nt +259 -0
- data/public/uploads/tmp/1401802064-58134-0309/hobbies.nt +259 -0
- data/public/uploads/tmp/1401802128-58183-5882/hobbies.nt +259 -0
- data/public/uploads/tmp/1401802254-58261-9292/hobbies.nt +259 -0
- data/public/uploads/tmp/1401802305-58305-0716/hobbies.nt +259 -0
- data/public/uploads/tmp/1401802559-58393-8087/hobbies.nt +259 -0
- data/public/uploads/tmp/1401802603-58429-5414/hobbies.nt +259 -0
- data/public/uploads/tmp/1401802704-58494-3176/hobbies.nt +259 -0
- data/public/uploads/tmp/1401876393-11719-7974/hobbies.nt +259 -0
- data/public/uploads/tmp/1401880994-13325-5134/hobbies.nt +259 -0
- data/public/uploads/tmp/1401881408-13497-2210/hobbies.nt +259 -0
- data/public/uploads/tmp/1402407940-72993-0117/hobbies.nt +259 -0
- data/public/uploads/tmp/1403276908-17566-3335/hobbies.nt +259 -0
- data/public/uploads/tmp/1403276972-17606-3705/hobbies.nt +259 -0
- data/public/uploads/tmp/1403277054-17662-2528/hobbies.nt +259 -0
- data/public/uploads/tmp/1405605924-28482-6761/hobbies.nt +259 -0
- data/public/uploads/tmp/1405606039-28627-4530/hobbies.nt +259 -0
- data/public/uploads/tmp/1405606796-29190-4080/hobbies.nt +259 -0
- data/test/authentication.rb +33 -0
- data/test/controllers/hierarchy_test.rb +406 -0
- data/test/{functional → controllers}/rdf_rendering_test.rb +26 -33
- data/test/integration/alphabetical_test.rb +18 -16
- data/test/integration/authentication_test.rb +13 -15
- data/test/integration/browse_concepts_and_labels_test.rb +27 -32
- data/test/integration/client_augmentation_test.rb +14 -15
- data/test/integration/client_edit_concept_test.rb +31 -33
- data/test/integration/collection_circularity_test.rb +57 -53
- data/test/integration/concept_browsing_test.rb +23 -25
- data/test/integration/concept_scheme_browsing_test.rb +28 -28
- data/test/integration/edit_collections_test.rb +21 -0
- data/test/integration/edit_concepts_test.rb +15 -13
- data/test/integration/export_test.rb +73 -0
- data/test/integration/import_test.rb +77 -0
- data/test/integration/instance_configuration_browsing_test.rb +19 -21
- data/test/integration/navigation_test.rb +14 -16
- data/test/integration/note_annotations_test.rb +34 -36
- data/test/integration/search_test.rb +105 -100
- data/test/integration/tree_test.rb +13 -5
- data/test/integration/untranslated_test.rb +19 -22
- data/test/integration/user_management_test.rb +51 -0
- data/test/integration_test_helper.rb +10 -2
- data/test/{unit → models}/concept_scheme_test.rb +1 -1
- data/test/models/concept_test.rb +178 -0
- data/test/{unit → models}/hygiene_test.rb +8 -8
- data/test/{unit → models}/inline_data_test.rb +11 -13
- data/test/{unit → models}/instance_configuration_test.rb +16 -18
- data/test/{unit → models}/note_test.rb +4 -6
- data/test/models/origin_test.rb +83 -0
- data/test/{unit → models}/rdf_sync_test.rb +20 -22
- data/test/{unit → models}/rdfapi_test.rb +0 -1
- data/test/models/skos_collection_import_test.rb +104 -0
- data/test/models/skos_export_test.rb +48 -0
- data/test/models/skos_import_test.rb +143 -0
- data/test/models/testdata.nt +22 -0
- data/test/test_helper.rb +5 -3
- metadata +454 -305
- data/app/views/collections/show.html.erb +0 -53
- data/app/views/concepts/index.iqrdf +0 -28
- data/app/views/kaminari/_first_page.html.erb +0 -13
- data/app/views/kaminari/_gap.html.erb +0 -8
- data/app/views/kaminari/_last_page.html.erb +0 -13
- data/app/views/kaminari/_next_page.html.erb +0 -13
- data/app/views/kaminari/_page.html.erb +0 -12
- data/app/views/kaminari/_paginator.html.erb +0 -25
- data/app/views/kaminari/_prev_page.html.erb +0 -13
- data/config/initializers/secret_token_configurator.rb +0 -29
- data/config/initializers/simple_form.rb +0 -177
- data/config/locales/simple_form.en.yml +0 -24
- data/config/locales/simple_form.pt.yml +0 -23
- data/lib/engine_tasks/setup.rake +0 -10
- data/lib/iqvoc/versioning.rb +0 -151
- data/lib/tasks/heroku.rake +0 -14
- data/lib/tasks/setup.rake +0 -7
- data/lib/templates/erb/scaffold/_form.html.erb +0 -13
- data/test/capybara_helper.rb +0 -31
- data/test/factories.rb +0 -75
- data/test/functional/hierarchy_test.rb +0 -408
- data/test/unit/concept_test.rb +0 -153
- data/test/unit/origin_test.rb +0 -78
- data/test/unit/skos_import_test.rb +0 -228
data/lib/engine_tasks/setup.rake
DELETED
data/lib/iqvoc/versioning.rb
DELETED
@@ -1,151 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
# Copyright 2011-2013 innoQ Deutschland GmbH
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
|
-
module Iqvoc
|
18
|
-
module Versioning
|
19
|
-
|
20
|
-
extend ActiveSupport::Concern
|
21
|
-
|
22
|
-
included do
|
23
|
-
# ********* Relations
|
24
|
-
|
25
|
-
belongs_to :published_version, :foreign_key => 'published_version_id', :class_name => name
|
26
|
-
|
27
|
-
belongs_to :locking_user, :foreign_key => 'locked_by', :class_name => 'User'
|
28
|
-
end
|
29
|
-
|
30
|
-
module ClassMethods
|
31
|
-
# ********* Scopes
|
32
|
-
|
33
|
-
def by_origin(origin)
|
34
|
-
where(:origin => origin)
|
35
|
-
end
|
36
|
-
|
37
|
-
def published
|
38
|
-
where(arel_table[:published_at].not_eq(nil))
|
39
|
-
end
|
40
|
-
|
41
|
-
def unpublished
|
42
|
-
where(:published_at => nil)
|
43
|
-
end
|
44
|
-
|
45
|
-
# The following method returns all objects which should be selectable by the editor
|
46
|
-
def editor_selectable
|
47
|
-
where(
|
48
|
-
arel_table[:published_at].not_eq(nil).or( # == published (is there a way to OR combine two scopes? `published OR where(...)`)
|
49
|
-
arel_table[:published_at].eq(nil).and(arel_table[:published_version_id].eq(nil)) # this are all unpublished with no published version
|
50
|
-
)
|
51
|
-
)
|
52
|
-
end
|
53
|
-
|
54
|
-
def in_edit_mode
|
55
|
-
where(arel_table[:locked_by].not_eq(nil))
|
56
|
-
end
|
57
|
-
|
58
|
-
def unpublished_or_follow_up
|
59
|
-
where(
|
60
|
-
arel_table[:published_at].eq(nil).or(
|
61
|
-
arel_table[:follow_up].not_eq(nil)
|
62
|
-
)
|
63
|
-
)
|
64
|
-
end
|
65
|
-
|
66
|
-
def unsynced
|
67
|
-
where(:rdf_updated_at => nil)
|
68
|
-
end
|
69
|
-
|
70
|
-
def include_to_deep_cloning(*association_names)
|
71
|
-
(@@include_to_deep_cloning ||= {})[self] ||= []
|
72
|
-
association_names.each do |association_name|
|
73
|
-
@@include_to_deep_cloning[self] << association_name
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
def includes_to_deep_cloning
|
78
|
-
(@@include_to_deep_cloning ||= {})[self] ||= []
|
79
|
-
(@@include_to_deep_cloning.keys & self.ancestors).map{|c| @@include_to_deep_cloning[c]}.flatten.compact
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
# ********* Instance methods
|
84
|
-
|
85
|
-
def branch(user)
|
86
|
-
new_version = self.dup(:include => self.class.includes_to_deep_cloning)
|
87
|
-
new_version.lock_by_user(user.id)
|
88
|
-
new_version.increment(:rev)
|
89
|
-
new_version.published_version_id = self.id
|
90
|
-
new_version.unpublish
|
91
|
-
new_version.send(:"#{Iqvoc.change_note_class_name.to_relation_name}").build(
|
92
|
-
:language => I18n.locale.to_s,
|
93
|
-
:annotations_attributes => [
|
94
|
-
{ :namespace => "dct", :predicate => "creator", :value => user.name },
|
95
|
-
{ :namespace => "dct", :predicate => "modified", :value => DateTime.now.to_s }
|
96
|
-
])
|
97
|
-
new_version
|
98
|
-
end
|
99
|
-
|
100
|
-
def publish
|
101
|
-
write_attribute(:published_at, Time.now)
|
102
|
-
write_attribute(:to_review, nil)
|
103
|
-
write_attribute(:published_version_id, nil)
|
104
|
-
end
|
105
|
-
|
106
|
-
def unpublish
|
107
|
-
write_attribute(:published_at, nil)
|
108
|
-
end
|
109
|
-
|
110
|
-
def published?
|
111
|
-
read_attribute(:published_at).present?
|
112
|
-
end
|
113
|
-
|
114
|
-
# Editor selectable if published or no published version exists (before
|
115
|
-
# first publication)
|
116
|
-
def editor_selectable?
|
117
|
-
published? || read_attribute(:published_version_id).blank?
|
118
|
-
end
|
119
|
-
|
120
|
-
def lock_by_user(user_id)
|
121
|
-
write_attribute(:locked_by, user_id)
|
122
|
-
end
|
123
|
-
|
124
|
-
def locked?
|
125
|
-
locked_by?
|
126
|
-
end
|
127
|
-
|
128
|
-
def state
|
129
|
-
if published?
|
130
|
-
I18n.t("txt.common.state.published")
|
131
|
-
elsif !published? && in_review?
|
132
|
-
I18n.t("txt.common.state.in_review")
|
133
|
-
elsif !published? && !in_review?
|
134
|
-
I18n.t("txt.common.state.checked_out")
|
135
|
-
end
|
136
|
-
end
|
137
|
-
|
138
|
-
def unlock
|
139
|
-
write_attribute(:locked_by, nil)
|
140
|
-
end
|
141
|
-
|
142
|
-
def in_review?
|
143
|
-
read_attribute(:to_review).present?
|
144
|
-
end
|
145
|
-
|
146
|
-
def to_review
|
147
|
-
write_attribute(:to_review, true)
|
148
|
-
end
|
149
|
-
|
150
|
-
end
|
151
|
-
end
|
data/lib/tasks/heroku.rake
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
namespace :heroku do
|
2
|
-
task :config do
|
3
|
-
require 'securerandom'
|
4
|
-
|
5
|
-
HEROKU_CONFIG = %W(
|
6
|
-
HEROKU=true
|
7
|
-
RACK_ENV=heroku
|
8
|
-
RAILS_ENV=heroku
|
9
|
-
SECRET_TOKEN=#{SecureRandom.hex(64)}
|
10
|
-
)
|
11
|
-
|
12
|
-
system "heroku config:add #{HEROKU_CONFIG.join(' ')}"
|
13
|
-
end
|
14
|
-
end
|
data/lib/tasks/setup.rake
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
<%%= simple_form_for(@<%= singular_table_name %>) do |f| %>
|
2
|
-
<%%= f.error_notification %>
|
3
|
-
|
4
|
-
<div class="form-inputs">
|
5
|
-
<%- attributes.each do |attribute| -%>
|
6
|
-
<%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
|
7
|
-
<%- end -%>
|
8
|
-
</div>
|
9
|
-
|
10
|
-
<div class="form-actions">
|
11
|
-
<%%= f.button :submit %>
|
12
|
-
</div>
|
13
|
-
<%% end %>
|
data/test/capybara_helper.rb
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
require 'capybara/dsl'
|
2
|
-
require 'factory_girl'
|
3
|
-
|
4
|
-
module ActionDispatch
|
5
|
-
class IntegrationTest
|
6
|
-
include Capybara::DSL
|
7
|
-
|
8
|
-
Capybara.javascript_driver = :webkit
|
9
|
-
|
10
|
-
def login(role = nil)
|
11
|
-
logout
|
12
|
-
user(role)
|
13
|
-
visit new_user_session_path(:lang => :de)
|
14
|
-
fill_in "E-Mail", :with => user.email
|
15
|
-
fill_in "Passwort", :with => user.password
|
16
|
-
click_button "Anmelden"
|
17
|
-
end
|
18
|
-
|
19
|
-
def logout
|
20
|
-
visit dashboard_path(:lang => :de)
|
21
|
-
click_link_or_button "Abmelden" if page.has_link?("Abmelden")
|
22
|
-
@user.try(:destroy)
|
23
|
-
@user = nil
|
24
|
-
end
|
25
|
-
|
26
|
-
def user(role = nil)
|
27
|
-
@user ||= FactoryGirl.create(:user, :role => (role || User.default_role))
|
28
|
-
end
|
29
|
-
|
30
|
-
end
|
31
|
-
end
|
data/test/factories.rb
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
# Copyright 2011-2013 innoQ Deutschland GmbH
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
|
-
FactoryGirl.define do
|
18
|
-
factory :concept, :class => Iqvoc::Concept.base_class do |c|
|
19
|
-
c.sequence(:origin) { |n| "_000000#{n}" }
|
20
|
-
c.published_at 3.days.ago
|
21
|
-
c.top_term true
|
22
|
-
c.pref_labelings { |pref_labelings| [pref_labelings.association(:pref_labeling)] }
|
23
|
-
c.narrower_relations { |narrower_relations| [narrower_relations.association(:narrower_relation)] }
|
24
|
-
end
|
25
|
-
|
26
|
-
factory :collection, :class => Iqvoc::Collection.base_class do |c|
|
27
|
-
c.sequence(:origin) { |n| "_100000#{n}" }
|
28
|
-
c.published_at 3.days.ago
|
29
|
-
c.labelings { |labelings| [labelings.association(:pref_labeling)] }
|
30
|
-
end
|
31
|
-
|
32
|
-
factory :stupid_broader_relation, :class => Iqvoc::Concept.broader_relation_class do |rel|
|
33
|
-
end
|
34
|
-
|
35
|
-
factory :narrower_relation, :class => Iqvoc::Concept.broader_relation_class.narrower_class do |rel|
|
36
|
-
rel.target {|target|
|
37
|
-
target.association(:concept, :top_term => false, :broader_relations => [], :narrower_relations => [], :pref_labelings => [
|
38
|
-
FactoryGirl.create(:pref_labeling, :target => FactoryGirl.create(:pref_label, :value => 'Some narrower relation'))
|
39
|
-
])
|
40
|
-
}
|
41
|
-
rel.after(:create) { |new_relation| FactoryGirl.create(:stupid_broader_relation, :owner => new_relation.target, :target => new_relation.owner) }
|
42
|
-
end
|
43
|
-
|
44
|
-
factory :pref_labeling, :class => Iqvoc::Concept.pref_labeling_class do |lab|
|
45
|
-
lab.target { |target| target.association(:pref_label) }
|
46
|
-
end
|
47
|
-
|
48
|
-
factory :alt_labeling, :class => Iqvoc::Concept.further_labeling_classes.first.first do |lab|
|
49
|
-
lab.target { |target| target.association(:alt_label) }
|
50
|
-
end
|
51
|
-
|
52
|
-
sequence(:label_number) { |n| n + 1 }
|
53
|
-
|
54
|
-
factory :label, :class => Label::Base do |l|
|
55
|
-
l.language Iqvoc::Concept.pref_labeling_languages.first
|
56
|
-
l.published_at 2.days.ago
|
57
|
-
l.value "Tree #{FactoryGirl.generate(:label_number)}"
|
58
|
-
end
|
59
|
-
|
60
|
-
factory :pref_label, :parent => :label, :class => Iqvoc::Concept.pref_labeling_class.label_class do |l|
|
61
|
-
end
|
62
|
-
|
63
|
-
factory :alt_label, :parent => :label, :class => Labeling::SKOS::AltLabel.label_class do |l|
|
64
|
-
end
|
65
|
-
|
66
|
-
factory :user do |u|
|
67
|
-
u.forename 'Test'
|
68
|
-
u.surname 'User'
|
69
|
-
u.email 'testuser@iqvoc.local'
|
70
|
-
u.password 'omgomgomg'
|
71
|
-
u.password_confirmation 'omgomgomg'
|
72
|
-
u.role 'reader'
|
73
|
-
u.active true
|
74
|
-
end
|
75
|
-
end
|
@@ -1,408 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
# Copyright 2011-2013 innoQ Deutschland GmbH
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
|
-
require File.join(File.expand_path(File.dirname(__FILE__)), '../test_helper')
|
18
|
-
|
19
|
-
class HierarchyTest < ActionController::TestCase
|
20
|
-
|
21
|
-
setup do
|
22
|
-
@controller = HierarchyController.new
|
23
|
-
|
24
|
-
# create a concept hierarchy
|
25
|
-
concepts = YAML.load <<-EOS
|
26
|
-
root:
|
27
|
-
foo:
|
28
|
-
bar:
|
29
|
-
alpha:
|
30
|
-
bravo:
|
31
|
-
uno:
|
32
|
-
dos:
|
33
|
-
lorem:
|
34
|
-
ipsum:
|
35
|
-
EOS
|
36
|
-
@rel_class = Iqvoc::Concept.broader_relation_class.narrower_class
|
37
|
-
@concepts = create_hierarchy(concepts, @rel_class, {})
|
38
|
-
@concepts["root"].update_attribute("top_term", true)
|
39
|
-
end
|
40
|
-
|
41
|
-
test "entire hierarchy" do
|
42
|
-
additional_concepts = YAML.load <<-EOS
|
43
|
-
boot:
|
44
|
-
zoo:
|
45
|
-
car:
|
46
|
-
EOS
|
47
|
-
@concepts.merge! create_hierarchy(additional_concepts, @rel_class, {})
|
48
|
-
@concepts["boot"].update_attribute("top_term", true)
|
49
|
-
|
50
|
-
get :index, { :lang => "en", :format => "ttl" }
|
51
|
-
assert_response 200
|
52
|
-
%w(root foo bar alpha bravo uno dos boot zoo car).each do |id|
|
53
|
-
assert @response.body.include?(":#{id} a skos:Concept;"), "#{id} missing"
|
54
|
-
end
|
55
|
-
%w(lorem ipsum).each do |id|
|
56
|
-
assert (not @response.body.include?(":#{id} a skos:Concept;")),
|
57
|
-
"#{id} should not be present"
|
58
|
-
end
|
59
|
-
|
60
|
-
Iqvoc.config["performance.unbounded_hierarchy"] = true
|
61
|
-
get :index, { :lang => "en", :format => "ttl" }
|
62
|
-
assert_response 200
|
63
|
-
|
64
|
-
%w(root foo bar alpha bravo uno dos lorem ipsum boot zoo car).each do |id|
|
65
|
-
assert @response.body.include?(":#{id} a skos:Concept;"), "#{id} missing"
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
test "permission handling" do
|
70
|
-
get :show, :lang => "en", :format => "html", :root => "root"
|
71
|
-
entries = get_entries("ul.concept-hierarchy li")
|
72
|
-
assert_equal entries, ["Root"]
|
73
|
-
entries = get_entries("ul.concept-hierarchy li li")
|
74
|
-
assert_equal entries, ["Foo", "Bar"]
|
75
|
-
entries = get_entries("ul.concept-hierarchy li li li")
|
76
|
-
assert_equal entries, ["Alpha", "Bravo"]
|
77
|
-
entries = get_entries("ul.concept-hierarchy li li li li")
|
78
|
-
assert_equal entries, ["Uno", "Dos"]
|
79
|
-
entries = css_select("ul.concept-hierarchy li li li li li")
|
80
|
-
assert_equal entries.length, 0 # exceeded default depth
|
81
|
-
|
82
|
-
@concepts["bar"].update_attribute("published_at", nil)
|
83
|
-
|
84
|
-
get :show, :lang => "en", :format => "html", :root => "root"
|
85
|
-
entries = get_entries("ul.concept-hierarchy li")
|
86
|
-
assert_equal entries, ["Root"]
|
87
|
-
entries = get_entries("ul.concept-hierarchy li li")
|
88
|
-
assert_equal entries, ["Foo"]
|
89
|
-
entries = get_entries("ul.concept-hierarchy li li li")
|
90
|
-
assert_equal entries.length, 0
|
91
|
-
end
|
92
|
-
|
93
|
-
test "caching" do
|
94
|
-
params = { :lang => "en", :format => "ttl", :root => "root" }
|
95
|
-
|
96
|
-
# ETag generation & cache control
|
97
|
-
|
98
|
-
get :show, params
|
99
|
-
etag = @response.headers["ETag"]
|
100
|
-
assert_response 200
|
101
|
-
assert etag
|
102
|
-
assert @response.headers["Cache-Control"].include?("public")
|
103
|
-
|
104
|
-
get :show, params
|
105
|
-
assert_response 200
|
106
|
-
assert_equal etag, @response.headers["ETag"]
|
107
|
-
|
108
|
-
get :show, params.merge(:published => "0")
|
109
|
-
assert_response 200
|
110
|
-
assert @response.headers["Cache-Control"].include?("private")
|
111
|
-
|
112
|
-
# ETag keyed on params
|
113
|
-
|
114
|
-
get :show, params.merge(:depth => 4)
|
115
|
-
assert_response 200
|
116
|
-
assert_not_equal etag, @response.headers["ETag"]
|
117
|
-
|
118
|
-
get :show, params.merge(:published => 0)
|
119
|
-
assert_response 200
|
120
|
-
assert_not_equal etag, @response.headers["ETag"]
|
121
|
-
|
122
|
-
# ETag keyed on (any in-scope) concept modification
|
123
|
-
|
124
|
-
t0 = Time.now
|
125
|
-
t1 = Time.now + 30
|
126
|
-
|
127
|
-
dummy = create_concept("dummy", "Dummy", "en", false)
|
128
|
-
dummy.update_attribute("updated_at", t1)
|
129
|
-
get :show, params
|
130
|
-
assert_response 200
|
131
|
-
assert_equal etag, @response.headers["ETag"]
|
132
|
-
|
133
|
-
dummy.update_attribute("published_at", t0)
|
134
|
-
dummy.update_attribute("updated_at", t1)
|
135
|
-
get :show, params
|
136
|
-
assert_response 200
|
137
|
-
new_etag = @response.headers["ETag"]
|
138
|
-
assert_not_equal etag, new_etag
|
139
|
-
|
140
|
-
# conditional caching
|
141
|
-
|
142
|
-
@request.env["HTTP_IF_NONE_MATCH"] = new_etag
|
143
|
-
get :show, params
|
144
|
-
assert_response 304
|
145
|
-
assert_equal 0, @response.body.strip.length
|
146
|
-
|
147
|
-
@request.env["HTTP_IF_NONE_MATCH"] = "dummy"
|
148
|
-
get :show, params
|
149
|
-
assert_response 200
|
150
|
-
end
|
151
|
-
|
152
|
-
test "RDF representations" do
|
153
|
-
# Turtle
|
154
|
-
|
155
|
-
get :show, :lang => "en", :format => "ttl", :root => "root"
|
156
|
-
assert_response 200
|
157
|
-
assert_equal @response.content_type, "text/turtle"
|
158
|
-
assert @response.body =~ /:root[^\.]+skos:topConceptOf[^\.]+:scheme/m
|
159
|
-
assert @response.body =~ /:root[^\.]+skos:prefLabel[^\.]+"Root"@en/m
|
160
|
-
assert @response.body =~ /:root[^\.]+skos:narrower[^\.]+:bar/m
|
161
|
-
assert @response.body =~ /:root[^\.]+skos:narrower[^\.]+:foo/m
|
162
|
-
assert @response.body.include?(<<-EOS)
|
163
|
-
:foo a skos:Concept;
|
164
|
-
skos:prefLabel "Foo"@en.
|
165
|
-
EOS
|
166
|
-
assert @response.body =~ /:bar[^\.]+skos:prefLabel[^\.]+"Bar"@en/m
|
167
|
-
assert @response.body =~ /:bar[^\.]+skos:narrower[^\.]+:alpha/m
|
168
|
-
assert @response.body =~ /:bar[^\.]+skos:narrower[^\.]+:bravo/m
|
169
|
-
assert @response.body.include?(<<-EOS)
|
170
|
-
:alpha a skos:Concept;
|
171
|
-
skos:prefLabel "Alpha"@en.
|
172
|
-
EOS
|
173
|
-
assert @response.body =~ /:bravo[^\.]+skos:prefLabel[^\.]+"Bravo"@en/m
|
174
|
-
assert @response.body =~ /:bravo[^\.]+skos:narrower[^\.]+:uno/m
|
175
|
-
assert @response.body =~ /:bravo[^\.]+skos:narrower[^\.]+:dos/m
|
176
|
-
assert @response.body.include?(<<-EOS)
|
177
|
-
:uno a skos:Concept;
|
178
|
-
skos:prefLabel "Uno"@en.
|
179
|
-
EOS
|
180
|
-
assert @response.body.include?(<<-EOS)
|
181
|
-
:dos a skos:Concept;
|
182
|
-
skos:prefLabel "Dos"@en.
|
183
|
-
EOS
|
184
|
-
|
185
|
-
get :show, :lang => "en", :format => "ttl", :root => "lorem", :dir => "up"
|
186
|
-
assert_response 200
|
187
|
-
assert_equal @response.content_type, "text/turtle"
|
188
|
-
assert @response.body.include?(<<-EOS)
|
189
|
-
:lorem a skos:Concept;
|
190
|
-
skos:prefLabel "Lorem"@en;
|
191
|
-
skos:broader :dos.
|
192
|
-
EOS
|
193
|
-
assert @response.body.include?(<<-EOS)
|
194
|
-
:lorem a skos:Concept;
|
195
|
-
skos:prefLabel "Lorem"@en;
|
196
|
-
skos:broader :dos.
|
197
|
-
EOS
|
198
|
-
assert @response.body.include?(<<-EOS)
|
199
|
-
:dos a skos:Concept;
|
200
|
-
skos:prefLabel "Dos"@en;
|
201
|
-
skos:broader :bravo.
|
202
|
-
EOS
|
203
|
-
assert @response.body.include?(<<-EOS)
|
204
|
-
:bravo a skos:Concept;
|
205
|
-
skos:prefLabel "Bravo"@en;
|
206
|
-
skos:broader :bar.
|
207
|
-
EOS
|
208
|
-
assert @response.body.include?(<<-EOS)
|
209
|
-
:bar a skos:Concept;
|
210
|
-
skos:prefLabel "Bar"@en.
|
211
|
-
EOS
|
212
|
-
|
213
|
-
# RDF/XML
|
214
|
-
|
215
|
-
get :show, :lang => "en", :format => "rdf", :root => "root"
|
216
|
-
assert_response 200
|
217
|
-
assert_equal @response.content_type, "application/rdf+xml"
|
218
|
-
end
|
219
|
-
|
220
|
-
test "root parameter handling" do
|
221
|
-
assert_raises ActionController::UrlGenerationError do
|
222
|
-
get :show, :format => "html"
|
223
|
-
end
|
224
|
-
|
225
|
-
get :show, :lang => "en", :format => "html", :root => "N/A"
|
226
|
-
assert_response 404
|
227
|
-
assert_equal flash[:error], "no concept matching root parameter"
|
228
|
-
entries = css_select("ul.concept-hierarchy li")
|
229
|
-
assert_equal entries.length, 0
|
230
|
-
|
231
|
-
get :show, :lang => "en", :format => "html", :root => "root"
|
232
|
-
assert_response 200
|
233
|
-
assert_equal flash[:error], nil
|
234
|
-
entries = get_entries("ul.concept-hierarchy li")
|
235
|
-
assert_equal entries.length, 1
|
236
|
-
assert_equal entries[0], "Root"
|
237
|
-
|
238
|
-
get :show, :lang => "en", :format => "html", :root => "root"
|
239
|
-
entries = get_entries("ul.concept-hierarchy li")
|
240
|
-
assert_equal entries, ["Root"]
|
241
|
-
entries = get_entries("ul.concept-hierarchy li li")
|
242
|
-
assert_equal entries, ["Foo", "Bar"]
|
243
|
-
entries = get_entries("ul.concept-hierarchy li li li")
|
244
|
-
assert_equal entries, ["Alpha", "Bravo"]
|
245
|
-
entries = get_entries("ul.concept-hierarchy li li li li")
|
246
|
-
assert_equal entries, ["Uno", "Dos"]
|
247
|
-
entries = css_select("ul.concept-hierarchy li li li li li")
|
248
|
-
assert_equal entries.length, 0 # exceeded default depth
|
249
|
-
|
250
|
-
get :show, :lang => "en", :format => "html", :root => "bravo"
|
251
|
-
entries = get_entries("ul.concept-hierarchy li")
|
252
|
-
assert_equal entries, ["Bravo"]
|
253
|
-
entries = get_entries("ul.concept-hierarchy li li")
|
254
|
-
assert_equal entries, ["Uno", "Dos"]
|
255
|
-
entries = get_entries("ul.concept-hierarchy li li li")
|
256
|
-
assert_equal entries, ["Lorem", "Ipsum"]
|
257
|
-
entries = css_select("ul.concept-hierarchy li li li li")
|
258
|
-
assert_equal entries.length, 0
|
259
|
-
|
260
|
-
get :show, :lang => "en", :format => "html", :root => "lorem"
|
261
|
-
entries = get_entries("ul.concept-hierarchy li")
|
262
|
-
assert_equal entries, ["Lorem"]
|
263
|
-
entries = css_select("ul.concept-hierarchy li li")
|
264
|
-
assert_equal entries.length, 0
|
265
|
-
end
|
266
|
-
|
267
|
-
test "depth handling" do
|
268
|
-
selector = "ul.concept-hierarchy li li li li li"
|
269
|
-
|
270
|
-
get :show, :lang => "en", :format => "html", :root => "root"
|
271
|
-
entries = css_select(selector)
|
272
|
-
assert_equal entries.length, 0 # default depth is 3
|
273
|
-
|
274
|
-
get :show, :lang => "en", :format => "html", :root => "root", :depth => 4
|
275
|
-
entries = css_select(selector)
|
276
|
-
assert_equal entries.length, 2
|
277
|
-
|
278
|
-
get :show, :lang => "en", :format => "html", :root => "root", :depth => 1
|
279
|
-
entries = get_entries("ul.concept-hierarchy li")
|
280
|
-
assert_equal entries, ["Root"]
|
281
|
-
entries = get_entries("ul.concept-hierarchy li li")
|
282
|
-
assert_equal entries, ["Foo", "Bar"]
|
283
|
-
entries = css_select("ul.concept-hierarchy li li li")
|
284
|
-
assert_equal entries.length, 0
|
285
|
-
|
286
|
-
get :show, :lang => "en", :format => "html", :root => "root", :depth => 5
|
287
|
-
assert_response 403
|
288
|
-
assert_equal flash[:error], "excessive depth"
|
289
|
-
|
290
|
-
get :show, :lang => "en", :format => "html", :root => "root", :depth => "invalid"
|
291
|
-
assert_response 400
|
292
|
-
assert_equal flash[:error], "invalid depth parameter"
|
293
|
-
end
|
294
|
-
|
295
|
-
test "direction handling" do
|
296
|
-
get :show, :lang => "en", :format => "html", :root => "root"
|
297
|
-
entries = get_entries("ul.concept-hierarchy li")
|
298
|
-
assert_equal entries, ["Root"]
|
299
|
-
entries = get_entries("ul.concept-hierarchy li li li li")
|
300
|
-
assert_equal entries, ["Uno", "Dos"]
|
301
|
-
|
302
|
-
get :show, :lang => "en", :format => "html", :root => "root", :dir => "up"
|
303
|
-
entries = get_entries("ul.concept-hierarchy li")
|
304
|
-
assert_equal entries, ["Root"]
|
305
|
-
entries = css_select("ul.concept-hierarchy li li")
|
306
|
-
assert_equal entries.length, 0
|
307
|
-
|
308
|
-
get :show, :lang => "en", :format => "html", :root => "lorem"
|
309
|
-
entries = get_entries("ul.concept-hierarchy li")
|
310
|
-
assert_equal entries, ["Lorem"]
|
311
|
-
entries = css_select("ul.concept-hierarchy li li")
|
312
|
-
assert_equal entries.length, 0
|
313
|
-
|
314
|
-
get :show, :lang => "en", :format => "html", :root => "lorem", :dir => "up"
|
315
|
-
entries = get_entries("ul.concept-hierarchy li")
|
316
|
-
assert_equal entries, ["Lorem"]
|
317
|
-
entries = get_entries("ul.concept-hierarchy li li li li")
|
318
|
-
assert_equal entries, ["Bar"]
|
319
|
-
entries = css_select("ul.concept-hierarchy li li li li li")
|
320
|
-
assert_equal entries.length, 0
|
321
|
-
|
322
|
-
get :show, :lang => "en", :format => "html", :root => "lorem", :dir => "up", :depth => 4
|
323
|
-
page.all("ul.concept-hierarchy li").
|
324
|
-
map { |node| node.native.children.first.text }
|
325
|
-
entries = get_entries("ul.concept-hierarchy li li li li li")
|
326
|
-
assert_equal entries, ["Root"]
|
327
|
-
end
|
328
|
-
|
329
|
-
test "siblings handling" do
|
330
|
-
get :show, :lang => "en", :format => "html", :root => "foo"
|
331
|
-
entries = get_all_entries("ul.concept-hierarchy li")
|
332
|
-
assert_equal entries, ["Foo"]
|
333
|
-
|
334
|
-
get :show, :lang => "en", :format => "html", :root => "foo", :siblings => "true"
|
335
|
-
entries = get_all_entries("ul.concept-hierarchy li")
|
336
|
-
assert_equal entries, ["Foo", "Bar"]
|
337
|
-
|
338
|
-
get :show, :lang => "en", :format => "html", :root => "lorem"
|
339
|
-
entries = get_all_entries("ul.concept-hierarchy li")
|
340
|
-
assert_equal entries, ["Lorem"]
|
341
|
-
|
342
|
-
get :show, :lang => "en", :format => "html", :root => "lorem", :dir => "up",
|
343
|
-
:siblings => "true"
|
344
|
-
entries = get_all_entries("ul.concept-hierarchy li")
|
345
|
-
assert_equal entries.length, 8
|
346
|
-
["Lorem", "Ipsum", "Uno", "Dos", "Alpha", "Bravo", "Bar", "Foo"].each do |name|
|
347
|
-
assert entries.include?(name), "missing entry: #{name}"
|
348
|
-
end
|
349
|
-
|
350
|
-
get :show, :lang => "en", :format => "html", :root => "lorem", :dir => "up",
|
351
|
-
:siblings => "1", :depth => 4
|
352
|
-
entries = get_all_entries("ul.concept-hierarchy li")
|
353
|
-
assert_equal entries.length, 9
|
354
|
-
["Lorem", "Ipsum", "Uno", "Dos", "Alpha", "Bravo", "Bar", "Foo", "Root"].each do |name|
|
355
|
-
assert entries.include?(name), "missing entry: #{name}"
|
356
|
-
end
|
357
|
-
end
|
358
|
-
|
359
|
-
test "avoid duplication" do # in response to a bug report
|
360
|
-
get :show, :lang => "en", :format => "ttl", :root => "uno", :dir => "up"
|
361
|
-
assert_response 200
|
362
|
-
assert_equal @response.content_type, "text/turtle"
|
363
|
-
assert @response.body.include?(<<-EOS)
|
364
|
-
:bravo a skos:Concept;
|
365
|
-
skos:prefLabel "Bravo"@en;
|
366
|
-
skos:broader :bar.
|
367
|
-
EOS
|
368
|
-
assert (not @response.body.include?(':bravo skos:prefLabel "Bravo"@en.'))
|
369
|
-
end
|
370
|
-
|
371
|
-
def get_all_entries(selector)
|
372
|
-
return page.all(selector).map { |node| node.native.children.first.text }
|
373
|
-
end
|
374
|
-
|
375
|
-
def get_entries(selector)
|
376
|
-
return css_select(selector).map { |node| node.children.first.content }
|
377
|
-
end
|
378
|
-
|
379
|
-
def page # XXX: should not be necessary!?
|
380
|
-
return Capybara::Node::Simple.new(@response.body)
|
381
|
-
end
|
382
|
-
|
383
|
-
def create_hierarchy(hash, rel_class, memo=nil, parent=nil)
|
384
|
-
hash.each do |origin, children|
|
385
|
-
concept = create_concept(origin, origin.capitalize, "en")
|
386
|
-
memo[origin] = concept if memo
|
387
|
-
link_concepts(parent, rel_class, concept) if parent
|
388
|
-
create_hierarchy(children, rel_class, memo, concept) unless children.blank?
|
389
|
-
end
|
390
|
-
return memo
|
391
|
-
end
|
392
|
-
|
393
|
-
def link_concepts(source, rel_class, target)
|
394
|
-
rel_name = rel_class.name.to_relation_name
|
395
|
-
source.send(rel_name).create_with_reverse_relation(target)
|
396
|
-
end
|
397
|
-
|
398
|
-
def create_concept(origin, pref_label, label_lang, published=true)
|
399
|
-
concept = Iqvoc::Concept.base_class.create(:origin => origin,
|
400
|
-
:published_at => (published ? Time.now : nil))
|
401
|
-
label = Iqvoc::Label.base_class.create(:value => pref_label,
|
402
|
-
:language => label_lang)
|
403
|
-
labeling = Iqvoc::Concept.pref_labeling_class.create(:owner => concept,
|
404
|
-
:target => label)
|
405
|
-
return concept
|
406
|
-
end
|
407
|
-
|
408
|
-
end
|