Redmine #2246: added schemas and examples for structures and semantic types

This commit is contained in:
2022-01-19 14:38:41 +01:00
parent 3fcc821d3f
commit 3a4097c6db
5 changed files with 5294 additions and 6 deletions

View File

@@ -4,7 +4,8 @@ script_dir="$(dirname "$(readlink -f "$0")")"
cd $script_dir
schema_dir=../resources/schema
top_schema=$schema_dir/top_dictionaries.xsd # for now we only have dictionaries
top_schema=$schema_dir/top_dictionaries.xsd
dictionary_types=("bilingual_dictionaries collocation_dictionary monolingual_dictionaries morphological_lexicon valency_lexicon")
example_dir=../examples
for example_subdir in $example_dir/*
@@ -13,11 +14,13 @@ do
bottom_schema=$schema_dir/$base.xsd
for example_file in $example_subdir/*.xml
do
command="xmllint -schema $top_schema $example_file --noout"
echo $command
if ! $command; then
exit 1
fi
case $base in bilingual_dictionaries|collocation_dictionary|monolingual_dictionaries|morphological_lexicon|valency_lexicon)
command="xmllint -schema $top_schema $example_file --noout"
echo $command
if ! $command; then
exit 1
fi
esac
command="xmllint -schema $bottom_schema $example_file --noout"
echo $command
if ! $command; then