From 7125cd7c2bece3e21619c14eca5f1e285f7a0137 Mon Sep 17 00:00:00 2001 From: Kernc Date: Thu, 17 Dec 2020 09:49:31 +0100 Subject: [PATCH] Revert overzealous tests changes --- tests/test1.ttl | 11 ++- tests/test10.ttl | 32 ++++++--- tests/test12.ttl | 43 +++++++++--- tests/test2.ttl | 15 ++-- tests/test3.ttl | 13 ++-- tests/test4.ttl | 6 +- tests/test5.ttl | 175 +++++++++++++++++++++++++++-------------------- tests/test6.ttl | 8 ++- tests/test7.ttl | 26 +++---- tests/test8.ttl | 5 +- tests/test9.ttl | 19 ++--- 11 files changed, 216 insertions(+), 137 deletions(-) diff --git a/tests/test1.ttl b/tests/test1.ttl index 80bf30d..13039fa 100644 --- a/tests/test1.ttl +++ b/tests/test1.ttl @@ -5,9 +5,14 @@ @prefix skos: . <#entry1> a ontolex:LexicalEntry ; - ontolex:canonicalForm [ ontolex:writtenRep "disproof"@en ] ; - ontolex:sense [ skos:definition "facts that disprove something."@en ], - [ skos:definition "the act of disproving."@en ] . + ontolex:canonicalForm [ + ontolex:writtenRep "disproof"@en + ] ; + ontolex:sense [ + skos:definition "facts that disprove something."@en + ] , [ + skos:definition "the act of disproving."@en + ]. [] a lime:Lexicon ; dc:title "The shortest TEI Document Imaginable" ; diff --git a/tests/test10.ttl b/tests/test10.ttl index c60295e..86e751a 100644 --- a/tests/test10.ttl +++ b/tests/test10.ttl @@ -7,19 +7,33 @@ @prefix rdfs: . @prefix skos: . -<#a-2> a ontolex:LexicalEntry ; +<#a-2> + a ontolex:LexicalEntry ; rdfs:comment "(sans accent)" ; - ontolex:canonicalForm [ ontolex:writtenRep "A" ] ; - ontolex:sense [ skos:definition "3e pers. du sing. de l'ind. prés. du verbe avoir" ; - lexicog:usageExample [ rdf:value "l'alphabet français a vingt-cinq lettres" ] ] . + ontolex:canonicalForm [ + ontolex:writtenRep "A" + ] ; + ontolex:sense [ + skos:definition "3e pers. du sing. de l'ind. prés. du verbe avoir" ; + lexicog:usageExample [ + rdf:value "l'alphabet français a vingt-cinq lettres" + ] + ] . -<#abcéder> a ontolex:LexicalEntry ; +<#abcéder> lexinfo:partOfSpeech lexinfo:verb ; + a ontolex:LexicalEntry ; rdfs:comment "(Se conj. comme accélérer.)" ; - ontolex:canonicalForm [ ontolex:phoneticRep "(dé)" ; - ontolex:writtenRep "ABCÉDER" ] ; - ontolex:sense [ skos:definition "Se tourner en abcès" ; - lexicog:usageExample [ rdf:value "tumeur qui abcède" ] ] . + ontolex:canonicalForm [ + ontolex:phoneticRep "(dé)" ; + ontolex:writtenRep "ABCÉDER" + ] ; + ontolex:sense [ + skos:definition "Se tourner en abcès" ; + lexicog:usageExample [ + rdf:value "tumeur qui abcède" + ] + ] . [] a lime:Lexicon ; dc:title "Test 10 - Notes" ; diff --git a/tests/test12.ttl b/tests/test12.ttl index 8af19c7..e9b4003 100644 --- a/tests/test12.ttl +++ b/tests/test12.ttl @@ -1,4 +1,18 @@ +@prefix rdf: . +@prefix void: . +@prefix owl: . +@prefix ns: . +@prefix lime: . +@prefix xsd: . +@prefix rdfs: . +@prefix lexinfo: . +@prefix lexicog: . +@prefix dct: . +@prefix bibo: . +@prefix ontolex: . +@prefix vann: . @prefix dc: . +@prefix tei: . @prefix dct: . @prefix lexicog: . @prefix lexinfo: . @@ -7,22 +21,31 @@ @prefix skos: . <#abaisseur> a lexicog:Entry ; - lexicog:describes <#abaisseur-1>, - <#abaisseur-2> . + lexicog:describes <#abaisseur-1>, <#abaisseur-2> . -<#abaisseur-1> a ontolex:LexicalEntry ; +<#abaisseur-1> lexinfo:gender lexinfo:masculine ; lexinfo:partOfSpeech lexinfo:adjective ; - ontolex:canonicalForm [ ontolex:phoneticRep "bè-seur"@fr ; - ontolex:writtenRep "ABAISSEUR"@fr ] ; - ontolex:sense [ skos:definition "Se dit d'un muscle qui sert à abaisser la partie du corps à laquelle il est attaché"@fr ] . + a ontolex:LexicalEntry ; + ontolex:canonicalForm [ + ontolex:phoneticRep "bè-seur"@fr ; + ontolex:writtenRep "ABAISSEUR"@fr + ] ; + ontolex:sense [ + skos:definition "Se dit d'un muscle qui sert à abaisser la partie du corps à laquelle il est attaché"@fr + ] . -<#abaisseur-2> a ontolex:LexicalEntry ; +<#abaisseur-2> lexinfo:gender lexinfo:masculine ; lexinfo:partOfSpeech lexinfo:commonNoun ; - ontolex:canonicalForm [ ontolex:phoneticRep "bè-seur"@fr ; - ontolex:writtenRep "ABAISSEUR"@fr ] ; - ontolex:sense [ skos:definition "Se dit d'un muscle qui sert à abaisser la partie du corps à laquelle il est attaché"@fr ] . + a ontolex:LexicalEntry ; + ontolex:canonicalForm [ + ontolex:phoneticRep "bè-seur"@fr ; + ontolex:writtenRep "ABAISSEUR"@fr + ] ; + ontolex:sense [ + skos:definition "Se dit d'un muscle qui sert à abaisser la partie du corps à laquelle il est attaché"@fr + ] . [] a lime:Lexicon ; dc:publisher "Praxiling UMR 5267" ; diff --git a/tests/test2.ttl b/tests/test2.ttl index 7ec9e4c..dccab16 100644 --- a/tests/test2.ttl +++ b/tests/test2.ttl @@ -7,10 +7,17 @@ @prefix skos: . <#entry1> a ontolex:LexicalEntry ; - ontolex:canonicalForm [ ontolex:writtenRep "disproof"@en ] ; - ontolex:sense [ skos:definition "the act of disproving."@en ; - lexicog:usageExample [ rdf:value "boire à une source"@fr ] ], - [ skos:definition "facts that disprove something."@en ] . + ontolex:canonicalForm [ + ontolex:writtenRep "disproof"@en + ] ; + ontolex:sense [ + skos:definition "facts that disprove something."@en + ] , [ + skos:definition "the act of disproving."@en ; + lexicog:usageExample [ + rdf:value "boire à une source"@fr + ] + ]. [] a lime:Lexicon ; dc:title "The shortest TEI Document Imaginable" ; diff --git a/tests/test3.ttl b/tests/test3.ttl index e565644..9b54bf2 100644 --- a/tests/test3.ttl +++ b/tests/test3.ttl @@ -5,13 +5,16 @@ @prefix rdf: . <#Flussschifffahrt> a ontolex:LexicalEntry ; - ontolex:canonicalForm [ lexinfo:temporalQualifier [ rdf:value "Vor 1996 Rechtschreibung Reform" ] ; - ontolex:writtenRep "Fluss-Schifffahrt"@de, - "Flussschifffahrt"@de, - "Flußschifffahrt"@de ] . + ontolex:canonicalForm [ + ontolex:writtenRep "Flussschifffahrt"@de , + "Fluss-Schifffahrt"@de, "Flußschifffahrt"@de + ] . <#osama_bin_laden> a ontolex:LexicalEntry ; - ontolex:canonicalForm [ ontolex:phoneticRep "ow.\"sa.mabɪnˈlaːdn̹"@en-fonipa ] . + ontolex:canonicalForm [ + ontolex:phoneticRep "ow.\"sa.mabɪnˈlaːdn̹"@en-fonipa ; + lexinfo:temporalQualifier [ rdf:value "Vor 1996 Rechtschreibung Reform" ] + ] . [] a lime:Lexicon ; dc:title "Test 3 - variant forms" ; diff --git a/tests/test4.ttl b/tests/test4.ttl index e95d39b..1fc85fd 100644 --- a/tests/test4.ttl +++ b/tests/test4.ttl @@ -4,9 +4,9 @@ @prefix ontolex: . <#go> a ontolex:LexicalEntry ; - ontolex:canonicalForm [ ontolex:writtenRep "go"@en ] ; - ontolex:otherForm [ lexinfo:tense lexinfo:past ; - ontolex:writtenRep "went"@en ] . + ontolex:canonicalForm [ ontolex:writtenRep "go"@en ] ; + ontolex:otherForm [ ontolex:writtenRep "went"@en ; + lexinfo:tense lexinfo:past ] . [] a lime:Lexicon ; dc:title "Test 3 - inflected forms" ; diff --git a/tests/test5.ttl b/tests/test5.ttl index 7db113d..058f6e5 100644 --- a/tests/test5.ttl +++ b/tests/test5.ttl @@ -1,110 +1,133 @@ @prefix dc: . @prefix lexinfo: . -@prefix lime: . -@prefix ontolex: . -<#Frau> a ontolex:LexicalEntry ; - lexinfo:gender lexinfo:feminine ; - ontolex:canonicalForm [ ontolex:writtenRep "Frau"@de ] . +<#yellow> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "yellow"@en ] ; + lexinfo:partOfSpeech lexinfo:adjective . -<#John> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:properNoun ; - ontolex:canonicalForm [ ontolex:writtenRep "John"@en ] . -<#Kind> a ontolex:LexicalEntry ; - lexinfo:gender lexinfo:neuter ; - ontolex:canonicalForm [ ontolex:writtenRep "Kind"@de ] . +<#for> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "for"@en ] ; + lexinfo:partOfSpeech lexinfo:adposition . -<#Mann> a ontolex:LexicalEntry ; - lexinfo:gender lexinfo:masculine ; - ontolex:canonicalForm [ ontolex:writtenRep "Mann"@de ] . -<#Mary> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:properNoun ; - ontolex:canonicalForm [ ontolex:writtenRep "Mary"@en ] . +<#today> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "today"@en ] ; + lexinfo:partOfSpeech lexinfo:adverb . -<#and> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:coordinatingConjunction ; - ontolex:canonicalForm [ ontolex:writtenRep "and"@en ] . <#can> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:auxiliary ; - ontolex:canonicalForm [ ontolex:writtenRep "can"@en ] . + ontolex:canonicalForm [ ontolex:writtenRep "can"@en ] ; + lexinfo:partOfSpeech lexinfo:auxiliary . -<#cat> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:commonNoun ; - ontolex:canonicalForm [ ontolex:writtenRep "cat"@en ] . -<#comma> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:punctuation ; - ontolex:canonicalForm [ ontolex:writtenRep ","@en ] . +<#and> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "and"@en ] ; + lexinfo:partOfSpeech lexinfo:coordinatingConjunction . -<#fish> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:commonNoun ; - ontolex:canonicalForm [ ontolex:writtenRep "fish"@en ] . -<#fly> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:verb ; - ontolex:canonicalForm [ ontolex:writtenRep "fly"@en ] . +<#the> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "the"@en ] ; + lexinfo:partOfSpeech lexinfo:determiner . -<#for> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:adposition ; - ontolex:canonicalForm [ ontolex:writtenRep "for"@en ] . -<#hash> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:symbol ; - ontolex:canonicalForm [ ontolex:writtenRep "#"@en ] . +<#yes> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "yes"@en ] ; + lexinfo:partOfSpeech lexinfo:interjection . -<#mus> a ontolex:LexicalEntry ; - lexinfo:animacy lexinfo:animate ; - ontolex:canonicalForm [ ontolex:writtenRep "муж"@ru ] . -<#one> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:numeral ; - ontolex:canonicalForm [ ontolex:writtenRep "1"@en ] . +<#cat> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "cat"@en ] ; + lexinfo:partOfSpeech lexinfo:commonNoun . -<#stol> a ontolex:LexicalEntry ; - lexinfo:animacy lexinfo:inanimate ; - ontolex:canonicalForm [ ontolex:writtenRep "стол"@ru ] . -<#the> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:determiner ; - ontolex:canonicalForm [ ontolex:writtenRep "the"@en ] . +<#one> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "1"@en ] ; + lexinfo:partOfSpeech lexinfo:numeral . + <#to> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:particle ; - ontolex:canonicalForm [ ontolex:writtenRep "to"@en ] . + ontolex:canonicalForm [ ontolex:writtenRep "to"@en ] ; + lexinfo:partOfSpeech lexinfo:particle . + + +<#you> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "you"@en ] ; + lexinfo:partOfSpeech lexinfo:pronoun . + + +<#John> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "John"@en ] ; + lexinfo:partOfSpeech lexinfo:properNoun . + + +<#comma> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep ","@en ] ; + lexinfo:partOfSpeech lexinfo:punctuation . + + +<#which> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "which"@en ] ; + lexinfo:partOfSpeech lexinfo:subordinatingConjunction . + + +<#hash> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "#"@en ] ; + lexinfo:partOfSpeech lexinfo:symbol . + + +<#fly> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "fly"@en ] ; + lexinfo:partOfSpeech lexinfo:verb . -<#today> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:adverb ; - ontolex:canonicalForm [ ontolex:writtenRep "today"@en ] . <#typo> a ontolex:LexicalEntry ; - ontolex:canonicalForm [ ontolex:writtenRep "sdfioa"@en ] . + ontolex:canonicalForm [ ontolex:writtenRep "sdfioa"@en ] . + <#vyras> a ontolex:LexicalEntry ; - ontolex:canonicalForm [ lexinfo:number lexinfo:singular ; - ontolex:writtenRep "vyras"@lt ] ; - ontolex:otherForm [ lexinfo:number lexinfo:plural ; - ontolex:writtenRep "vyrai"@lt ], - [ lexinfo:number lexinfo:dual ; - ontolex:writtenRep "vyru"@lt ] . + ontolex:canonicalForm [ + ontolex:writtenRep "vyras"@lt ; + lexinfo:number lexinfo:singular + ] ; + ontolex:otherForm [ + ontolex:writtenRep "vyru"@lt ; + lexinfo:number lexinfo:dual + ] , [ + ontolex:writtenRep "vyrai"@lt ; + lexinfo:number lexinfo:plural + ] . -<#which> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:subordinatingConjunction ; - ontolex:canonicalForm [ ontolex:writtenRep "which"@en ] . +<#mus> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "муж"@ru ] ; + lexinfo:animacy lexinfo:animate . -<#yellow> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:adjective ; - ontolex:canonicalForm [ ontolex:writtenRep "yellow"@en ] . -<#yes> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:interjection ; - ontolex:canonicalForm [ ontolex:writtenRep "yes"@en ] . +<#stol> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "стол"@ru ] ; + lexinfo:animacy lexinfo:inanimate . -<#you> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:pronoun ; - ontolex:canonicalForm [ ontolex:writtenRep "you"@en ] . + +<#Mary> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "Mary"@en ] ; + lexinfo:partOfSpeech lexinfo:properNoun . + + +<#fish> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "fish"@en ] ; + lexinfo:partOfSpeech lexinfo:commonNoun . + +<#Mann> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "Mann"@de ] ; + lexinfo:gender lexinfo:masculine . + +<#Frau> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "Frau"@de ] ; + lexinfo:gender lexinfo:feminine . + +<#Kind> a ontolex:LexicalEntry ; + ontolex:canonicalForm [ ontolex:writtenRep "Kind"@de ] ; + lexinfo:gender lexinfo:neuter . [] a lime:Lexicon ; dc:title "Test 5 - grammatical properties" ; diff --git a/tests/test6.ttl b/tests/test6.ttl index fb6dbbb..b1ae796 100644 --- a/tests/test6.ttl +++ b/tests/test6.ttl @@ -4,9 +4,11 @@ @prefix ontolex: . <#horrifier> a ontolex:LexicalEntry ; - lexinfo:partOfSpeech lexinfo:verb ; - ontolex:canonicalForm [ ontolex:writtenRep "horrifier"@fr ] ; - ontolex:sense [ lexinfo:senseTranslation "horrify"@en ] . + ontolex:canonicalForm [ ontolex:writtenRep "horrifier"@fr ] ; + lexinfo:partOfSpeech lexinfo:verb ; + ontolex:sense [ + lexinfo:senseTranslation "horrify"@en + ] . [] a lime:Lexicon ; dc:title "Test 6 - Translations" ; diff --git a/tests/test7.ttl b/tests/test7.ttl index 28cbd06..970a072 100644 --- a/tests/test7.ttl +++ b/tests/test7.ttl @@ -6,18 +6,20 @@ @prefix skos: . <#test> a ontolex:LexicalEntry ; - ontolex:canonicalForm [ ontolex:writtenRep "test"@en ] ; - ontolex:sense [ lexinfo:attitude [ rdf:value "attitude information" ] ; - lexinfo:domain [ rdf:value "domain information" ] ; - lexinfo:frequency [ rdf:value "frequency information" ] ; - lexinfo:geographic [ rdf:value "geographic information" ] ; - lexinfo:hint [ rdf:value "hint information" ] ; - lexinfo:meaningType [ rdf:value "meaningType information" ] ; - lexinfo:normativity [ rdf:value "normativity information" ] ; - lexinfo:socioCultural [ rdf:value "socioCultural information" ] ; - lexinfo:temporalQualifier [ rdf:value "time information" ] ; - lexinfo:textType [ rdf:value "textType information" ] ; - skos:definition "This is a test entry"@en ] . + ontolex:canonicalForm [ ontolex:writtenRep "test"@en ] ; + ontolex:sense [ + skos:definition "This is a test entry"@en ; + lexinfo:temporalQualifier [ rdf:value "time information" ] ; + lexinfo:geographic [ rdf:value "geographic information" ] ; + lexinfo:domain [ rdf:value "domain information" ] ; + lexinfo:frequency [ rdf:value "frequency information" ] ; + lexinfo:attitude [ rdf:value "attitude information" ] ; + lexinfo:normativity [ rdf:value "normativity information" ] ; + lexinfo:meaningType [ rdf:value "meaningType information" ] ; + lexinfo:textType [ rdf:value "textType information" ] ; + lexinfo:hint [ rdf:value "hint information" ] ; + lexinfo:socioCultural [ rdf:value "socioCultural information" ] + ] . [] a lime:Lexicon ; dc:title "Test 7 - Usage" ; diff --git a/tests/test8.ttl b/tests/test8.ttl index 9ff0e6c..1381938 100644 --- a/tests/test8.ttl +++ b/tests/test8.ttl @@ -5,9 +5,8 @@ @prefix rdf: . <#Probe> a ontolex:LexicalEntry ; - lexinfo:etymology [ rdf:value "aus slow."@de ], - [ rdf:value "mhd. [Lexer Wb. III 324]"@de ] ; - ontolex:canonicalForm [ ontolex:writtenRep "Probe"@de ] . + ontolex:canonicalForm [ ontolex:writtenRep "Probe"@de ] ; + lexinfo:etymology [ rdf:value "aus slow."@de , "mhd. [Lexer Wb. III 324]"@de ] . [] a lime:Lexicon ; dc:title "Test 8 - Etymology" ; diff --git a/tests/test9.ttl b/tests/test9.ttl index 7e447f0..53462bd 100644 --- a/tests/test9.ttl +++ b/tests/test9.ttl @@ -4,16 +4,17 @@ @prefix ontolex: . @prefix rdf: . -<#M012340> rdf:value "burcht"@nl . - <#borcht> a ontolex:LexicalEntry ; - lexinfo:relatedTerm <#M012340> ; - ontolex:canonicalForm [ ontolex:writtenRep "borcht"@nl ] ; - ontolex:sense [ lexinfo:antonym <#anto> ; - lexinfo:hypernym <#hyp> ; - lexinfo:hyponym <#hypo> ; - lexinfo:meronymTerm <#mero> ; - lexinfo:synonym <#syn> ] . + ontolex:canonicalForm [ ontolex:writtenRep "borcht"@nl ] ; + lexinfo:relatedTerm <#M012340> ; + ontolex:sense [ + lexinfo:synonym <#syn> ; + lexinfo:hyponym <#hypo> ; + lexinfo:hypernym <#hyp> ; + lexinfo:antonym <#anto> ; + lexinfo:meronymTerm <#mero> ] . + +<#M012340> rdf:value "burcht"@nl . [] a lime:Lexicon ; dc:title "Test 8 - Etymology" ;