This framework uses repository specific parameters to run. These parameters are stored in the .acimov/parameters.json
file.
A parameters.json
file can be generated using this command:
olivaw init repo
Check the olivaw command line documentation for more details.
These parameters will be explained later in this document.
The .acimov/parameters.json
file is a json file containing a dictionary with some fields that will be detailed in this section.
This field is mandatory and provides a string containing the preferred prefix for the ontology.
This prefix will be used when generating the turtle code snippets that will be provided in the test reports.
This field is mandatory and provides a string containing the namespace of the ontology.
This is used in the tests because it can determine if a URI in the ontology or the datasets are meant to belong to the ontology that is under development.
This field is mandatory ad represents the threshold about the minimum Levenshtein distance that are allowed between a pair of ontology terms.
The levenshtein distance between 2 strings is the minimum number of modifications (add/remove/update of a character) between these 2 strings.
It is a good pratice to have terms that are all different enough.
The default value is 3.
This field is mandatory and provides a list of error identifiers that will be considered as blocking.
The list of error identifiers can be found in the olivaw error resource file.
Most of the errors are considered by default as MinorFail
except the prefix-typo
error that is considered a CannotTell
. If a error is considered as blocking, it will always be mentionned as a MajorFail
outcome if integrated to a test report.
See the olivaw outcome documentation, the olivaw prefix validity test documentation and the olivaw error resource file for more details.
This field is mandatory and contains a string representing a gist index containing the data for all the gist files for all the project badges.
The command olivaw init repo
will automatically create a gist initialized with all the files the project needs from the provided personnal access token.
This field is mandatory and contains a dictionary. The key is a string that represents a prefix. The value is a string that represents a namespace.
These prefixes will be used while preparing the turtle data snippets in the different test reports in order to shorten the URIs in these snippets in order to make them more easily understandable by the ontology developpers.
This field is not mandatory and provides a list of error ids that can be found in the olivaw test documentation and in the olivaw test resources file
If an error id is in this list, this error should not appear in any test report, in the markdown files as well as in the turtle files
If not provided, olivaw considers that all errors should appear.
This field is not mandatory and provides list of strings representing test ids that can be found in the olivaw test documentation and in the olivaw test resources file
If a test id is in this list, this test should not be run neither appear in any test report, in the markdown files as well as in the turtle files
If not provided, olivaw considers that all tests should be run
This field is not mandatory and provides a list of string representing either relative paths from the repository folder to a given file, or a subject identifier that can be found in a test report.
The provided subjects should not be tested by olivaw
If not provided, olivaw considers that all files should be tested
This field is not mandatory and provides a dictionary. The keys are string representing test identifier. The values are lists of strings representing either relative paths from the repository folder to a given file or a subject identifier that can be found in a test report.
For each test identifier provided, the different subjects provided in the list should be skipped during the tests.
If not provided, olivaw skips no subject for any given test.
Check the olivaw test documentation for more details about the available test and error identifiers.
This field is not mandatory and provides a dictionary. The keys are either relative paths from the repository folder to a given file or a subject identifier that can be found in a test report. The values are lists of strings representing string representing test identifier
For each test subject provided, the different tests providd in the list should be skipped during the tests.
If not provided, olivaw skips no test for any given subject.
Check the olivaw test documentation for more details about the available test and error identifiers.