Skip to content

Commit

Permalink
Revert overzealous tests changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kernc committed Dec 17, 2020
1 parent 2ed22f4 commit 7125cd7
Show file tree
Hide file tree
Showing 11 changed files with 216 additions and 137 deletions.
11 changes: 8 additions & 3 deletions tests/test1.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

<#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" ;
Expand Down
32 changes: 23 additions & 9 deletions tests/test10.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,33 @@
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

<#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" ;
Expand Down
43 changes: 33 additions & 10 deletions tests/test12.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix ns: <http://creativecommons.org/ns#> .
@prefix lime: <http://www.w3.org/ns/lemon/lime> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix lexinfo: <http://www.lexinfo.net/ontology/3.0/lexinfo#> .
@prefix lexicog: <http://www.w3.org/ns/lemon/lexicog#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix bibo: <http://purl.org/ontology/bibo/> .
@prefix ontolex: <http://www.w3.org/ns/lemon/ontolex#> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix tei: <http://www.tei-c.org/ns/1.0> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix lexicog: <http://www.w3.org/ns/lemon/lexicog#> .
@prefix lexinfo: <http://www.lexinfo.net/ontology/3.0/lexinfo#> .
Expand All @@ -7,22 +21,31 @@
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

<#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" ;
Expand Down
15 changes: 11 additions & 4 deletions tests/test2.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,17 @@
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

<#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" ;
Expand Down
13 changes: 8 additions & 5 deletions tests/test3.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<#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" ;
Expand Down
6 changes: 3 additions & 3 deletions tests/test4.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
@prefix ontolex: <http://www.w3.org/ns/lemon/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" ;
Expand Down
175 changes: 99 additions & 76 deletions tests/test5.ttl
Original file line number Diff line number Diff line change
@@ -1,110 +1,133 @@
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix lexinfo: <http://www.lexinfo.net/ontology/3.0/lexinfo#> .
@prefix lime: <http://www.w3.org/ns/lemon/lime#> .
@prefix ontolex: <http://www.w3.org/ns/lemon/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" ;
Expand Down
Loading

0 comments on commit 7125cd7

Please sign in to comment.