-

Browse

+

<%= t('browse') %>

<%= t('ontologies.intro').html_safe %> <%= link_to(Rails.configuration.settings.links[:help_ontology_browse], id: 'ontology-browse-help', @@ -19,27 +19,27 @@

- Welcome admin
This coloring indicates admin-only features + <%= t('ontologies.welcome_admin') %>
<%= t('ontologies.admin_help') %>
-

Debug Info

- types: {{facets.types.active}}
- artifacts: {{facets.artifacts.active}}
- formats: {{facets.formats.active}}
- groups: {{facets.groups.active}}
- categories: {{facets.categories.active}}
- Selected ontologies: {{visible_ont_count}} +

<%= t('ontologies.debug_info') %>

+ <%= t('types') %>: {{facets.types.active}}
+ <%= t('artifacts') %>: {{facets.artifacts.active}}
+ <%= t('formats') %>: {{facets.formats.active}}
+ <%= t('groups') %>: {{facets.groups.active}}
+ <%= t('categories') %>: {{facets.categories.active}}
+ <%= t('selected_ontologies') %>: {{visible_ont_count}}
<%if session[:user].nil?%> - Submit New Ontology + <%= t('ontologies.submit_new_ontology') %> <%else%> - Submit New Ontology + <%= t('ontologies.submit_new_ontology') %> <%end%> @@ -47,7 +47,7 @@ Retrieve the attr value in browse_attributes and set it in the @ontologies in app/controllers/ontologies_controller.rb Define possibles values for the attr in config/enforced_attribute_values.rb-->
-

Entry Type

+

<%= t('ontologies.entry_type') %>

@@ -61,7 +61,7 @@
-

Uploaded in the Last

+

<%= t('ontologies.uploaded_in_the_last') %>

@@ -84,7 +84,7 @@
-

Group

+

<%= t('group') %>

@@ -96,7 +96,7 @@
-

Format

+

<%= t('format') %>

@@ -108,7 +108,7 @@
-

Ontology Content

+

<%= t('ontology_content') %>

@@ -120,7 +120,7 @@
-

Natural Language

+

<%= t('natural_language') %>

-

Formality Levels

+

<%= t('formality_levels') %>

-

Is of Type

+

<%= t('is_of_type') %>

-

Missing Status

+

<%= t('missing_status') %>

- - - - - - + + + + + + - - - - + + + +
-

No matches!

+

<%= t('no_matches') %>

-
VIEW
+
<%= t('view') %>

{{$index}} @@ -215,37 +215,37 @@

{{ontology.description | descriptionToText}}

- Uploaded: {{ontology.creationDate | date:'shortDate'}} + <%= t('uploaded') %>: {{ontology.creationDate | date:'shortDate'}} - Format: {{ontology.format}} + <%= t('format') %>: {{ontology.format}} - View of:
{{ontology.viewOfOnt.acronym}} + <%= t('view_of') %>: {{ontology.viewOfOnt.acronym}} - Summary Only + <%= t('summary_only') %> - Groups: {{groupAcronyms(ontology.groups).join(', ')}} + <%= t('groups') %>: {{groupAcronyms(ontology.groups).join(', ')}} - Categories: {{categoryNames(ontology.categories).join(', ')}} + <%= t('categories') %>: {{categoryNames(ontology.categories).join(', ')}} - Admins: {{adminUsernames(ontology.administeredBy).join(', ')}} + <%= t('admins') %>: {{adminUsernames(ontology.administeredBy).join(', ')}} Pull URL - Status: {{ontology.submissionStatusFormatted}} + <%= t('status') %>: {{ontology.submissionStatusFormatted}}
- No submissions available + <%= t('no_submissions_available') %>

@@ -255,7 +255,7 @@
-
FAIR score
+
<%= t('fair_score') %>
{{ontology.fairScore}}
@@ -264,7 +264,7 @@
-
classes
+
<%= t('classes') %>
{{ontology.class_count_formatted}}
@@ -282,7 +282,7 @@
-
projects
+
<%= t('projects') %>
{{ontology.projects.length}}
@@ -291,7 +291,7 @@
-
notes
+
<%= t('notes') %>
{{ontology.notes.length}}
diff --git a/config/locales/fr.yml b/config/locales/fr.yml index d7b1cbc9a8..4e60754eef 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -1,9 +1,5 @@ fr: - - ######################################################## NCBO ANNOTAROR PLUS ####################################################### - #################################################################################################################################### - nbco_annotatosplus: score_help: "Annotations de score suivant la mesure NCBO 2009 précédente (ancienne) ou Annotations de score suivant la mesure C-Value (cvalue) ou Annotations de score suivant la mesure C-Value avec expansion de la hiérarchie (cvalueh)" start_typing_to_select: "Commencez à taper pour sélectionner %{type} ou laissez vide pour tout utiliser" @@ -83,11 +79,6 @@ fr: Le texte soumis au NCBO Annotator+ doit être en anglais. sample_text: Le mélanome est une tumeur maligne des mélanocytes qui se trouvent principalement dans la peau mais aussi dans l'intestin et l'œil. - #################################################################################################################################### - - ######################################################## SEARCH #################################################################### - #################################################################################################################################### - search: title: "Rechercher" class_search: "Recherche de classe" @@ -112,11 +103,6 @@ fr: Une classe que les auteurs de l'ontologie ont signalée comme étant obsolète et qu'ils recommandent de ne pas utiliser. Ces cours sont souvent laissés dans des ontologies (plutôt que de les supprimer entièrement) afin que les systèmes existants qui en dépendent continuent à fonctionner. - #################################################################################################################################### - - ######################################################## PROJECTS ################################################################## - #################################################################################################################################### - projects: title: "Liste de projets" project_description: "Description du projet" @@ -139,11 +125,6 @@ fr: index: intro: Parcourez une sélection de projets qui utilisent les ressources %{site} - #################################################################################################################################### - - ####################################################### LANDSCAPE ################################################################## - #################################################################################################################################### - landscape: title: "%{site} Paysage" intro: Visualiser les données récupérées à partir des ontologies stockées dans le portail @@ -193,11 +174,6 @@ fr: category: Catégorie size: Taille - ################################################################################################################################### - - ####################################################### HOME ####################################################################### - #################################################################################################################################### - home: find_ontology: "Trouver une ontologie" search_class: "Rechercher une classe" @@ -234,11 +210,6 @@ fr: Pour recevoir des avis de nouvelles versions ou de pannes de site, veuillez vous abonner au
liste de support bioontologie. - ################################################################################################################################### - - ####################################################### RECOMMENDER ################################################################ - #################################################################################################################################### - recommender: intro: Obtenez des recommandations pour les ontologies les plus pertinentes à partir d'un extrait d'un texte biomédical ou d'une liste de mots-clés title: "recommandeur" @@ -254,11 +225,6 @@ fr: no_sets_recommended: "Il n'y a pas d'ensembles d'ontologies recommandés pour l'entrée fournie. Veuillez essayer la sortie 'Ontologies'." text_length_limit: "Veuillez utiliser moins de 500 mots. Si vous devez annoter de plus grands morceaux de texte, vous pouvez utiliser le service web de recommandation." - ################################################################################################################################### - - ####################################################### MAPPINGS ################################################################ - #################################################################################################################################### - mappings: title: "Correspondances" upload_mappings: "Télécharger les correspondances" @@ -277,11 +243,6 @@ fr: include_ancestors_up_to_level: "Inclure les ancêtres jusqu'au niveau" include_score: "Inclure le score" - ################################################################################################################################### - - ####################################################### ANNOTATOR ################################################################ - #################################################################################################################################### - annotator: title: "Annotateur" get_annotator: "Obtenir les annotations" @@ -319,11 +280,6 @@ fr: tooltip: "Activez Lemmatize pour lemmatiser le texte soumis et utiliser un dictionnaire lemmatisé pour les annotations" sample_text: Le mélanome est une tumeur maligne des mélanocytes qui se trouvent principalement dans la peau mais aussi dans l'intestin et l'œil. - ################################################################################################################################### - - ####################################################### LAYOUT ################################################################ - #################################################################################################################################### - layout: header: browse: "Parcourir" @@ -359,63 +315,7 @@ fr: one: Cette installation de l'appliance OntoPortal est une licence d'essai, qui expirera dans 1 jour. other: Cette installation de l'appliance OntoPortal est une licence d'essai, qui expirera dans %{count} jours. - ################################################################################################################################### - - - - all: "Tout" - none: "aucune" - keywords: "Mots-clés" - keywords_separated_by_commas: "Mots-clés séparés par des virgules" - see_details: "Voir les détails" - view_fair_scores_definitions: "View fair scores definitions" - get_json_version: "Get the json version" - select_ontologies: "Commencez à taper pour sélectionner des ontologies ou laissez vide pour toutes les utiliser" - clear_selection: "Effacer la sélection" - select_from_list: "Sélectionner dans la liste" - more: "Plus" - statistics: "Statistiques" - average: "Moyenne" - min: "Min" - max: "Max" - median: "Médiane" - slices: "Tranches" - help: "Aide" - or: "Ou" - show_advanced_options: "Afficher les options avancées" - insert_sample_text: "Insérer un exemple de texte" - class: "Classe" - filter: "Filtre" - ontology: "Ontologie" - type: "Type" - context: "Contexte" - umls_sem_type: "Type Sem UMLS" - matched_ontology: "ontologie correspondante" - matched_class: "Classe correspondante" - score: "Score" - negation: "négation" - experiencer: "Experiencer" - temporality: "Temporalité" - certainty: "Certitude" - format_results: "Formater les résultats en " - reproduce_results: "Reproduisez ces résultats en utilisant le " - additional_parameters: "Paramètres supplémentaires expliqués à " - input: "Entrée" - text: "Texte" - output: "Sortie" - ontology_sets: "Ensembles d'ontologies" - insert_sample_input: "Insérer une entrée d'exemple" - weights_configuration: "Configuration des poids" - coverage: "Couverture" - acceptance: "Acceptation" - knowledge_detail: "Détail de la connaissance" - specialization: "Spécialisation" - max_ontologies_per_set: "Nombre maximum d'ontologies par ensemble" - paste_input_text: "Collez un paragraphe de texte ou des mots-clés à utiliser dans le calcul des recommandations d'ontologie" - get_recommendations: "Obtenir des recommandations" - select_ontologies_list: "Sélectionnez les ontologies" - - # OTHER + # Other about: >
@@ -478,7 +378,16 @@ fr: ontologies: self: "Ontologies" + loading: Chargement des ontologies intro: Parcourir la bibliothèque d'ontologies + please_wait: S'il vous plaît, attendez.. + browse: Explorer + welcome_admin: Bienvenue admin + admin_help: Cette couleur indique les fonctionnalités réservées aux administrateurs + debug_info: Informations de débogage + submit_new_ontology: Soumettre une nouvelle ontologie + entry_type: Type d'entrée + uploaded_in_the_last: Téléchargé dans les derniers concepts: request_term: @@ -500,4 +409,93 @@ fr:

Justification (facultatif)
Fournissez ici toute information supplémentaire sur le terme demandé.

+ # Generale + showing: Affichage + of: de + sort: Trier + popular: Populaire + name: Nom + classes_count: Nombre de classes + instances_concepts_count: Nombre d'instances/concepts + notes: Notes + upload_date: Date de téléchargement + release_date: Date de publication + fair_score: Score FAIR + search_rank: Classement de recherche + no_matches: Aucune correspondance ! + uploaded: Téléchargé + view_of: Vue de + view: Vue + summary_only: Résumé seulement + groups: Groupes + categories: Catégories + admins: Administrateurs + status: Statut + no_submissions_available: Aucune soumission disponible + classes: classes + + category: Catégorie + group: Groupe + format: Format + ontology_content: Contenu de l'ontologie + natural_language: Langage naturel + formality_levels: Niveaux de formalité + is_of_type: Est du type + missing_status: Statut manquant + types: Types + artifacts: Artéfacts + formats: Formats + selected_ontologies: Ontologies sélectionnées + all: "Tout" + none: "aucune" + keywords: "Mots-clés" + keywords_separated_by_commas: "Mots-clés séparés par des virgules" + see_details: "Voir les détails" + view_fair_scores_definitions: "View fair scores definitions" + get_json_version: "Get the json version" + select_ontologies: "Commencez à taper pour sélectionner des ontologies ou laissez vide pour toutes les utiliser" + clear_selection: "Effacer la sélection" + select_from_list: "Sélectionner dans la liste" + more: "Plus" + statistics: "Statistiques" + average: "Moyenne" + min: "Min" + max: "Max" + median: "Médiane" + slices: "Tranches" + help: "Aide" + or: "Ou" + show_advanced_options: "Afficher les options avancées" + insert_sample_text: "Insérer un exemple de texte" + class: "Classe" + filter: "Filtre" + ontology: "Ontologie" + type: "Type" + context: "Contexte" + umls_sem_type: "Type Sem UMLS" + matched_ontology: "ontologie correspondante" + matched_class: "Classe correspondante" + score: "Score" + negation: "négation" + experiencer: "Experiencer" + temporality: "Temporalité" + certainty: "Certitude" + format_results: "Formater les résultats en " + reproduce_results: "Reproduisez ces résultats en utilisant le " + additional_parameters: "Paramètres supplémentaires expliqués à " + input: "Entrée" + text: "Texte" + output: "Sortie" + ontology_sets: "Ensembles d'ontologies" + insert_sample_input: "Insérer une entrée d'exemple" + weights_configuration: "Configuration des poids" + coverage: "Couverture" + acceptance: "Acceptation" + knowledge_detail: "Détail de la connaissance" + specialization: "Spécialisation" + max_ontologies_per_set: "Nombre maximum d'ontologies par ensemble" + paste_input_text: "Collez un paragraphe de texte ou des mots-clés à utiliser dans le calcul des recommandations d'ontologie" + get_recommendations: "Obtenir des recommandations" + select_ontologies_list: "Sélectionnez les ontologies" + \ No newline at end of file From 850121ef3e950f7f9dd51903e02b294c8d09636c Mon Sep 17 00:00:00 2001 From: HADDAD Zineddine Date: Thu, 20 Apr 2023 17:06:14 +0200 Subject: [PATCH 21/29] Update en.yml --- config/locales/en.yml | 734 ++++++++++++++++++++++++++---------------- 1 file changed, 448 insertions(+), 286 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 022be952a5..254fa1fd64 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,327 +1,489 @@ en: - all : "All" - see_details: "See details" - view_fair_scores_definitions: "View fair scores definitions" - get_json_version: "Get the json version" - select_ontologies: "Start typing to select ontologies or leave blank to use all" - clear_selection: "Clear selection" - select_from_list: "Select from list" - more: "More" - statistics: "Statistics" - average: "Average" - min: "Min" - max: "Max" - median: "Median" - slices: "Slices" - help: "Help" + nbco_annotatosplus: + score_help: "Score annotations following previous NCBO 2009 measure (old) or Score annotations following C-Value measure (cvalue) or Score annotations following C-Value measure with hierarchy expansion (cvalueh)" + start_typing_to_select: "Start typing to select %{type} or leave blank to use all" + include_ancestors_up_to_level: "Include ancestors up to level" + include_score: "Include score" - class: "Class" - filter: "Filter" - ontology: "Ontology" + recognizer: "Entity recognition" - type: "Type" - context: "Context" - umls_sem_type: "UMLS Sem Type" - matched_class: "Matched Class" - matched_ontology: "Matched Ontology" - score: "Score" - negation: "Negation" - experiencer: "Experiencer" - temporality: "Temporality" - certainty: "Certainty" - format_results: "Format results as " - reproduce_results : "Reproduce these results using the " - additional_parameters: "Additional parameters explained at " + enter_paste_text_to_annotate: "Enter or paste the text to annotate:" - input: "Input" - text: "Text" - keywords: "Keywords" - keywords_separated_by_commas: "Keywords separated by commas" - output: "Output" - ontology_sets: "Ontology sets" - insert_sample_input: "Insert sample input" - weights_configuration: "Weights configuration" - coverage: "Coverage" - acceptance: "Acceptance" - knowledge_detail: "Knowledge detail" - specialization: "Specialization" - max_ontologies_per_set: "Maximum ontologies per set" - paste_input_text: "Paste a paragraph of text or some keywords to use in calculating ontology recommendations" - get_recommendations: "Get Recommendations" - select_ontologies_list: "Select Ontologies" + show_advanced_options: "Show advanced options" + insert_sample_text: "Insert sample text" + match_longest_only: "Match longest only" + match_partial_words: "Match partial words" + include_mappings: "Include mappings" + exclude_numbers: "Exclude numbers" + exclude_synonyms: "Exclude synonyms" + select_ontologies: "Start typing to select ontologies or leave blank to use all ontologies" + select_ontologies_list: "Select ontologies" - header: - browse: "Browse" - search: "Search" - mappings: "Mappings" - recommender: "Recommender" - annotator: "Annotator" - ncbo_annotator_plus: "NCBO Annotator+" - projects: "Projects" - landscape: "Landscape" - login: "Login" - account_setting: "Account Settings" - submit_feedback: "Submit Feedback" - help: "Help" - release_notes: "Release Notes" - publications: "Publications" + umls: + semantic: "UMLS Semantic" + semantic_types: "UMLS Semantic Types" + semantic_groups: "UMLS Semantic Groups" - footer: - products: "Products" + select: "Select %{name}" - main: - find_ontology: "Find an ontology" - search_class: "Search for a class" - browse_by_group: "Browse by group" - browse_ontologies: "Browse Ontologies" - comprehensive_repository: "the world's most comprehensive repository of biomedical ontologies" - advanced_search: "Advanced Search" - ontology_visits: "Ontology Visits" - fair_scores: "FAIR Scores" - clear_selection: "Clear Selection" - latest_notes: "Latest Notes" - ontologies: "Ontologies" - classes: "Classes" - individuals: "Individuals" - projects: "Projects" - users: "Users" - no_recent_notes: "No recent notes have been submitted" - - shared: - show_advanced_options: "Show advanced options" - insert_sample_text: "Insert sample text" - umls_semantic: "UMLS semantic" - + fast_context: + title: "FastContext" + help: "Activate FastContext to detect: if a concept has been negated (affirmed, negated), who experienced the concept found (patient, other), when the annotated concept occurred (recent, historical, hypothetical), and/or if the annotated concept is uncertain (certain, uncertain)." - search_page: - title: "Search" - class_search: "Class Search" - show_advanced_options: "Show advanced options" - hide_advanced_options: "Hide advanced options" - view_search_documentation: "View search documentation" - include_in_search: "Include in search" - narrow_search_to: "Narrow search to" - categories: "Categories" + annotations: "Annotations" - annotator_page: - title: "Annotator" - get_annotator: "Get Annotations" filters: + by: + filter: "Filter" + title: "Results are filtered by" + class: "Class" + ontology: "Ontology" + match_type: "Type" + match_context: "Context" + matched_class: "Associated Class" + matched_ontology: "Associated Ontology" + umls_sem_type: "UMLS Semantic Type" + score: "Score" + negation: "Negation" + experiencer: "Experiencer" + temporality: "Temporality" + certainty: "Certainty" + + additional_parameters_explained_at: "Additional parameters are explained on the page:" + format_results_as: "Format results as:" + reproduce_results_using: "Reproduce these results using the" match_longest_only: "Match longest only" - match_partial_words: "Match partial words" + match_partial_words: "Recognize partial words" include_mappings: "Include mappings" exclude_numbers: "Exclude numbers" exclude_synonyms: "Exclude synonyms" max_hierarchy_level: "Include ancestors up to level" score: "Include score" - score_help: "Score annotations following the previous 2009 NCBO measure (old) or Score annotations following the C-Value measure (cvalue) or Score annotations following the C-Value measure with hierarchy expansion (cvalueh)" + score_help: "Score annotations according to the previous NCBO 2009 measure (old) or score annotations using the C-Value measure (cvalue) or score annotations using the C-Value measure with hierarchy expansion (cvalueh)" score_threshold: "Filter by score threshold" - score_threshold_help: "Specify the minimum score value for annotations " + score_threshold_help: "Specify the minimum score value for annotations" confidence_threshold: "Filter confidence threshold" - confidence_threshold_help: "Specify the minimum position in the scoring distribution (between 1 and 100)" - recognizer: "Entity recognizer" - start_typing_to_select: "Start typing to select %{type} or leave blank to use all" - select: "Select %{name}" - enter_or_paste_text: "Enter or paste text to be annotated" - fast_context: "FastContext" - lemmatize: "Lemmatize" - annotations_result: "Annotations" - results_filtered_by: "Results are filtered by" - + confidence_threshold_help: "Specify the minimum position in the scores distribution (between 1 and 100)" + entity_recognizer: "entity recognition tool" - umls: - semantic_types: "UMLS semantic types" - semantic_groups: "UMLS semantic groups" + index: + title: "NCBO Annotator +" + intro: > + The NCBO Annotator+ is a proxy calling the NCBO Annotator web service on the NCBO BioPortal. +

+ Tchechmedjiev, A., Abdaoui, A., Emonet, V., Melzi, S., Jonnagaddala, J., & Jonquet, C. (2018). Enhanced features for annotating and indexing clinical text with NCBO Annotator+. Bioinformatics, 34(11), 1962-1965. +

+ If you are using the API, please provide a valid NCBO BioPortal API key and access the service at http://services.bioportal.lirmm. en/ncbo_annotatorplus
+ Text submitted to NCBO Annotator+ must be in English. + sample_text: Melanoma is a malignant tumor of melanocytes found mainly in the skin but also in the intestine and the eye. + search: + title: "Search" + class_search: "Class Search" + show_advanced_options: "Show Advanced Options" + hide_advanced_options: "Hide Advanced Options" + view_search_documentation: "View Search Documentation" + include_in_search: "Include in Search" + narrow_search_to: "Narrow Search to" + categories: "Categories" + property_values: "Property Values" + obsolete_classes: "Obsolete Classes" + ontology_views: "Ontology Views" + exact_matches: "Exact Matches" + classes_with_definitions: "Classes with Definitions" + ontologies: "Ontologies" + index: + intro: "Search for a class across multiple ontologies" + search_keywords_placeholder: "Enter a class, e.g. Melanoma" + categories_placeholder: "Start typing to select categories or leave blank to use all" + property_definition: "A named association between two entities. Examples are 'definition' (a relationship between a class and text) and 'part of' (a relationship between two classes)." + obsolete_definition: > + A class that the ontology authors have flagged as obsolete and recommend not to use. These classes are often left in ontologies (rather than being deleted entirely) so that existing systems that depend on them continue to function." - recommender_page: - title: "recommender" - ontology_recommender: "Ontology Recommender" - ontology_recommendation_input: "Please paste a paragraph of text or some keywords to use in calculating ontology recommendations." - weight_sum_greater_than_zero: "The sum of the weights must be greater than zero" - weights_greater_than_zero: "All the weights must be greater or equal to zero" - valid_numeric_weights: "All the weights must be valid numeric values" - valid_integer_max_ontologies_per_set: "The maximum ontologies per set must be a valid integer value" - valid_max_ontologies_per_set_range: "The maximum ontologies per set must be a number between 2 and 4" - recommendation_error: "Problem getting recommendations, please try again" - no_recommendations: "No recommendations found" - no_sets_recommended: "There are no ontology sets recommended for the input provided. Please try the 'Ontologies' output." - text_length_limit: "Please use less than 500 words. If you need to annotate larger pieces of text you can use the Recommender Web Service" + projects: + projects: + title: "Projects List" + project_description: "Project Description" + description_text: "Description Text" + view_projects_help: "View Projects Help" + create_new_project: "Create New Project" - + self: "Projects" + description: "Description" + contacts: "Contacts" + institutions: "Institutions" + ontologies: "Ontologies" + creator: "User" + created: "Created" + home_page: "Home Page" + edit: "Edit" + delete_admin_only: "Delete (admin only)" + delete_confirm: "Are you sure?" - about: > -
-

Abstract

-

- Many vocabularies and ontologies are produced to represent and annotate agronomic data. Therefore, there is a need of - a common platform to identify, host and use them in agro-informatics application. The AgroPortal project aims to offer - a reference ontology repository for agronomy, reusing the NCBO BioPortal technology. The scientific outcomes and the - experience of the biomedical domain are thus exploited and transposed in the agronomy domain, including plants, food, - environment and possibly animal sciences. We offer an ontology portal which features ontology hosting, search, versioning, - visualization, comment, recommendation, enables semantic annotation, as well as storing and exploiting ontology alignments. - All of these within a fully semantic web compliant infrastructure. The AgroPortal specifically pays attention to respect the - requirements of the agronomic community in terms of ontology formats (e.g., SKOS, trait dictionaries) or supported features. - AgroPortal project is based on five driving agronomic use cases which participate in the design and orientation of the platform. - AgroPortal already offers a robust and stable reference repository highly valuable for the agronomic domain. -

-

Use cases

- -
-

New features

-

- See the release notes -

-
-

Partners

-

The National Center For Biomedical Ontology (NCBO), Institut de Recherche pour le Développement (IRD), Research Data Alliance (RDA), - Bioversity International, Food & Agriculture Organization (FAO), Global Open Data for Agriculture & Nutrition (Godan Action), Institut National de la Recherche Agronomique (INRA)

-

Acknowledgments

-

The AgroPortal is partly achieved within the Semantic Indexing of French biomedical Resources (SIFR) project - that received funding from the EU H2020 research and innovation programme under the Marie Sklodowska-Curie (grant 701771) - and the French National Research Agency (grant ANR-12-JS02-01001), the NUMEV Labex (grant ANR-10-LABX-20), - the Computational Biology Institute of Montpellier (grant ANR-11-BINF-0002) as well as by University of Montpellier and the CNRS. - We also thank the National Center for Biomedical Ontologies for help and time spent with us in deploying the AgroPortal.

-

Team

- To contact us: firstname.lastname@lirmm.fr -
    -
  • Clément Jonquet, researcher at LIRMM (Univ. of Montpellier, France), main investigator of the AgroPortal project
  • -
  • Anne Toulet, researcher at LIRMM (Univ. of Montpellier, France)
  • -
  • Vincent Emonet, engineer at LIRMM (Univ. of Montpellier, France)
  • -
-
+ index: + intro: "Browse a selection of projects that use %{site} resources" - activerecord: - errors: - models: - license: - attributes: - encrypted_key: - invalid_license_key: is an invalid license key - no_appliance_id_for_comparison: couldn't be validated. Unable to retrieve virtual appliance ID. - appliance_id_mismatch: is an appliance ID mismatch - admin: - licenses: - create: - success: License successfully renewed! + landscape: + title: "%{site} Landscape" + intro: Visualize data retrieved from ontologies stored in the portal + groups_and_categories: Groups and Categories + ontologies_by: "Ontologies by %{type}" + ontologies_count_by_catalog: Number of ontologies in each data catalog + properties_use: Property Usage + properties_usage_proportion: The proportion of properties usage among stored ontologies + ontologies_languages: Natural languages of ontologies + ontologies_licenses: Licenses used by ontologies + ontology_tools: Most used tools to build ontologies + more_properties_charts: More properties charts + ontology_properties_pie_charts: Pie charts for the properties used in ontologies + owl_ontology_preflabel_uris: URIs for prefLabel properties used for OWL ontologies + owl_ontology_synonym_uris: URIs for synonym properties used for OWL ontologies + owl_ontology_definition_uris: URIs for definition properties used for OWL ontologies + owl_ontology_author_uris: URIs for author properties used for OWL ontologies + ontology_types: Ontology types + ontology_formality_levels: Formality levels of ontologies + ontologies_formats: Format used + ontologies_contributors: Contributors to ontology development + most_active_people: Most active people + most_mentioned_people: Most mentioned people as contact, creator, contributor or curator + most_active_organizations: Most active organizations + funding_endorsing_organizations: Organizations funding and endorsing the most ontologies + ontologies_activity_on: "Ontology Activity on %{site}" + most_active_people_as_reviewer: "Most active people as reviewers" + most_mentioned_people_as_reviewer: People who published notes, reviews, and projects + most_active_ontologies: "Most active ontologies" + ontologies_with_notes_reviews_projects: "Ontologies with notes, reviews, and projects" + ontology_relations_network: "Ontology Relations Network" + relations_between_stored_ontologies: "Relations between stored ontologies in the portal" + filter_network: "Filter network" + ontology_fairness_evaluator: "Ontology FAIRness Evaluator (O’FAIRe)" + average_metrics: "Average metrics" + group: Group + category: Category + size: Size - date: - formats: - year_month_day_concise: "%Y-%m-%d" # 2017-03-01 - month_day_year: "%b %-d, %Y" # Mar 1, 2017 - monthfull_day_year: "%B %-d, %Y" # March 1, 2017 + home: + find_ontology: "Find an ontology" + search_class: "Search Class" + browse_by_group: "Browse by Group" + browse_ontologies: "Browse ontologies" + comprehensive_repository: "the most comprehensive repository of biomedical ontologies in the world" + advanced_search: "Advanced Search" + ontology_visits: "Ontology visits" + fair_scores: "FAIR Scores" + clear_selection: "Clear Selection" + latest_notes: "Latest Notes" + ontologies: "Ontologies" + classes: "Classes" + individuals: "People" + projects: "Projects" + users: "Users" + no_recent_notes: "No recent notes were submitted" + index: + find_ontology_placeholder: Start typing the ontology name, then choose from + query_placeholder: Enter a class, eg Melanoma + tagline: the world's most comprehensive repository of biomedical ontologies + title: Welcome to the %{organization} + welcome: Welcome to the %{site}, + help: + welcome: Welcome to the %{site} of the National Center for Biomedical Ontology. %{site} is a web application for accessing and sharing biomedical ontologies. + getting_started: > + %{site} allows users to browse, upload, download, search, comment, and create mappings for ontologies. + browse: > + Users can browse and explore individual ontologies by navigating either in a tree structure or in an animated graphical view. Users can also view mappings and + ontology metadata and ontology download. Additionally, logged in users can submit a new ontology to the library. + rest_examples_html: View documentation and examples for the %{site} REST API. + announce_list_html: > + To receive notices of new releases or site outages, please subscribe to + bioontology support list. - layouts: - footer: - copyright_html: Copyright © 2005‑2022, The Board of Trustees of Leland Stanford Junior University. All rights reserved. - grant_html: > - %{site} is currently being developed within French ANR D2KAB project (ANR-18-CE23-0017). It also receives or received support from ANR SIFR project (ANR-12-JS02-0010), European Union H2020-MSCA SIFRm project (No 701771), the NUMEV Labex (ANR-10-LABX-20), the IBC of Montpellier project (ANR-11-BINF0002), the Agro Labex (ANR-10-LABX-0001) as well as from University of Montpellier and the CNRS. - notices: - license_contact: > - For more information, email support@ontoportal.org or - visit https://ontoportal.org/licensing. - license_obtain: > - If you are the owner of this OntoPortal installation, you can visit - https://license.ontoportal.org to obtain a license. - license_expired: > - We're sorry, but the license for this OntoPortal installation has expired. If you are the owner of this OntoPortal installation, - please visit https://license.ontoportal.org to renew your license. - license_trial: - one: This installation of the OntoPortal Appliance is a trial license, which will expire in 1 day. - other: This installation of the OntoPortal Appliance is a trial license, which will expire in %{count} days. + recommend: + intro: Get recommendations for the most relevant ontologies from an excerpt of a biomedical text or a list of keywords + title: "recommender" + ontology_recommender: "Ontology Recommender" + ontology_recommendation_input: "Please paste a paragraph of text or some keywords to compute ontology recommendations." + weight_sum_greater_than_zero: "The sum of weights must be greater than zero" + weights_greater_than_zero: "All weights must be greater than or equal to zero" + valid_numeric_weights: "All weights must be valid numeric values" + valid_integer_max_ontologies_per_set: "Max ontologies per set must be a valid integer value" + valid_max_ontologies_per_set_range: "Max ontologies per set must be a number between 2 and 4" + recommendation_error: "Problem retrieving recommendations, please try again" + no_recommendations: "No recommendations found" + no_sets_recommended: "There are no recommended ontology sets for the provided input. Please try the 'Ontologies' output." + text_length_limit: "Please use less than 500 words. If you need to annotate longer pieces of text, you can use the recommendation web service." - home: - index: - find_ontology_placeholder: Start typing ontology name, then choose from list - query_placeholder: Enter a class, e.g. Melanoma - tagline: the world's most comprehensive repository of biomedical ontologies - title: Welcome to the %{organization} - welcome: Welcome to %{site}, - help: - welcome: Welcome to the National Center for Biomedical Ontology’s %{site}. %{site} is a web-based application for accessing and sharing biomedical ontologies. - getting_started: > - %{site} allows users to browse, upload, download, search, comment on, and create mappings for ontologies. - browse: > - Users can browse and explore individual ontologies by navigating either a tree structure or an animated graphical view. Users can also view mappings and - ontology metadata, and download ontologies. Additionally, users who are signed in may submit a new ontology to the library. - rest_examples_html: View documentation and examples of the %{site} REST API. - announce_list_html: > - To receive notices of new releases or site outages, please subscribe to the - bioontology-support list. + mappings: + title: "Correspondences" + upload_mappings: "Upload mappings" + mappings_bulk_load: "Mapping Bulk Load" + intro: "Browse mappings between classes of different ontologies" + no_mappings_available: "No mappings available" + loading_mappings: "Loading mappings..." + find_mappings: "Find mappings of a class/concept" + view_mappings_help: "View mappings help" + select_class: "Start typing to select a class" + select_ontologies: "Start typing to select ontologies or leave blank to use all ontologies" + select_semantic_types: "Select UMLS semantic types" + select_semantic_types_help: "Start typing to select UMLS semantic types or leave blank to use all types" + select_semantic_groups: "Select UMLS semantic groups" + select_semantic_groups_help: "Start typing to select UMLS semantic groups or leave blank to use all groups" + include_ancestors_up_to_level: "Include ancestors up to level" + include_score: "Include score" annotator: - index: - intro: Get annotations for biomedical text with classes from the ontologies - annotatorplus_html: Check out AnnotatorPlus beta; a new version of the Annotator with added support for negation, and more! - fast_context: - tooltip: "Enable FastContext to detect : if a concept has been negated (affirmed, negated), who experienced the found concept (patient, other), when the annotated concept occurred (recent, historical, hypothetical), and/or if the annotated concept is uncertain (certain, uncertain)." - lemmatize: - tooltip: "Enable Lemmatize to lemmatize the submitted text and use a lemmatized dictionary for the annotations" - sample_text: Melanoma is a malignant tumor of melanocytes which are found predominantly in skin but also in the bowel and the eye. + title: "Annotator" + get_annotator: "Get annotations" + filters: + match_longest_only: "Match longest only" + match_partial_words: "Recognize partial words" + include_mappings: "Include Mappings" + exclude_numbers: "Exclude Numbers" + exclude_synonyms: "Exclude synonyms" + max_hierarchy_level: "Include ancestors up to level" + score: "Include score" + score_help: "Score annotations following previous NCBO 2009 measure (old) or Score annotations following C-Value measure (cvalue) or Score annotations following C-Value measure with hierarchy expansion (cvalueh)" + score_threshold: "Filter by score threshold" + score_threshold_help: "Specify minimum score value for annotations" + confidence_threshold: "Filter Confidence Threshold" + confidence_threshold_help: "Specify the minimum position in the score distribution (between 1 and 100)" + recognizer recognizer: "entity recognition tool" + start_typing_to_select: "Start typing to select %{type} or leave blank to use all" + select: "Select %{name}" + enter_or_paste_text: "Enter or paste text to annotate" + fast_context: "FastContext" + lemmatize: "Lemmatize" + annotations_result: "Annotations" + results_filtered_by: "Results are filtered by" - nbco_annotatosplus: - index: - intro: > - The NCBO Annotator+ is a proxy calling the NCBO Annotator Web service on the NCBO BioPortal. -

- Tchechmedjiev, A., Abdaoui, A., Emonet, V., Melzi, S., Jonnagaddala, J., & Jonquet, C. (2018). Enhanced functionalities for annotating and indexing clinical text with the NCBO Annotator+. Bioinformatics, 34(11), 1962-1965. -

- If using the API, please provide a valid NCBO BioPortal apikey and hit the service at http://services.bioportal.lirmm.fr/ncbo_annotatorplus
- Text submitted to the NCBO Annotator+ must be in English. - sample_text: Melanoma is a malignant tumor of melanocytes which are found predominantly in skin but also in the bowel and the eye. + umls: + semantic_types: "UMLS Semantic Types" + semantic_groups: "UMLS Semantic Groups" + index: + intro: Get annotations for biomedical text with ontology classes + annotatorplus_html: Check out the beta version of AnnotatorPlus; a new version of the Annotator with added support for negation, and more! + fast_context: + tooltip: "Enable FastContext to detect: if a concept was denied (affirmed, denied), who experienced the found concept (patient, other), when the annotated concept occurred (recent, historical, hypothetical), and/ or if the annotated concept is uncertain (certain, uncertain)." + lemmatize: + tooltip: "Enable Lemmatize to lemmatize submitted text and use a lemmatized dictionary for annotations" + sample_text: Melanoma is a malignant tumor of melanocytes found mainly in the skin but also in the intestine and the eye. - recommender: - intro: Get recommendations for the most relevant ontologies based on an excerpt from a biomedical text or a list of keywords + layout: + header: + browse: "Browse" + search: "Search" + mappings: "Mappings" + recommend: "Recommend" + annotator: "Annotator" + ncbo_annotator_plus: "NCBO Annotator+" + projects: "Projects" + landscape: "Landscape" + login: "Login" + account_setting: "Account Settings" + submit_feedback: "Send Feedback" + help: "Help" + release_notes: "Release Notes" + publications: "Publications" + footer: + products: "Products" + copyright_html: Copyright © 2005-2022, Leland Stanford Junior University Board of Trustees. All rights reserved. + grant_html: > + %{site} is currently being developed as part of the ANR D2KAB project (ANR-18-CE23-0017). It receives or has also received support from the ANR SIFR project (ANR-12-JS02-0010), European Union Project H2020-MSCA SIFRm (N° 701771), the Labex NUMEV (ANR-10-LABX-20), the Montpellier IBC project (ANR-11 -BINF0002) , the Agro Labex (ANR-10-LABX-0001) as well than the University of Montpellier and the CNRS. + notes: + license_contact: > + For more information, email support@ontoportal.org or + visit https://ontoportal.org/licensing. + license_obtain: > + If you are the owner of this OntoPortal installation, you can visit + https://license.ontoportal.org to obtain a license. + license_expired: > + We're sorry, but the license for this OntoPortal installation has expired. If you are the owner of this OntoPortal installation, + please visit https://license.ontoportal.org to renew your license. + license_trial: + one: This OntoPortal appliance installation is a trial license, which will expire in 1 day. + other: This OntoPortal appliance installation is a trial license, which will expire in %{count} days. + # Other - search: - index: - intro: Search for a class in multiple ontologies - search_keywords_placeholder: Enter a class, e.g. Melanoma - categories_placeholder: Start typing to select categories or leave blank to use all - property_definition: Named association between two entities. Examples are "definition" (a relation between a class and some text) and "part-of" (a relation between two classes). - obsolete_definition: > - A class that the authors of the ontology have flagged as being obsolete and which they recommend that people not use. These classes - are often left in ontologies (rather than removing them entirely) so that existing systems that depend on them will continue to function. + about: > +
+

Summary

+

+ Many vocabularies and ontologies are produced to represent and annotate agronomic data. It is therefore necessary to have a common platform to identify them, host them and use them in agro-informatics applications. The AgroPortal project aims to provide a repository of reference ontologies for agronomy, by reusing the NCBO BioPortal technology. The scientific results and the experience of the biomedical field are thus exploited and transposed in the field of agronomy, including plants, food, the environment and possibly animal sciences. We propose an ontology portal that offers ontology hosting, search, versioning, visualization, commenting, recommendation, allows semantic annotation, as well as storing and exploiting alignments of ontologies. All this in an infrastructure fully compliant with the Semantic Web. The AgroPortal project pays particular attention to meeting the requirements of the agronomic community in terms of ontology formats (e.g. SKOS, trait dictionaries) or supported functionalities. The AgroPortal project is based on five agronomic use cases that participate in the design and orientation of the platform. AgroPortal already offers a robust and stable reference repository, of great value for the field of agronomy. +

+

Use cases

+ +
+

New Features

+

+ See the release-notes +

+
+

Partners

+

The National Center for Biomedical Ontology (NCBO), the Research Institute for Development (IRD), Research Data Alliance (RDA), + Bioversity International, Food & Agriculture Organization (FAO), Global Open Data for Agriculture & Nutrition (Godan Action), National Institute for Agronomic Research (INRA)

+

thanks

+

The AgroPortail is partly produced as part of the Semantic Indexing of French Biomedical Resources project (SIFR) + who have received funding from the EU H2020 research and innovation program under Marie Sklodowska-Curie (grant 701771) + and the National Research Agency (ANR-12-JS02-01001 grant), Labex NUMEV (ANR-10-LABX-20 grant), + the Institute of Computational Biology of Montpellier (grant ANR-11-BINF-0002) as well as by the University of Montpellier and the CNRS. + We also thank the National Center of Biomedical Ontologies for their help and the time spent with us in the deployment of the AgroPortail.

+

Team

+ To contact us: firstname.lastname@lirmm.fr +
    +
  • Clément Jonquet, researcher at LIRMM (Univ. of Montpellier, France), principal investigator of the AgroPortal project
  • +
  • Anne Toulet, researcher at LIRMM (Univ. of Montpellier, France)
  • +
  • Vincent Emonet, engineer at LIRMM (Univ. of Montpellier, France)
  • +
+
- projects: - index: - intro: Browse a selection of projects that use %{site} resources + activaterecord: + errors: + models: + license: + attributes: + encrypted_key: + invalid_license_key: is an invalid license key + no_appliance_id_for_comparison: Could not be validated. Unable to retrieve virtual appliance ID. + appliance_id_mismatch: is an appliance id mismatch + admin: + licenses: + create: + success: License renewed successfully! + + date: + formats: + year_month_day_concise: "%Y-%m-%d" # 2017-03-01 + month_day_year: "%b %-d, %Y" # Mar 1, 2017 + monthfull_day_year: "%B %-d, %Y" # March 1, 2017 + ontologies: - self: "Ontologies" - intro: Browse the library of ontologies + self: "Ontologies" + loading: Loading ontologies + intro: Browse the Ontology Library + please_wait: Please wait.. + browse: Explore + welcome_admin: Welcome admin + admin_help: This color indicates features reserved for administrators + debug_info: Debug Info + submit_new_ontology: Submit a new ontology + entry_type: Entry Type + uploaded_in_the_last: Uploaded in the last concepts: - request_term: - new_term_instructions: > -

This ontology integrates with OntoloBridge, allowing community users to suggest additions to the public ontology. Complete the template below to submit a term request directly to the ontology maintainer.

-
-

Term Label (required)
Suggested term name. If a term can be described with multiple synonyms, only list the preferred name here.

-
-
-

Term description (required)
A brief definition, description, or usage of your suggested term. Additional term synonyms may be listed in this section.

-
-
-

Superclass (required)
The parent term of the suggested term. The parent term should be an existing entry of the current ontology. The superclass can be selected directly from Bioportal's Classes tree viewer.

-
-
-

References (optional)
Provide evidence for the existence of the requested term such as Pubmed IDs of papers or links to other resources that describe the term.

-
-
-

Justification (optional)
Provide any additional information about the requested term here.

-
+ request_term: + new_term_instructions: > +

This ontology integrates with OntoloBridge, allowing community users to suggest additions to the public ontology. Complete the template below to submit a term request directly to the Ontology Manager.

+
+

Term label (required)
Suggested term name. If a term can be described with more than one synonym, enter only the preferred name here.

+
+
+

Term Description (required)
A brief definition, description, or usage of the suggested term. Synonyms of additional terms may be listed in this section.

+
+
+

Superclass (required)
The parent term of the suggested term. The parent term must be an existing entry in the current ontology. The superclass can be selected directly from the Bioportal class tree.

+
+
+

References (optional)
Provide evidence that the requested term exists, such as Pubmed IDs of articles or links to other resources describing the term.

+
+
+

Justification (optional)
Provide here any additional information about the requested term.

+
+ + # General - mappings: - title: "Mappings" - upload_mappings: "Upload Mappings" - mappings_bulk_load: "Mappings Bulk Load" - intro: Browse mappings between classes in different ontologies + showing: Display + of: of + sort: Sort + popular: Popular + name: Name + classes_count: Number of classes + instances_concepts_count: Number of instances/concepts + Notes: Notes + upload_date: Upload date + release_date: Release date + fair_score: FAIR score + search_rank: Search Rank + no_matches: No matches! + uploaded: Uploaded + view_of: View of + view: View + summary_only: Summary only + groups: Groups + categories: Categories + admins: Administrators + status: Status + no_submissions_available: No submissions available + classes: classes + + category: Category + group: Group + size: size + ontology_content: Ontology content + natural_language: Natural language + formality_levels: Formality levels + is_of_type: Is of type + missing_status: Missing Status + types: Types + artifacts: Artifacts + formats: formats + selected_ontologies: Selected ontologies + all: "All" + none: "none" + keywords: "Keywords" + keywords_separated_by_commas: "Keywords separated by commas" + see_details: "See details" + view_fair_scores_definitions: "View fair scores definitions" + get_json_version: "Get the json version" + select_ontologies: "Start typing to select ontologies or leave blank to use them all" + clear_selection: "Clear Selection" + select_from_list: "Select from list" + more: "More" + statistics: "Statistics" + average: "Average" + min: "Min" + max: "Max" + median: "Median" + slices: "Slices" + help: "Help" + or: "Or" + show_advanced_options: "Show advanced options" + insert_sample_text: "Insert sample text" + class: "Class" + filter: "Filter" + ontology: "Ontology" + type: "Type" + context: "Context" + umls_sem_type: "UMLS Sem Type" + matched_ontology: "matched ontology" + matched_class: "Matched class" + score: "Score" + negation: "negation" + experience: "Experience" + temporality: "Temporality" + certainty: "Certainty" + format_results: "Format results as " + reproduce_results: "Reproduce these results using the " + additional_parameters: "Additional Parameters Explained at " + input: "Input" + text: "Text" + output: "Output" + ontology_sets: "Ontology sets" + insert_sample_input: "Insert sample input" + weights_configuration: "Weights Configuration" + coverage: "Coverage" + accept: "Accept" + knowledge_detail: "Knowledge Detail" + specialization: "Specialization" + max_ontologies_per_set: "Maximum number of ontologies per set" + paste_input_text: "Paste a paragraph of text or keywords to use in calculating ontology recommendations" + get_recommendations: "Get recommendations" + select_ontologies_list: "Select ontologies" \ No newline at end of file From ecd4e50adad1cd8fcf0672be23ae7ec68f6e8f39 Mon Sep 17 00:00:00 2001 From: HADDAD Zineddine Date: Sat, 22 Apr 2023 16:19:49 +0200 Subject: [PATCH 22/29] wip (ontology/name page) --- .../ontologies/_additional_metadata.html.haml | 2 +- .../ontologies/sections/_metadata.html.haml | 82 +++++++++---------- config/locales/fr.yml | 47 +++++++++++ 3 files changed, 89 insertions(+), 42 deletions(-) diff --git a/app/views/ontologies/_additional_metadata.html.haml b/app/views/ontologies/_additional_metadata.html.haml index dab2314def..ed48690b5f 100644 --- a/app/views/ontologies/_additional_metadata.html.haml +++ b/app/views/ontologies/_additional_metadata.html.haml @@ -1,6 +1,6 @@ -# Additional Metadata pane %section.ont-metadata-card.ont-additional-metadata-card %header.pb-2.font-weight-bold - Additional Metadata + = t('ontology_details.metadata.additional_metadata') %table.table.table-sm = raw additional_metadata(@submission_latest) unless @submission_latest.nil? diff --git a/app/views/ontologies/sections/_metadata.html.haml b/app/views/ontologies/sections/_metadata.html.haml index 46c942e612..a046a3f62a 100644 --- a/app/views/ontologies/sections/_metadata.html.haml +++ b/app/views/ontologies/sections/_metadata.html.haml @@ -2,21 +2,21 @@ %div.ont-metadata -# Details pane %section.ont-metadata-card.ont-details-card - %header.pb-2.font-weight-bold Details + %header.pb-2.font-weight-bold= t('ontology_details.metadata.details') %table.table.table-sm %tr - %td Acronym + %td= t('ontology_details.metadata.acronym') %td= @ontology.acronym %tr - %td Visibility + %td= t('ontology_details.metadata.visibility') %td= strip_links(visibility_link(@ontology)) - if @ontology.viewing_restricted? %tr - %td Viewing restriction + %td= t('ontology_details.metadata.viewing_restriction') %td= @ontology.viewingRestriction.capitalize - unless @ontology.viewOf.nil? %tr - %td View of ontology + %td= t('ontology_details.metadata.view_of_ontology') %td - ont_parent_acronym = @ontology.viewOf.split('/').last - if $PURL_ENABLED @@ -26,32 +26,32 @@ = link_to(ont_parent_acronym, ont_url) - unless @submission_latest.nil? %tr - %td Description + %td= t('ontology_details.metadata.description') %td= sanitize(@submission_latest.description) %tr - %td Status + %td= t('ontology_details.metadata.status') %td= @submission_latest.status.capitalize unless @submission_latest.status.nil? %tr - %td Format + %td= t('ontology_details.metadata.format') %td= @submission_latest.hasOntologyLanguage %tr - %td Contact + %td= t('ontology_details.metadata.contact') %td= raw @submission_latest.contact.map {|c| [c.name, c.email].join(", ") if c.member?(:name) && c.member?(:email)}.join("
") - categories_hash = LinkedData::Client::Models::Category.all_to_hash - categories = @ontology.hasDomain - unless categories.empty? %tr - %td Categories + %td= t('ontology_details.metadata.categories') %td= categories.map {|c| categories_hash[c].name}.sort.join(", ") - groups_hash = LinkedData::Client::Models::Group.all_to_hash - groups = @ontology.group - unless groups.empty? %tr - %td Groups + %td= t('ontology_details.metadata.groups') %td= groups.map {|g| groups_hash[g].name}.sort.join(", ") - if @ontology.admin?(session[:user]) %tr - %td Pull URL + %td= t('ontology_details.metadata.pull_url') %td = link_to @submission_latest.pullLocation, @submission_latest.pullLocation = raw additional_details @@ -61,12 +61,12 @@ -# Submissions pane %section.ont-metadata-card.ont-subs-card %div.ont-section-toolbar - %header.pb-2.font-weight-bold Submissions + %header.pb-2.font-weight-bold= t('ontology_details.metadata.submissions') - if @ontology.admin?(session[:user]) - = link_to(new_ontology_submission_path(@ontology.acronym), "aria-label": "Add submission", title: "Add submission") do + = link_to(new_ontology_submission_path(@ontology.acronym), "aria-label": t('ontology_details.metadata.add_submission'), title: t('ontology_details.metadata.add_submission')) do %i.fas.fa-lg.fa-plus-circle{"aria-hidden": "true", style: "margin-left: 0.75rem;"} - unless (@submission_latest.nil? || (@submission_latest.respond_to?(:status) && @submission_latest.status == 404)) - = link_to(edit_ontology_submission_path(@ontology.acronym, @submission_latest.submissionId), "aria-label": "Edit latest submission", title: "Edit latest submission") do + = link_to(edit_ontology_submission_path(@ontology.acronym, @submission_latest.submissionId), "aria-label": t('ontology_details.metadata.edit_latest_submission'), title: t('ontology_details.metadata.edit_latest_submission')) do %i.fas.fa-user-edit{"aria-hidden": "true", style: "margin-left: 0.5rem;"} = render TurboFrameComponent.new(id: 'ontology_submissions', src: ontology_submissions_path(@ontology.acronym)) @@ -75,17 +75,17 @@ - unless @ontology.view? %section.ont-metadata-card.ont-views-card %div.ont-section-toolbar - %header.pb-2.font-weight-bold= "Views of #{@ontology.acronym}" + %header.pb-2.font-weight-bold= "#{t('ontology_details.metadata.views_of')} #{@ontology.acronym}" - ont_id_esc = CGI.escape(@ontology.id) -# TODO: I don't think we should have brackets in the URL parameters. - if session[:user].nil? - %a{href: "/login?redirect=#{escape("/ontologies/new?ontology[viewOf]=#{ont_id_esc}")}", "aria-label": "Create new view", title: "Create new view"} + %a{href: "/login?redirect=#{escape("/ontologies/new?ontology[viewOf]=#{ont_id_esc}")}", "aria-label": t('ontology_details.metadata.create_new_view'), title: t('ontology_details.metadata.create_new_view')} %i.fas.fa-lg.fa-plus-circle{"aria-hidden": "true", style: "margin-left: 0.5rem;"} - else %a{href: "/ontologies/new?ontology[viewOf]=#{ont_id_esc}"} %i.fas.fa-lg.fa-plus-circle{"aria-hidden": "true", style: "margin-left: 0.5rem;"} - if @views.empty? - %p.font-italic= "No views of #{@ontology.acronym} available" + %p.font-italic= t('ontology_details.metadata.no_views_of', name: @ontology.acronym) - else %div.border-top %dl @@ -98,20 +98,20 @@ -# Misc links pane %section.ont-metadata-card.ont-links-card %div.ont-section-toolbar - %header.pb-2.font-weight-bold Links - %a{:href => "#{(@submission_latest || @ontology).id}?display=all", :target => '_blank', :class => "btn btn-primary"} Go to the REST API JSON entry + %header.pb-2.font-weight-bold= t('ontology_details.metadata.links') + %a{:href => "#{(@submission_latest || @ontology).id}?display=all", :target => '_blank', :class => "btn btn-primary"}= t('ontology_details.metadata.go_to_rest_api_json_entry') -# Metadata links pane %section.ont-metadata-card.ont-metadatalinks-card %div.ont-section-toolbar - %header.pb-2.font-weight-bold Get my metadata back + %header.pb-2.font-weight-bold= t('ontology_details.metadata.get_my_metadata_back') %div - unless @submission_latest.nil? %div{data:{controller: 'metadata-downloader'}} =javascript_include_tag "jsonld" - %button{:id => "getMetadataBackNquadsBtn", :class => "btn btn-primary", 'data-action': 'metadata-downloader#downloadNQuads'} N-Triple - %button{:id => "getMetadataBackJsonldBtn", :class => "btn btn-primary", 'data-action': 'metadata-downloader#downloadJsonLd'} Json-LD - %button{:id => "getMetadataBackXmlBtn", :class => "btn btn-primary", 'data-action': 'metadata-downloader#downloadXML'} RDF/XML + %button{:id => "getMetadataBackNquadsBtn", :class => "btn btn-primary", 'data-action': 'metadata-downloader#downloadNQuads'}= t('ontology_details.metadata.n_triple') + %button{:id => "getMetadataBackJsonldBtn", :class => "btn btn-primary", 'data-action': 'metadata-downloader#downloadJsonLd'}= t('ontology_details.metadata.json_ld') + %button{:id => "getMetadataBackXmlBtn", :class => "btn btn-primary", 'data-action': 'metadata-downloader#downloadXML'}= t('ontology_details.metadata.rdf_xml') -# Listener in bp_ontology_viewer.js.erb -# Fair score pane -# TODO temporary hide fairness_service for AGROVOC after there demand @@ -126,46 +126,46 @@ -# Metrics pane %section.ont-metadata-card.ont-metrics-card %div.ont-section-toolbar - %header.pb-2.font-weight-bold Metrics - = link_to(Rails.configuration.settings.links[:metrics], target: "_blank", "aria-label": "View individual metrics definitions", title: "View individual metrics definitions") do + %header.pb-2.font-weight-bold= t('ontology_details.metadata.metrics') + = link_to(Rails.configuration.settings.links[:metrics], target: "_blank", "aria-label": t('ontology_details.metadata.view_individual_metrics_definitions'), title: t('ontology_details.metadata.view_individual_metrics_definitions')) do %i.fas.fa-lg.fa-question-circle{"aria-hidden": "true", style: "margin-left: 0.5rem"} - if @metrics.nil? || (@metrics.is_a?(Array) && @metrics.empty?) || (@metrics.respond_to?(:status) && @metrics.status == 404) - %p.font-italic= "We have not yet calculated metrics for #{@ontology.acronym}" + %p.font-italic= "#{t('ontology_details.metadata.metrics_not_calculated_yet')} #{@ontology.acronym}" - else %table.table.table-sm %tr - %td Classes + %td= t('ontology_details.metadata.classes') %td{style: "text-align: right"}= number_with_delimiter(@metrics.classes) %tr - %td Individuals + %td= t('ontology_details.metadata.individuals') %td= number_with_delimiter(@metrics.individuals) %tr - %td Properties + %td= t('ontology_details.metadata.properties') %td= number_with_delimiter(@metrics.properties) %tr - %td Maximum depth + %td= t('ontology_details.metadata.max_depth') %td= number_with_delimiter(@metrics.maxDepth) %tr - %td Maximum number of children + %td= t('ontology_details.metadata.max_children') %td= number_with_delimiter(@metrics.maxChildCount) %tr - %td Average number of children + %td= t('ontology_details.metadata.avg_children') %td= number_with_delimiter(@metrics.averageChildCount) %tr - %td Classes with a single child + %td= t('ontology_details.metadata.single_child_classes') %td= number_with_delimiter(@metrics.classesWithOneChild) %tr - %td Classes with more than 25 children + %td= t('ontology_details.metadata.many_children_classes') %td= number_with_delimiter(@metrics.classesWithMoreThan25Children) %tr - %td Classes with no definition + %td= t('ontology_details.metadata.no_definition_classes') %td= number_with_delimiter(@metrics.classesWithNoDefinition) -# Visits pane %section.ont-metadata-card.ont-analytics-card %div.ont-section-toolbar - %header.pb-2.font-weight-bold Visits + %header.pb-2.font-weight-bold= t('ontology_details.metadata.visits') - if visits_data(@ontology) - = link_to(@ontology.links["analytics"] + "?apikey=#{get_apikey}&format=csv", "aria-label": "Download as CSV", title: "Download as CSV") do + = link_to(@ontology.links["analytics"] + "?apikey=#{get_apikey}&format=csv", "aria-label": t('ontology_details.metadata.download_as_csv'), title: t('ontology_details.metadata.download_as_csv')) do %i.fas.fa-lg.fa-download{"aria-hidden": "true", style: "margin-left: 0.5rem"} = render partial: "visits" @@ -177,11 +177,11 @@ -# Projects pane %section.ont-metadata-card.ont-projects-card %div.ont-section-toolbar - %header.pb-2.font-weight-bold= "Projects using #{@ontology.acronym}" - = link_to(new_project_path(), "aria-label": "Create new project", title: "Create new project") do + %header.pb-2.font-weight-bold= "#{t('ontology_details.metadata.projects_using')} #{@ontology.acronym}" + = link_to(new_project_path(), "aria-label": t('ontology_details.metadata.create_new_project'), title: t('ontology_details.metadata.create_new_project')) do %i.fas.fa-lg.fa-plus-circle{"aria-hidden": "true", style: "margin-left: 0.5rem"} - if @projects.empty? - %p.font-italic= "No projects using #{@ontology.acronym}" + %p.font-italic= "#{t('ontology_details.metadata.no_projects_using')} #{@ontology.acronym}" - else %div.border-top - for project in @projects diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 4e60754eef..afbc1433ab 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -280,6 +280,53 @@ fr: tooltip: "Activez Lemmatize pour lemmatiser le texte soumis et utiliser un dictionnaire lemmatisé pour les annotations" sample_text: Le mélanome est une tumeur maligne des mélanocytes qui se trouvent principalement dans la peau mais aussi dans l'intestin et l'œil. + ontology_details: + metadata: + details: "Détails" + acronym: "Acronym" + visibility: "Visibilité" + viewing_restriction: "Restriction de visualisation" + view_of_ontology: "Vue de l'ontologie" + description: "Description" + status: "Statut" + format: "Format" + contact: "Contact" + categories: "Catégories" + groups: "Groupes" + pull_url: "URL de pull" + submissions: "Soumissions" + links: "Liens" + add_submission: "Ajouter une soumission" + views_of: "Vues de" + create_new_view: "Créer une nouvelle vue" + no_views_of: "Aucune vue de %{name} disponible" + go_to_rest_api_json_entry: "Accéder à l'entrée JSON de l'API REST" + get_my_metadata_back: "Récupérer mes métadonnées" + n_triple: "N-Triple" + json_ld: "JSON-LD" + rdf_xml: "RDF/XML" + view_individual_metrics_definitions: "Voir les définitions de métriques individuelles" + metrics: "Métriques" + metrics_not_calculated_yet: "Nous n'avons pas encore calculé de métriques pour" + classes: "Classes" + individuals: "Individus" + properties: "Propriétés" + max_depth: "Profondeur maximale" + max_children: "Nombre maximum d'enfants" + avg_children: "Nombre moyen d'enfants" + single_child_classes: "Classes avec un seul enfant" + many_children_classes: "Classes avec plus de 25 enfants" + no_definition_classes: "Classes sans définition" + visits: "Visites" + download_as_csv: "Télécharger en CSV" + projects_using: "Projets utilisant" + no_projects_using: "Aucun projet n'utilise" + create_new_project: "Créer un nouveau projet" + additional_metadata: "Métadonnées supplémentaires" + + + + layout: header: browse: "Parcourir" From 70183a85feaf66ee8c348f1f9b27f60eb4aa2a8d Mon Sep 17 00:00:00 2001 From: HADDAD Zineddine Date: Sat, 22 Apr 2023 16:21:57 +0200 Subject: [PATCH 23/29] Update en.yml --- config/locales/en.yml | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/config/locales/en.yml b/config/locales/en.yml index 254fa1fd64..9eb880e338 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -270,6 +270,51 @@ en: tooltip: "Enable Lemmatize to lemmatize submitted text and use a lemmatized dictionary for annotations" sample_text: Melanoma is a malignant tumor of melanocytes found mainly in the skin but also in the intestine and the eye. + + ontology_details: + metadata: + details: "Details" + acronym: "Acronym" + visibility: "Visibility" + viewing_restriction: "Viewing Restriction" + view_of_ontology: "View of ontology" + description: "Description" + status: "Status" + format: "Format" + contact: "Contact" + categories: "Categories" + groups: "Groups" + pull_url: "Pull URL" + submissions: "Submissions" + links: "Links" + add_submission: "Add Submission" + views_of: "Views of" + create_new_view: "Create a new view" + no_views_of: "No views of %{name} available" + go_to_rest_api_json_entry: "Go to REST API JSON Entry" + get_my_metadata_back: "Get my metadata back" + n_triple: "N-Triple" + json_ld: "JSON-LD" + rdf_xml: "RDF/XML" + view_individual_metrics_definitions: "View individual metrics definitions" + metrics: "Metrics" + metrics_not_calculated_yet: "We have not yet calculated metrics for" + classes: "Classes" + individuals: "Individuals" + properties: "Properties" + max_depth: "Maximum depth" + max_children: "Maximum number of children" + avg_children: "Average number of children" + single_child_classes: "Classes with a single child" + many_children_classes: "Classes with more than 25 children" + no_definition_classes: "Classes without definition" + visits: "Visits" + download_as_csv: "Download as CSV" + projects_using: "Projects Using" + no_projects_using: "No projects are using" + create_new_project: "Create a new project" + additional_metadata: "Additional Metadata" + layout: header: browse: "Browse" From d460c089a6a7fb0821ae2d40ddc848a7a12795c1 Mon Sep 17 00:00:00 2001 From: HADDAD Zineddine Date: Sun, 23 Apr 2023 15:15:43 +0200 Subject: [PATCH 24/29] add footer translation feature --- config/locales/en.yml | 505 ++++++++++++++++++++++-------------------- config/locales/fr.yml | 27 ++- 2 files changed, 278 insertions(+), 254 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 9eb880e338..9626a94a0d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,5 +1,4 @@ en: - nbco_annotatosplus: score_help: "Score annotations following previous NCBO 2009 measure (old) or Score annotations following C-Value measure (cvalue) or Score annotations following C-Value measure with hierarchy expansion (cvalueh)" start_typing_to_select: "Start typing to select %{type} or leave blank to use all" @@ -67,7 +66,6 @@ en: confidence_threshold_help: "Specify the minimum position in the scores distribution (between 1 and 100)" entity_recognizer: "entity recognition tool" - index: title: "NCBO Annotator +" intro: > @@ -125,7 +123,6 @@ en: index: intro: "Browse a selection of projects that use %{site} resources" - landscape: title: "%{site} Landscape" intro: Visualize data retrieved from ontologies stored in the portal @@ -166,39 +163,39 @@ en: size: Size home: - find_ontology: "Find an ontology" - search_class: "Search Class" - browse_by_group: "Browse by Group" - browse_ontologies: "Browse ontologies" - comprehensive_repository: "the most comprehensive repository of biomedical ontologies in the world" - advanced_search: "Advanced Search" - ontology_visits: "Ontology visits" - fair_scores: "FAIR Scores" - clear_selection: "Clear Selection" - latest_notes: "Latest Notes" - ontologies: "Ontologies" - classes: "Classes" - individuals: "People" - projects: "Projects" - users: "Users" - no_recent_notes: "No recent notes were submitted" - index: - find_ontology_placeholder: Start typing the ontology name, then choose from - query_placeholder: Enter a class, eg Melanoma - tagline: the world's most comprehensive repository of biomedical ontologies - title: Welcome to the %{organization} - welcome: Welcome to the %{site}, - help: - welcome: Welcome to the %{site} of the National Center for Biomedical Ontology. %{site} is a web application for accessing and sharing biomedical ontologies. - getting_started: > - %{site} allows users to browse, upload, download, search, comment, and create mappings for ontologies. - browse: > - Users can browse and explore individual ontologies by navigating either in a tree structure or in an animated graphical view. Users can also view mappings and - ontology metadata and ontology download. Additionally, logged in users can submit a new ontology to the library. - rest_examples_html: View documentation and examples for the %{site} REST API. - announce_list_html: > - To receive notices of new releases or site outages, please subscribe to - bioontology support list. + find_ontology: "Find an ontology" + search_class: "Search Class" + browse_by_group: "Browse by Group" + browse_ontologies: "Browse ontologies" + comprehensive_repository: "the most comprehensive repository of biomedical ontologies in the world" + advanced_search: "Advanced Search" + ontology_visits: "Ontology visits" + fair_scores: "FAIR Scores" + clear_selection: "Clear Selection" + latest_notes: "Latest Notes" + ontologies: "Ontologies" + classes: "Classes" + individuals: "People" + projects: "Projects" + users: "Users" + no_recent_notes: "No recent notes were submitted" + index: + find_ontology_placeholder: Start typing the ontology name, then choose from + query_placeholder: Enter a class, eg Melanoma + tagline: the world's most comprehensive repository of biomedical ontologies + title: Welcome to the %{organization} + welcome: Welcome to the %{site}, + help: + welcome: Welcome to the %{site} of the National Center for Biomedical Ontology. %{site} is a web application for accessing and sharing biomedical ontologies. + getting_started: > + %{site} allows users to browse, upload, download, search, comment, and create mappings for ontologies. + browse: > + Users can browse and explore individual ontologies by navigating either in a tree structure or in an animated graphical view. Users can also view mappings and + ontology metadata and ontology download. Additionally, logged in users can submit a new ontology to the library. + rest_examples_html: View documentation and examples for the %{site} REST API. + announce_list_html: > + To receive notices of new releases or site outages, please subscribe to + bioontology support list. recommend: intro: Get recommendations for the most relevant ontologies from an excerpt of a biomedical text or a list of keywords @@ -216,235 +213,251 @@ en: text_length_limit: "Please use less than 500 words. If you need to annotate longer pieces of text, you can use the recommendation web service." mappings: - title: "Correspondences" - upload_mappings: "Upload mappings" - mappings_bulk_load: "Mapping Bulk Load" - intro: "Browse mappings between classes of different ontologies" - no_mappings_available: "No mappings available" - loading_mappings: "Loading mappings..." - find_mappings: "Find mappings of a class/concept" - view_mappings_help: "View mappings help" - select_class: "Start typing to select a class" - select_ontologies: "Start typing to select ontologies or leave blank to use all ontologies" - select_semantic_types: "Select UMLS semantic types" - select_semantic_types_help: "Start typing to select UMLS semantic types or leave blank to use all types" - select_semantic_groups: "Select UMLS semantic groups" - select_semantic_groups_help: "Start typing to select UMLS semantic groups or leave blank to use all groups" - include_ancestors_up_to_level: "Include ancestors up to level" - include_score: "Include score" + title: "Correspondences" + upload_mappings: "Upload mappings" + mappings_bulk_load: "Mapping Bulk Load" + intro: "Browse mappings between classes of different ontologies" + no_mappings_available: "No mappings available" + loading_mappings: "Loading mappings..." + find_mappings: "Find mappings of a class/concept" + view_mappings_help: "View mappings help" + select_class: "Start typing to select a class" + select_ontologies: "Start typing to select ontologies or leave blank to use all ontologies" + select_semantic_types: "Select UMLS semantic types" + select_semantic_types_help: "Start typing to select UMLS semantic types or leave blank to use all types" + select_semantic_groups: "Select UMLS semantic groups" + select_semantic_groups_help: "Start typing to select UMLS semantic groups or leave blank to use all groups" + include_ancestors_up_to_level: "Include ancestors up to level" + include_score: "Include score" annotator: - title: "Annotator" - get_annotator: "Get annotations" - filters: - match_longest_only: "Match longest only" - match_partial_words: "Recognize partial words" - include_mappings: "Include Mappings" - exclude_numbers: "Exclude Numbers" - exclude_synonyms: "Exclude synonyms" - max_hierarchy_level: "Include ancestors up to level" - score: "Include score" - score_help: "Score annotations following previous NCBO 2009 measure (old) or Score annotations following C-Value measure (cvalue) or Score annotations following C-Value measure with hierarchy expansion (cvalueh)" - score_threshold: "Filter by score threshold" - score_threshold_help: "Specify minimum score value for annotations" - confidence_threshold: "Filter Confidence Threshold" - confidence_threshold_help: "Specify the minimum position in the score distribution (between 1 and 100)" - recognizer recognizer: "entity recognition tool" - start_typing_to_select: "Start typing to select %{type} or leave blank to use all" - select: "Select %{name}" - enter_or_paste_text: "Enter or paste text to annotate" - fast_context: "FastContext" - lemmatize: "Lemmatize" - annotations_result: "Annotations" - results_filtered_by: "Results are filtered by" + title: "Annotator" + get_annotator: "Get annotations" + filters: + match_longest_only: "Match longest only" + match_partial_words: "Recognize partial words" + include_mappings: "Include Mappings" + exclude_numbers: "Exclude Numbers" + exclude_synonyms: "Exclude synonyms" + max_hierarchy_level: "Include ancestors up to level" + score: "Include score" + score_help: "Score annotations following previous NCBO 2009 measure (old) or Score annotations following C-Value measure (cvalue) or Score annotations following C-Value measure with hierarchy expansion (cvalueh)" + score_threshold: "Filter by score threshold" + score_threshold_help: "Specify minimum score value for annotations" + confidence_threshold: "Filter Confidence Threshold" + confidence_threshold_help: "Specify the minimum position in the score distribution (between 1 and 100)" + recognizer recognizer: "entity recognition tool" + start_typing_to_select: "Start typing to select %{type} or leave blank to use all" + select: "Select %{name}" + enter_or_paste_text: "Enter or paste text to annotate" + fast_context: "FastContext" + lemmatize: "Lemmatize" + annotations_result: "Annotations" + results_filtered_by: "Results are filtered by" - umls: - semantic_types: "UMLS Semantic Types" - semantic_groups: "UMLS Semantic Groups" - index: - intro: Get annotations for biomedical text with ontology classes - annotatorplus_html: Check out the beta version of AnnotatorPlus; a new version of the Annotator with added support for negation, and more! - fast_context: - tooltip: "Enable FastContext to detect: if a concept was denied (affirmed, denied), who experienced the found concept (patient, other), when the annotated concept occurred (recent, historical, hypothetical), and/ or if the annotated concept is uncertain (certain, uncertain)." - lemmatize: - tooltip: "Enable Lemmatize to lemmatize submitted text and use a lemmatized dictionary for annotations" - sample_text: Melanoma is a malignant tumor of melanocytes found mainly in the skin but also in the intestine and the eye. + umls: + semantic_types: "UMLS Semantic Types" + semantic_groups: "UMLS Semantic Groups" + index: + intro: Get annotations for biomedical text with ontology classes + annotatorplus_html: Check out the beta version of AnnotatorPlus; a new version of the Annotator with added support for negation, and more! + fast_context: + tooltip: "Enable FastContext to detect: if a concept was denied (affirmed, denied), who experienced the found concept (patient, other), when the annotated concept occurred (recent, historical, hypothetical), and/ or if the annotated concept is uncertain (certain, uncertain)." + lemmatize: + tooltip: "Enable Lemmatize to lemmatize submitted text and use a lemmatized dictionary for annotations" + sample_text: Melanoma is a malignant tumor of melanocytes found mainly in the skin but also in the intestine and the eye. - ontology_details: - metadata: - details: "Details" - acronym: "Acronym" - visibility: "Visibility" - viewing_restriction: "Viewing Restriction" - view_of_ontology: "View of ontology" - description: "Description" - status: "Status" - format: "Format" - contact: "Contact" - categories: "Categories" - groups: "Groups" - pull_url: "Pull URL" - submissions: "Submissions" - links: "Links" - add_submission: "Add Submission" - views_of: "Views of" - create_new_view: "Create a new view" - no_views_of: "No views of %{name} available" - go_to_rest_api_json_entry: "Go to REST API JSON Entry" - get_my_metadata_back: "Get my metadata back" - n_triple: "N-Triple" - json_ld: "JSON-LD" - rdf_xml: "RDF/XML" - view_individual_metrics_definitions: "View individual metrics definitions" - metrics: "Metrics" - metrics_not_calculated_yet: "We have not yet calculated metrics for" - classes: "Classes" - individuals: "Individuals" - properties: "Properties" - max_depth: "Maximum depth" - max_children: "Maximum number of children" - avg_children: "Average number of children" - single_child_classes: "Classes with a single child" - many_children_classes: "Classes with more than 25 children" - no_definition_classes: "Classes without definition" - visits: "Visits" - download_as_csv: "Download as CSV" - projects_using: "Projects Using" - no_projects_using: "No projects are using" - create_new_project: "Create a new project" - additional_metadata: "Additional Metadata" - + metadata: + details: "Details" + acronym: "Acronym" + visibility: "Visibility" + viewing_restriction: "Viewing Restriction" + view_of_ontology: "View of ontology" + description: "Description" + status: "Status" + format: "Format" + contact: "Contact" + categories: "Categories" + groups: "Groups" + pull_url: "Pull URL" + submissions: "Submissions" + links: "Links" + add_submission: "Add Submission" + views_of: "Views of" + create_new_view: "Create a new view" + no_views_of: "No views of %{name} available" + go_to_rest_api_json_entry: "Go to REST API JSON Entry" + get_my_metadata_back: "Get my metadata back" + n_triple: "N-Triple" + json_ld: "JSON-LD" + rdf_xml: "RDF/XML" + view_individual_metrics_definitions: "View individual metrics definitions" + metrics: "Metrics" + metrics_not_calculated_yet: "We have not yet calculated metrics for" + classes: "Classes" + individuals: "Individuals" + properties: "Properties" + max_depth: "Maximum depth" + max_children: "Maximum number of children" + avg_children: "Average number of children" + single_child_classes: "Classes with a single child" + many_children_classes: "Classes with more than 25 children" + no_definition_classes: "Classes without definition" + visits: "Visits" + download_as_csv: "Download as CSV" + projects_using: "Projects Using" + no_projects_using: "No projects are using" + create_new_project: "Create a new project" + additional_metadata: "Additional Metadata" + layout: - header: - browse: "Browse" - search: "Search" - mappings: "Mappings" - recommend: "Recommend" - annotator: "Annotator" - ncbo_annotator_plus: "NCBO Annotator+" - projects: "Projects" - landscape: "Landscape" - login: "Login" - account_setting: "Account Settings" - submit_feedback: "Send Feedback" - help: "Help" - release_notes: "Release Notes" - publications: "Publications" - footer: - products: "Products" - copyright_html: Copyright © 2005-2022, Leland Stanford Junior University Board of Trustees. All rights reserved. - grant_html: > - %{site} is currently being developed as part of the ANR D2KAB project (ANR-18-CE23-0017). It receives or has also received support from the ANR SIFR project (ANR-12-JS02-0010), European Union Project H2020-MSCA SIFRm (N° 701771), the Labex NUMEV (ANR-10-LABX-20), the Montpellier IBC project (ANR-11 -BINF0002) , the Agro Labex (ANR-10-LABX-0001) as well than the University of Montpellier and the CNRS. - notes: - license_contact: > - For more information, email support@ontoportal.org or - visit https://ontoportal.org/licensing. - license_obtain: > - If you are the owner of this OntoPortal installation, you can visit - https://license.ontoportal.org to obtain a license. - license_expired: > - We're sorry, but the license for this OntoPortal installation has expired. If you are the owner of this OntoPortal installation, - please visit https://license.ontoportal.org to renew your license. - license_trial: - one: This OntoPortal appliance installation is a trial license, which will expire in 1 day. - other: This OntoPortal appliance installation is a trial license, which will expire in %{count} days. + header: + browse: "Browse" + search: "Search" + mappings: "Mappings" + recommend: "Recommend" + annotator: "Annotator" + ncbo_annotator_plus: "NCBO Annotator+" + projects: "Projects" + landscape: "Landscape" + login: "Login" + account_setting: "Account Settings" + submit_feedback: "Send Feedback" + help: "Help" + release_notes: "Release Notes" + publications: "Publications" + footer: + products: Products + ontoportal: OntoPortal + release_notes: Release Notes + api: API + sparql: SPARQL + support: Support + contact_us: Contact Us + wiki: Wiki + documentation: Documentation + agreements: Agreements + terms: Terms + privacy_policy: Privacy Policy + cite_us: Cite Us + acknowledgments: Acknowledgments + about: About + about_us: About Us + projects: Projects + team: Team + copyright_html: Copyright © 2005-2022, Leland Stanford Junior University Board of Trustees. All rights reserved. + grant_html: > + %{site} is currently being developed as part of the ANR D2KAB project (ANR-18-CE23-0017). It receives or has also received support from the ANR SIFR project (ANR-12-JS02-0010), European Union Project H2020-MSCA SIFRm (N° 701771), the Labex NUMEV (ANR-10-LABX-20), the Montpellier IBC project (ANR-11 -BINF0002) , the Agro Labex (ANR-10-LABX-0001) as well than the University of Montpellier and the CNRS. + notes: + license_contact: > + For more information, email support@ontoportal.org or + visit https://ontoportal.org/licensing. + license_obtain: > + If you are the owner of this OntoPortal installation, you can visit + https://license.ontoportal.org to obtain a license. + license_expired: > + We're sorry, but the license for this OntoPortal installation has expired. If you are the owner of this OntoPortal installation, + please visit https://license.ontoportal.org to renew your license. + license_trial: + one: This OntoPortal appliance installation is a trial license, which will expire in 1 day. + other: This OntoPortal appliance installation is a trial license, which will expire in %{count} days. # Other about: > -
-

Summary

-

- Many vocabularies and ontologies are produced to represent and annotate agronomic data. It is therefore necessary to have a common platform to identify them, host them and use them in agro-informatics applications. The AgroPortal project aims to provide a repository of reference ontologies for agronomy, by reusing the NCBO BioPortal technology. The scientific results and the experience of the biomedical field are thus exploited and transposed in the field of agronomy, including plants, food, the environment and possibly animal sciences. We propose an ontology portal that offers ontology hosting, search, versioning, visualization, commenting, recommendation, allows semantic annotation, as well as storing and exploiting alignments of ontologies. All this in an infrastructure fully compliant with the Semantic Web. The AgroPortal project pays particular attention to meeting the requirements of the agronomic community in terms of ontology formats (e.g. SKOS, trait dictionaries) or supported functionalities. The AgroPortal project is based on five agronomic use cases that participate in the design and orientation of the platform. AgroPortal already offers a robust and stable reference repository, of great value for the field of agronomy. -

-

Use cases

- -
-

New Features

-

- See the release-notes -

-
-

Partners

-

The National Center for Biomedical Ontology (NCBO), the Research Institute for Development (IRD), Research Data Alliance (RDA), - Bioversity International, Food & Agriculture Organization (FAO), Global Open Data for Agriculture & Nutrition (Godan Action), National Institute for Agronomic Research (INRA)

-

thanks

-

The AgroPortail is partly produced as part of the Semantic Indexing of French Biomedical Resources project (SIFR) - who have received funding from the EU H2020 research and innovation program under Marie Sklodowska-Curie (grant 701771) - and the National Research Agency (ANR-12-JS02-01001 grant), Labex NUMEV (ANR-10-LABX-20 grant), - the Institute of Computational Biology of Montpellier (grant ANR-11-BINF-0002) as well as by the University of Montpellier and the CNRS. - We also thank the National Center of Biomedical Ontologies for their help and the time spent with us in the deployment of the AgroPortail.

-

Team

- To contact us: firstname.lastname@lirmm.fr -
    -
  • Clément Jonquet, researcher at LIRMM (Univ. of Montpellier, France), principal investigator of the AgroPortal project
  • -
  • Anne Toulet, researcher at LIRMM (Univ. of Montpellier, France)
  • -
  • Vincent Emonet, engineer at LIRMM (Univ. of Montpellier, France)
  • -
-
+
+

Summary

+

+ Many vocabularies and ontologies are produced to represent and annotate agronomic data. It is therefore necessary to have a common platform to identify them, host them and use them in agro-informatics applications. The AgroPortal project aims to provide a repository of reference ontologies for agronomy, by reusing the NCBO BioPortal technology. The scientific results and the experience of the biomedical field are thus exploited and transposed in the field of agronomy, including plants, food, the environment and possibly animal sciences. We propose an ontology portal that offers ontology hosting, search, versioning, visualization, commenting, recommendation, allows semantic annotation, as well as storing and exploiting alignments of ontologies. All this in an infrastructure fully compliant with the Semantic Web. The AgroPortal project pays particular attention to meeting the requirements of the agronomic community in terms of ontology formats (e.g. SKOS, trait dictionaries) or supported functionalities. The AgroPortal project is based on five agronomic use cases that participate in the design and orientation of the platform. AgroPortal already offers a robust and stable reference repository, of great value for the field of agronomy. +

+

Use cases

+ +
+

New Features

+

+ See the release-notes +

+
+

Partners

+

The National Center for Biomedical Ontology (NCBO), the Research Institute for Development (IRD), Research Data Alliance (RDA), + Bioversity International, Food & Agriculture Organization (FAO), Global Open Data for Agriculture & Nutrition (Godan Action), National Institute for Agronomic Research (INRA)

+

thanks

+

The AgroPortail is partly produced as part of the Semantic Indexing of French Biomedical Resources project (SIFR) + who have received funding from the EU H2020 research and innovation program under Marie Sklodowska-Curie (grant 701771) + and the National Research Agency (ANR-12-JS02-01001 grant), Labex NUMEV (ANR-10-LABX-20 grant), + the Institute of Computational Biology of Montpellier (grant ANR-11-BINF-0002) as well as by the University of Montpellier and the CNRS. + We also thank the National Center of Biomedical Ontologies for their help and the time spent with us in the deployment of the AgroPortail.

+

Team

+ To contact us: firstname.lastname@lirmm.fr +
    +
  • Clément Jonquet, researcher at LIRMM (Univ. of Montpellier, France), principal investigator of the AgroPortal project
  • +
  • Anne Toulet, researcher at LIRMM (Univ. of Montpellier, France)
  • +
  • Vincent Emonet, engineer at LIRMM (Univ. of Montpellier, France)
  • +
+
activaterecord: - errors: - models: - license: - attributes: - encrypted_key: - invalid_license_key: is an invalid license key - no_appliance_id_for_comparison: Could not be validated. Unable to retrieve virtual appliance ID. - appliance_id_mismatch: is an appliance id mismatch + errors: + models: + license: + attributes: + encrypted_key: + invalid_license_key: is an invalid license key + no_appliance_id_for_comparison: Could not be validated. Unable to retrieve virtual appliance ID. + appliance_id_mismatch: is an appliance id mismatch admin: - licenses: - create: - success: License renewed successfully! + licenses: + create: + success: License renewed successfully! date: - formats: - year_month_day_concise: "%Y-%m-%d" # 2017-03-01 - month_day_year: "%b %-d, %Y" # Mar 1, 2017 - monthfull_day_year: "%B %-d, %Y" # March 1, 2017 - + formats: + year_month_day_concise: "%Y-%m-%d" # 2017-03-01 + month_day_year: "%b %-d, %Y" # Mar 1, 2017 + monthfull_day_year: "%B %-d, %Y" # March 1, 2017 + ontologies: - self: "Ontologies" - loading: Loading ontologies - intro: Browse the Ontology Library - please_wait: Please wait.. - browse: Explore - welcome_admin: Welcome admin - admin_help: This color indicates features reserved for administrators - debug_info: Debug Info - submit_new_ontology: Submit a new ontology - entry_type: Entry Type - uploaded_in_the_last: Uploaded in the last + self: "Ontologies" + loading: Loading ontologies + intro: Browse the Ontology Library + please_wait: Please wait.. + browse: Explore + welcome_admin: Welcome admin + admin_help: This color indicates features reserved for administrators + debug_info: Debug Info + submit_new_ontology: Submit a new ontology + entry_type: Entry Type + uploaded_in_the_last: Uploaded in the last concepts: - request_term: - new_term_instructions: > -

This ontology integrates with OntoloBridge, allowing community users to suggest additions to the public ontology. Complete the template below to submit a term request directly to the Ontology Manager.

-
-

Term label (required)
Suggested term name. If a term can be described with more than one synonym, enter only the preferred name here.

-
-
-

Term Description (required)
A brief definition, description, or usage of the suggested term. Synonyms of additional terms may be listed in this section.

-
-
-

Superclass (required)
The parent term of the suggested term. The parent term must be an existing entry in the current ontology. The superclass can be selected directly from the Bioportal class tree.

-
-
-

References (optional)
Provide evidence that the requested term exists, such as Pubmed IDs of articles or links to other resources describing the term.

-
-
-

Justification (optional)
Provide here any additional information about the requested term.

-
+ request_term: + new_term_instructions: > +

This ontology integrates with OntoloBridge, allowing community users to suggest additions to the public ontology. Complete the template below to submit a term request directly to the Ontology Manager.

+
+

Term label (required)
Suggested term name. If a term can be described with more than one synonym, enter only the preferred name here.

+
+
+

Term Description (required)
A brief definition, description, or usage of the suggested term. Synonyms of additional terms may be listed in this section.

+
+
+

Superclass (required)
The parent term of the suggested term. The parent term must be an existing entry in the current ontology. The superclass can be selected directly from the Bioportal class tree.

+
+
+

References (optional)
Provide evidence that the requested term exists, such as Pubmed IDs of articles or links to other resources describing the term.

+
+
+

Justification (optional)
Provide here any additional information about the requested term.

+
# General - + showing: Display of: of sort: Sort @@ -531,4 +544,4 @@ en: max_ontologies_per_set: "Maximum number of ontologies per set" paste_input_text: "Paste a paragraph of text or keywords to use in calculating ontology recommendations" get_recommendations: "Get recommendations" - select_ontologies_list: "Select ontologies" \ No newline at end of file + select_ontologies_list: "Select ontologies" diff --git a/config/locales/fr.yml b/config/locales/fr.yml index afbc1433ab..698d988fe3 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -1,5 +1,4 @@ fr: - nbco_annotatosplus: score_help: "Annotations de score suivant la mesure NCBO 2009 précédente (ancienne) ou Annotations de score suivant la mesure C-Value (cvalue) ou Annotations de score suivant la mesure C-Value avec expansion de la hiérarchie (cvalueh)" start_typing_to_select: "Commencez à taper pour sélectionner %{type} ou laissez vide pour tout utiliser" @@ -324,9 +323,6 @@ fr: create_new_project: "Créer un nouveau projet" additional_metadata: "Métadonnées supplémentaires" - - - layout: header: browse: "Parcourir" @@ -344,7 +340,24 @@ fr: release_notes: "Notes de version" publications: "Publications" footer: - products: "Produits" + products: Produits + ontoportal: OntoPortal + release_notes: Notes de version + api: API + sparql: SPARQL + support: Support + contact_us: Nous contacter + wiki: Wiki + documentation: Documentation + agreements: Accords + terms: Conditions d'utilisation + privacy_policy: Politique de confidentialité + cite_us: Nous citer + acknowledgments: Remerciements + about: À propos + about_us: À propos de nous + projects: Projets + team: Équipe copyright_html: Droit d'auteur &copie; 2005‑2022, Conseil d'administration de l'Université Leland Stanford Junior. Tous les droits sont réservés. grant_html: > %{site} est actuellement développé dans le cadre du projet ANR D2KAB (ANR-18-CE23-0017). Il reçoit ou a également reçu le soutien du projet ANR SIFR (ANR-12-JS02-0010), Union Européenne Projet H2020-MSCA SIFRm ( N° 701771), le Labex NUMEV (ANR-10-LABX-20), le projet IBC de Montpellier (ANR-11-BINF0002) , l'Agro Labex (ANR-10-LABX-0001) ainsi que de l'Université de Montpellier et du CNRS. @@ -422,7 +435,7 @@ fr: year_month_day_concise: "%Y-%m-%d" # 2017-03-01 month_day_year: "%b %-d, %Y" # Mar 1, 2017 monthfull_day_year: "%B %-d, %Y" # March 1, 2017 - + ontologies: self: "Ontologies" loading: Chargement des ontologies @@ -544,5 +557,3 @@ fr: paste_input_text: "Collez un paragraphe de texte ou des mots-clés à utiliser dans le calcul des recommandations d'ontologie" get_recommendations: "Obtenir des recommandations" select_ontologies_list: "Sélectionnez les ontologies" - - \ No newline at end of file From 040e7b3fbdc9c5dfe3cfc3dd5eeb4c17be59aaf9 Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Wed, 3 May 2023 09:30:04 +0200 Subject: [PATCH 25/29] Auto stash before merge of "feature/support-multi-lingual" and "origin/feature/support-multi-lingual" --- Gemfile.lock | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index c7cb952054..8e94f0e8ca 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -82,7 +82,7 @@ GEM i18n (>= 1.6, < 2) minitest (>= 5.1) tzinfo (~> 2.0) - addressable (2.8.2) + addressable (2.8.4) public_suffix (>= 2.0.2, < 6.0) airbrussh (1.4.1) sshkit (>= 1.6.1, != 1.7.0) @@ -158,7 +158,7 @@ GEM flamegraph (0.9.5) globalid (1.1.0) activesupport (>= 5.0) - graphql (2.0.20) + graphql (2.0.21) graphql-client (0.18.0) activesupport (>= 3.0) graphql @@ -173,14 +173,14 @@ GEM http-accept (1.7.0) http-cookie (1.0.5) domain_name (~> 0.5) - i18n (1.12.0) + i18n (1.13.0) concurrent-ruby (~> 1.0) iconv (1.0.8) - importmap-rails (1.1.5) + importmap-rails (1.1.6) actionpack (>= 6.0.0) railties (>= 6.0.0) io-console (0.6.0) - irb (1.6.3) + irb (1.6.4) reline (>= 0.3.0) jquery-rails (4.5.1) rails-dom-testing (>= 1, < 3) @@ -210,7 +210,7 @@ GEM mime-types-data (~> 3.2015) mime-types-data (3.2023.0218.1) mini_mime (1.1.2) - mini_portile2 (2.8.1) + mini_portile2 (2.8.2) minitest (5.18.0) msgpack (1.7.0) multi_json (1.15.0) @@ -234,15 +234,15 @@ GEM net-protocol net-ssh (7.1.0) netrc (0.11.0) - newrelic_rpm (9.1.0) + newrelic_rpm (9.2.2) nio4r (2.5.9) - nokogiri (1.14.2) + nokogiri (1.14.3) mini_portile2 (~> 2.8.0) racc (~> 1.4) - oj (3.14.2) + oj (3.14.3) open_uri_redirections (0.2.1) - parallel (1.22.1) - parser (3.2.2.0) + parallel (1.23.0) + parser (3.2.2.1) ast (~> 2.4.1) popper_js (1.16.1) pry (0.14.2) @@ -253,10 +253,10 @@ GEM puma (5.6.5) nio4r (~> 2.0) racc (1.6.2) - rack (2.2.6.4) + rack (2.2.7) rack-accept (0.4.5) rack (>= 0.4) - rack-mini-profiler (3.0.0) + rack-mini-profiler (3.1.0) rack (>= 1.2.0) rack-test (2.1.0) rack (>= 1.3) @@ -298,7 +298,7 @@ GEM rdoc (6.3.3) recaptcha (5.9.0) json - regexp_parser (2.7.0) + regexp_parser (2.8.0) reline (0.3.3) io-console (~> 0.5) rest-client (2.1.0) @@ -307,9 +307,9 @@ GEM mime-types (>= 1.16, < 4.0) netrc (~> 0.8) rexml (3.2.5) - rspec-core (3.12.1) + rspec-core (3.12.2) rspec-support (~> 3.12.0) - rspec-expectations (3.12.2) + rspec-expectations (3.12.3) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) rspec-mocks (3.12.5) @@ -324,7 +324,7 @@ GEM rspec-mocks (~> 3.11) rspec-support (~> 3.11) rspec-support (3.12.0) - rubocop (1.49.0) + rubocop (1.50.2) json (~> 2.3) parallel (~> 1.10) parser (>= 3.2.0.0) @@ -334,7 +334,7 @@ GEM rubocop-ast (>= 1.28.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.28.0) + rubocop-ast (1.28.1) parser (>= 3.2.1.0) ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) @@ -350,7 +350,7 @@ GEM sprockets-rails tilt select2-rails (4.0.13) - selenium-webdriver (4.8.6) + selenium-webdriver (4.9.0) rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) @@ -366,7 +366,7 @@ GEM sshkit (1.21.4) net-scp (>= 1.1.2) net-ssh (>= 2.8.0) - stackprof (0.2.24) + stackprof (0.2.25) stimulus-rails (1.2.1) railties (>= 6.0.0) temple (0.10.0) @@ -417,7 +417,7 @@ GEM will_paginate (3.3.1) xpath (3.2.0) nokogiri (~> 1.8) - zeitwerk (2.6.7) + zeitwerk (2.6.8) PLATFORMS ruby From 0ddcd57a4caabe6d0c467841d21282ad0733c4d7 Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Mon, 8 May 2023 22:16:24 +0200 Subject: [PATCH 26/29] update the $HOME_PAGE_LOGOS config variable to be internationalizable --- app/views/home/index.html.haml | 21 +++++++++------------ config/locales/en.yml | 2 ++ config/locales/fr.yml | 3 ++- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml index cd0867bab7..74cdb1b4d1 100644 --- a/app/views/home/index.html.haml +++ b/app/views/home/index.html.haml @@ -127,15 +127,12 @@ %li.list-group-item = link_to slice_name, slice_link - - - - $HOME_PAGE_LOGOS.to_a.each do |home_page_logos_row| - - unless home_page_logos_row[:links].to_a.empty? - %div.row.pt-3 - %div.col - %div.card-deck - %div.card - %div.card-header= home_page_logos_row[:title][I18n.locale] - %div.logos - - home_page_logos_row[:links].to_a.each do |logo| - = link_to(image_tag(logo[:img_src]), logo[:url], target: logo[:target]) + - $HOME_PAGE_LOGOS.each do |key, home_page_logos_row| + %div.row.pt-3 + %div.col + %div.card-deck + %div.card + %div.card-header= t("home.#{key}") + %div.logos + - home_page_logos_row.each do |logo| + = link_to(image_tag(logo[:img_src]), logo[:url], target: logo[:target]) diff --git a/config/locales/en.yml b/config/locales/en.yml index 9626a94a0d..0067c5d82a 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -179,6 +179,8 @@ en: projects: "Projects" users: "Users" no_recent_notes: "No recent notes were submitted" + supported_by: "Supported by" + with_collaboration: "With the collaboration of" index: find_ontology_placeholder: Start typing the ontology name, then choose from query_placeholder: Enter a class, eg Melanoma diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 698d988fe3..76549c8c0e 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -190,7 +190,8 @@ fr: projects: "Projets" users: "Utilisateurs" no_recent_notes: "Aucune note récente n'a été soumise" - + supported_by: "Avec le soutien de" + with_collaboration: "Avec la collaboration de" index: find_ontology_placeholder: Commencez à taper le nom de l'ontologie, puis choisissez dans query_placeholder: Entrez une classe, par exemple Melanoma From b77c27fe735c8291c8d5b3cdd409865c147e5280 Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Mon, 8 May 2023 22:21:53 +0200 Subject: [PATCH 27/29] rename 'set_locale' to 'set_locale_language' to prevent name conflicts --- app/controllers/language_controller.rb | 2 +- config/routes.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/language_controller.rb b/app/controllers/language_controller.rb index f05f423b88..ed1ec7c79d 100644 --- a/app/controllers/language_controller.rb +++ b/app/controllers/language_controller.rb @@ -1,7 +1,7 @@ class LanguageController < ApplicationController # set locale to the language selected by the user - def set_locale + def set_locale_language language = params[:language].strip.downcase.to_sym supported_languages = I18n.available_locales diff --git a/config/routes.rb b/config/routes.rb index ba90d4f9b9..98bb049b68 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2,7 +2,7 @@ root to: 'home#index' - get 'locale/:language', to: 'language#set_locale' + get 'locale/:language', to: 'language#set_locale_language' get '/notes/new_comment', to: 'notes#new_comment' get '/notes/new_proposal', to: 'notes#new_proposal' From 691438888a10de48340731c1e8e01067282934d2 Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Mon, 8 May 2023 23:37:29 +0200 Subject: [PATCH 28/29] add rails-i18n gem to add french dates localization --- Gemfile | 1 + Gemfile.lock | 42 +++++++++++++++++++++++++++++++++--------- 2 files changed, 34 insertions(+), 9 deletions(-) diff --git a/Gemfile b/Gemfile index 6760c3e100..9aa696608e 100644 --- a/Gemfile +++ b/Gemfile @@ -54,6 +54,7 @@ gem 'flamegraph' gem 'graphql-client' gem 'haml', '~> 5.1' gem 'i18n' +gem 'rails-i18n', '~> 7.0.0' gem 'iconv' gem 'multi_json' gem 'mysql2', '0.5.3' diff --git a/Gemfile.lock b/Gemfile.lock index 98f976990d..a6db07def7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: https://github.com/ontoportal-lirmm/ontologies_api_ruby_client.git - revision: 0c8cd2b377d88b66a979664d5b16e5068b6d4548 + revision: ca20880499a737803120f18ce99c14d3f10bc071 branch: development specs: ontologies_api_client (2.2.0) @@ -129,6 +129,8 @@ GEM coderay (1.1.3) concurrent-ruby (1.2.2) crass (1.0.6) + css_parser (1.14.0) + addressable cube-ruby (0.0.3) daemons (1.4.1) dalli (3.2.4) @@ -170,6 +172,8 @@ GEM haml (>= 4.0) nokogiri (>= 1.6.0) ruby_parser (~> 3.5) + htmlbeautifier (1.4.2) + htmlentities (4.3.4) http-accept (1.7.0) http-cookie (1.0.5) domain_name (~> 0.5) @@ -197,6 +201,19 @@ GEM loofah (2.20.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) + lookbook (1.5.5) + actioncable + activemodel + css_parser + htmlbeautifier (~> 1.3) + htmlentities (~> 4.3.4) + listen (~> 3.0) + railties (>= 5.0) + redcarpet (~> 3.5) + rouge (>= 3.26, < 5.0) + view_component (> 2.0, < 4) + yard (~> 0.9.25) + zeitwerk (~> 2.5) lz4-ruby (0.3.3) mail (2.8.1) mini_mime (>= 0.1.1) @@ -279,6 +296,9 @@ GEM nokogiri (>= 1.6) rails-html-sanitizer (1.5.0) loofah (~> 2.19, >= 2.19.1) + rails-i18n (7.0.6) + i18n (>= 0.7, < 2) + railties (>= 6.0.0, < 8) rails_autolink (1.1.8) actionview (> 3.1) activesupport (> 3.1) @@ -298,6 +318,7 @@ GEM rdoc (6.3.3) recaptcha (5.9.0) json + redcarpet (3.6.0) regexp_parser (2.8.0) reline (0.3.3) io-console (~> 0.5) @@ -307,6 +328,7 @@ GEM mime-types (>= 1.16, < 4.0) netrc (~> 0.8) rexml (3.2.5) + rouge (4.1.0) rspec-core (3.12.2) rspec-support (~> 3.12.0) rspec-expectations (3.12.3) @@ -315,14 +337,14 @@ GEM rspec-mocks (3.12.5) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) - rspec-rails (6.0.1) + rspec-rails (6.0.2) actionpack (>= 6.1) activesupport (>= 6.1) railties (>= 6.1) - rspec-core (~> 3.11) - rspec-expectations (~> 3.11) - rspec-mocks (~> 3.11) - rspec-support (~> 3.11) + rspec-core (~> 3.12) + rspec-expectations (~> 3.12) + rspec-mocks (~> 3.12) + rspec-support (~> 3.12) rspec-support (3.12.0) rubocop (1.50.2) json (~> 2.3) @@ -354,7 +376,7 @@ GEM rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) - sexp_processor (4.16.1) + sexp_processor (4.17.0) spawnling (2.1.5) sprockets (4.2.0) concurrent-ruby (~> 1.0) @@ -417,6 +439,7 @@ GEM will_paginate (3.3.1) xpath (3.2.0) nokogiri (~> 1.8) + yard (0.9.34) zeitwerk (2.6.8) PLATFORMS @@ -450,6 +473,7 @@ DEPENDENCIES jquery-ui-rails jsbundling-rails listen + lookbook (~> 1.5.5) multi_json mysql2 (= 0.5.3) net-ftp (~> 0.2.0) @@ -463,6 +487,7 @@ DEPENDENCIES puma (~> 5.0) rack-mini-profiler rails (= 7.0.3) + rails-i18n (~> 7.0.0) rails_autolink rdoc recaptcha (~> 5.9.0) @@ -486,5 +511,4 @@ DEPENDENCIES will_paginate (~> 3.0) BUNDLED WITH - 2.3.23 - + 2.4.12 From 9644023e3581653e2b85b962e48704acfa370bb9 Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Mon, 8 May 2023 23:37:57 +0200 Subject: [PATCH 29/29] add location for the ontology_viewer header --- app/helpers/schemes_helper.rb | 10 ++++------ .../layouts/ontology_viewer/_header.html.haml | 2 +- config/locales/en.yml | 12 ++++++++++++ config/locales/fr.yml | 17 +++++++++++++++-- 4 files changed, 32 insertions(+), 9 deletions(-) diff --git a/app/helpers/schemes_helper.rb b/app/helpers/schemes_helper.rb index 1ecb919087..01b3993da5 100644 --- a/app/helpers/schemes_helper.rb +++ b/app/helpers/schemes_helper.rb @@ -41,15 +41,13 @@ def get_schemes_labels(schemes, main_uri) end def concept_label_to_show(submission: @submission_latest) - submission&.hasOntologyLanguage == 'SKOS' ? 'Concepts' : 'Classes' + submission&.hasOntologyLanguage == 'SKOS' ? 'concepts' : 'classes' end def section_name(section) - if section.eql?('classes') - concept_label_to_show(submission: @submission_latest || @submission) - else - section.capitalize - end + section = concept_label_to_show(submission: @submission_latest || @submission) if section.eql?('classes') + + t("ontology_details.sections.#{section}") end def scheme_path(scheme_id = '') diff --git a/app/views/layouts/ontology_viewer/_header.html.haml b/app/views/layouts/ontology_viewer/_header.html.haml index 82f2c421d2..bc5e094da4 100644 --- a/app/views/layouts/ontology_viewer/_header.html.haml +++ b/app/views/layouts/ontology_viewer/_header.html.haml @@ -10,7 +10,7 @@ %div - if (details_available && !sub.released.nil?) %span.text-muted - Last uploaded: + = t('ontology_details.header.last_uploaded') = l(Date.parse(sub.creationDate), format: :monthfull_day_year) %div.ont-info-links - unless (@ontology.summaryOnly || @ont_restricted || @submission_latest.nil?) diff --git a/config/locales/en.yml b/config/locales/en.yml index 0067c5d82a..b19e005229 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -270,6 +270,18 @@ en: sample_text: Melanoma is a malignant tumor of melanocytes found mainly in the skin but also in the intestine and the eye. ontology_details: + header: + last_uploaded: "Last uploaded:" + sections: + summary: "Summary" + concepts: "Concepts" + classes: "Classes" + properties: "Properties" + notes: "Notes" + mappings: "Mappings" + schemes: "Schemes" + collections: "Collections" + widgets: "Widgets" metadata: details: "Details" acronym: "Acronym" diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 76549c8c0e..95940640fc 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -281,9 +281,22 @@ fr: sample_text: Le mélanome est une tumeur maligne des mélanocytes qui se trouvent principalement dans la peau mais aussi dans l'intestin et l'œil. ontology_details: + header: + last_uploaded: "Dernière mise à jour:" + sections: + summary: "Résumé" + concepts: "Concepts" + classes: "Classes" + properties: "Propriétés" + notes: "Notes" + mappings: "Mappings" + schemes: "Schemes" + collections: "Collections" + widgets: "Widgets" + metadata: details: "Détails" - acronym: "Acronym" + acronym: "Acronyme" visibility: "Visibilité" viewing_restriction: "Restriction de visualisation" view_of_ontology: "Vue de l'ontologie" @@ -435,7 +448,7 @@ fr: formats: year_month_day_concise: "%Y-%m-%d" # 2017-03-01 month_day_year: "%b %-d, %Y" # Mar 1, 2017 - monthfull_day_year: "%B %-d, %Y" # March 1, 2017 + monthfull_day_year: "%-d %B %Y" # March 1, 2017 ontologies: self: "Ontologies"