Page MenuHomec4science

test_rules.sh
No OneTemporary

File Metadata

Created
Mon, Nov 18, 04:55

test_rules.sh

#!/bin/bash
EYE="/opt/eye/bin/eye.sh"
test -e $EYE || EYE=$(find / -name 'eye.sh' 2>/dev/null | head -1)
if [[ ! -e $EYE ]];then
echo "Please install EYE by josd, see EYE_INSTALL_info" && exit 2
fi
echo "# Execution date" $(date)
$EYE --nope --traditional ontologies/homotypic-part_ontology.ttl ontologies/standoff_ontology.ttl ontologies/tln-ontology_autogenerated.ttl test-ontology.ttl test-DATA.ttl external-rules/rdfs-subClassOf.n3 external-rules/rdfs-subPropertyOf.n3 external-rules/owl-TransitiveProperty.n3 external-rules/owl-propertyChainAxiom.n3 project-rules_joined_data/40-tln-update_reference.n3 project-rules_joined_data/50-tln-connect_lines.n3 project-rules/20-tln-update_word_line_reference.n3 project-rules/25-tln-create-overwrite-standoff.n3 project-rules/30-create-output-text.n3 project-rules/40-create-pseudo-text.n3 project-rules/55-tln-add_language.n3 generic-rules/create_standoff-rules.n3 generic-rules/extend-rules.n3 project-rules_joined_data/20-tln-merge_images.n3 --query filter_query.n3
echo
echo -e "\e[1;35mThis is a test example for all rules in the folders.\e[00m"
echo -e "\e[1;35mThe rule 'project-rules_joined_data/20-tln-merge_images.n3' merges images if they share a common filename and have two different pages on them.\e[00m"
echo -e "\e[1;35m ->grep 'image'.\e[00m"
echo -e "\e[1;35mThe rule 'project-rules_joined_data/40-tln-update_reference.n3' updates reference to next/previous page if there is no line info'.\e[00m"
echo -e "\e[1;35mThe rule 'project-rules_joined_data/50-tln-connect_lines.n3' connects lines as tln:lineContinuesOn if they have mutual references'.\e[00m"
echo -e "\e[1;35m ->grep 'tln:lineContinuesOn'.\e[00m"
echo -e "\e[1;35mThe rule 'project-rules/20-tln-update_word_line_reference.n3' updates reference to word if a line has two line continuations that refer to words on this line'\e[00m"
echo -e "\e[1;35m ->grep 'tln:textContinuesWithWord'.\e[00m"
echo -e "\e[1;35mThe rule 'project-rules/30-create-output-text.n3' sets tln:hasEditedText or tln:hasText as tln:hasOutputText.'\e[00m"
echo -e "\e[1;35m ->grep 'tln:hasOutputText'.\e[00m"
echo -e "\e[1;35mThe rule 'project-rules/40-create-pseudo-text.n3' creates pseudo text from tln:hasOutputText and attachs it to page with tln:hasPseudoText.'\e[00m"
echo -e "\e[1;35m ->grep 'tln:hasPseudoText'.\e[00m"
echo -e "\e[1;35mThe rule 'project-rules/55-tln-add_language.n3' adds German as language to each tln:Word if it has a style that defines a font 'deutsche Schreibschrift'\e[00m"
echo -e "\e[1;35m ->grep 'language:expressedInNaturalLanguage'.\e[00m"
echo -e "\e[1;35mThe rule 'generic-rules/create_standoff-rules.n3' creates standoff data for each homotypic:HomotypicEntity that has a Style with CSS.\e[00m"
echo -e "\e[1;35m ->sed -n '1,/ENDS/ p' |cwm | sed -n '/data:_Word.*/,/\./ p'\e[00m"
echo -e "\e[1;35mThe rule 'project/rules/25-tln-create-overwrite-standoff.n3' creates standoff data for part that overwrites word.\e[00m"
echo -e "\e[1;35m ->grep 'tln:hasStandoffMarkup4PartThatOverwritesWord'.\e[00m"
echo -e "\e[1;35mThe rule 'generic-rules/extend-rules.n3' extends the data of each homotypic:HomotypicEntity that has parts with data that the whole lacks.\e[00m"
echo -e "\e[1;35m ->grep 'data:_Word0 test:hasLine data:_Line0'.\e[00m"

Event Timeline