-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vivo 1954 #7
base: main
Are you sure you want to change the base?
Vivo 1954 #7
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,58 @@ | ||
This directory contains various knowledge graphs needed to run regression tests | ||
These ontologies are an extraction and adaptation for internationalization of | ||
https://github.com/vivo-project/sample-data/blob/main/sample-data.n3. | ||
|
||
Although they are of general use, the knowledge graphs and ontologies contained | ||
in this directory are specifically designed to be used with the regression tests | ||
of https://github.com/vivo-community/vivo-regression-tests. | ||
|
||
The files are divided into two series: *-orig.ttl and *-i18n*.ttl and they | ||
correspond respectively to a use in a first instance of VIVO 1.11 not | ||
including internationalization and the VIVO 1.12 version | ||
including internationalization (i18n) | ||
|
||
Data sheet of the files: | ||
- Semantics | ||
The semantics of the two file categories are the same. For example the | ||
identification to the resource 'sample-data:n2022' refers to the concept of | ||
"Keynote Speaker" in both ontology categories. | ||
|
||
- Base URI, sample-data prefix, individual base uri | ||
Each ontology category has its own URI sets | ||
|
||
- ORIG Category | ||
- base URI: http://localhost:8080/vivo_orig/sample-data-orig# | ||
- prefix sample-data http://localhost:8080/vivo_orig/individual/ | ||
- Definition of the individual to be declared in the runtime.properties | ||
file of the VIVO instance: | ||
Vitro.defaultNamespace = http://localhost:8080/vivo_orig/individual/ | ||
- Internationalization | ||
Only the en_US is available in this category | ||
|
||
- I18N Category | ||
- base URI: http://localhost:8080/vivo_i18n/sample-data-i18n# | ||
- prefix sample-data http://localhost:8080/vivo_i18n/individual/ | ||
- Definition of the individual to be declared in the runtime.properties | ||
file of the VIVO instance: | ||
Vitro.defaultNamespace = http://localhost:8080/vivo_i18n/individual/ | ||
- for each language a graph containing the linguistic context of each | ||
language in extension of the filename is available . For example, | ||
for fr_CA, the graph sample-data-i18n-fr_CA.ttl contains the | ||
Canadian-French translation of sample-data | ||
|
||
Sample Data Language Enhancement | ||
To introduce a new linguistic context to the sample-data, perform the | ||
following steps: | ||
|
||
1- Choose the graph of an original language (e.g. en_US) and rename | ||
it to the target language context (e.g. fr-BE). This gives for | ||
example sample-data-i18n-fr_BE.ttl | ||
2- in the graph, replace the linguistic tag of the source language | ||
(ex.: "@en-US") by the linguistic tag of the target | ||
language (ex.: "@fr-BE") | ||
3- Translate the rdfs:label content of each resource to the new | ||
liguistic context (e.g.: | ||
sample-data:n1467 rdfs:label "Professor"@en-US . | ||
by | ||
sample-data:n1467 rdfs:label " Professeur"@en-BE ; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. a typo, fr-BE instead of en-BE |
||
) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we add here the forth points and invite people to contribute, i.e. create a pull request in the case they believe their localization of sample data might be useful for the community? |
||
-- End of text -- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this annotation for the end of the file is necessary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VIVO 1.12+ version?