diff --git a/RadLex.owl b/RadLex.owl index 17fd4c2..c6b317b 100644 --- a/RadLex.owl +++ b/RadLex.owl @@ -17567,7 +17567,6 @@ duplicate term FMA:51799 UMLS:C0035327 RID1104 - Vena centralis retinae vena centralis retinae Vena centralis retinae central retinal vein @@ -24242,7 +24241,6 @@ AND RID11556 - device-related complication Material-assoziierte Komplikation device-related complication @@ -41974,7 +41972,6 @@ values of <Index1> and <Index2> can be either integer numbers or for RID12509 - imaging acquisition rate Bildaufnahmerate imaging acquisition rate @@ -275294,7 +275291,6 @@ the node consisting of fat, are also normal. Large rounded nodes lymph nodes, 3 UMLS:C0022646 RID205 Playbook - Niere nephros ren ren (Nephros) @@ -390540,7 +390536,6 @@ Duplicate term RID2474 - Corpus sterni gladiolum Corpus sterni body of sternum @@ -395174,7 +395169,6 @@ Duplicate term FMA:9627 RID2493 - Musculus pectoralis major musculus pectoralis major Musculus pectoralis major pectoralis major muscle @@ -395938,7 +395932,6 @@ Duplicate term FMA:13109 RID2496 - Musculus pectoralis minor musculus pectoralis minor Musculus pectoralis minor pectoralis minor muscle @@ -445237,7 +445230,6 @@ FMA has same as pelvis RID2507 FMA:272934 RID26374 - Region des auditorischen Kortex Region des auditorischen Kortex region of auditory cortex @@ -445287,7 +445279,6 @@ FMA has same as pelvis RID2507 CMA:CO FMA:272936 RID26375 - Kernzone des auditorischen Kortex central opercular auditory area central opercular auditory cortex central opercular cortex @@ -445339,7 +445330,6 @@ FMA has same as pelvis RID2507 FMA:272938 RID26376 - Kernzone des rechten auditorischen Kortex core auditory cortex of right temporal lobe Kernzone des rechten auditorischen Kortex right core auditory cortex @@ -445389,7 +445379,6 @@ FMA has same as pelvis RID2507 FMA:272941 RID26377 - Kernzone des linken auditorischen Kortex core auditory cortex of left temporal lobe Kernzone des linken auditorischen Kortex left core auditory cortex @@ -446058,7 +446047,6 @@ FMA has same as pelvis RID2507 FMA:272974 RID26387 - kaudaler Teil des rechten auditorischen Kortex right C kaudaler Teil des rechten auditorischen Kortex right caudal auditory cortex @@ -446084,7 +446072,6 @@ FMA has same as pelvis RID2507 FMA:272977 RID26388 - kaudaler Teil des linken auditorischen Kortex left C kaudaler Teil des linken auditorischen Kortex left caudal auditory cortex @@ -446110,7 +446097,6 @@ FMA has same as pelvis RID2507 FMA:272983 RID26389 - kaudomedialer Teil des rechten auditorischen Kortex right CM kaudomedialer Teil des rechten auditorischen Kortex right caudomedial auditory cortex @@ -446199,7 +446185,6 @@ FMA has same as pelvis RID2507 FMA:272986 RID26390 - kaudomedialer Teil des linken auditorischen Kortex left CM kaudomedialer Teil des linken auditorischen Kortex left caudomedial auditory cortex @@ -590206,7 +590191,6 @@ Have "almost certainly" and "present" RID32018 external iliac lymph nodes set nodi iliaci externi - nodi lymphatici iliaci externi nodi lymphoidei iliaci externi external iliac lymph node group nodi lymphatici iliaci externi @@ -640430,7 +640414,6 @@ CausesObstructive uropathy occurs when urine cannot drain through a ureter (a tu RID34583 azygos continuation azygos continuation of inferior vena cava - azygous continuation of inferior vena cava Fortsetzung der Vena cava inferior durch die Vena azygos azygous continuation of inferior vena cava @@ -729754,7 +729737,6 @@ In the lung, a micronodule is defined as a nodule less than 3mm in size. FMA:74377 RID38837 - fibromuskulärer Teil der periurethralen Zone der Prostata fibromuscular part of peri-urethral zone of prostate fibromuskulärer Teil der periurethralen Zone der Prostata @@ -745594,7 +745576,6 @@ background prostate on DW images FMA:37493 RID39708 - proximale Epiphyse der distalen Phalanx des Daumens proximal epiphysis of distal phalanx of thumb proximale Epiphyse der distalen Phalanx des Daumens @@ -745607,7 +745588,6 @@ background prostate on DW images FMA:37494 RID39709 - proximale Epiphyse der distalen Phalanx des rechten Daumens proximal epiphysis of distal phalanx of right thumb proximale Epiphyse der distalen Phalanx des rechten Daumens @@ -745631,7 +745611,6 @@ background prostate on DW images FMA:37495 RID39710 - proximale Epiphyse der distalen Phalanx des linken Daumens proximal epiphysis of distal phalanx of left thumb proximale Epiphyse der distalen Phalanx des linken Daumens @@ -745644,7 +745623,6 @@ background prostate on DW images FMA:37498 RID39711 - proximale Epiphyse der Phalanx des Zeigefingers proximal epiphysis of phalanx of index finger proximale Epiphyse der Phalanx des Zeigefingers @@ -745793,7 +745771,6 @@ background prostate on DW images FMA:37510 RID39721 - proximale Epiphyse der Phalanx des Mittelfingers proximal epiphysis of phalanx of middle finger proximale Epiphyse der Phalanx des Mittelfingers @@ -745944,7 +745921,6 @@ background prostate on DW images FMA:37522 RID39731 - proximale Epiphyse der Phalanx des Ringfingers proximal epiphysis of phalanx of ring finger proximale Epiphyse der Phalanx des Ringfingers @@ -746074,7 +746050,6 @@ background prostate on DW images FMA:37534 RID39741 - proximale Epiphyse der Phalanx des kleinen Fingers proximal epiphysis of phalanx of little finger proximale Epiphyse der Phalanx des kleinen Fingers @@ -747273,7 +747248,6 @@ background prostate on DW images FMA:37614 RID39813 - distale Epiphyse der Phalanx des Zeigefingers distal epiphysis of phalanx of index finger distale Epiphyse der Phalanx des Zeigefingers @@ -747414,7 +747388,6 @@ background prostate on DW images FMA:37626 RID39823 - distale Epiphyse der Phalanx des Mittelfingers distal epiphysis of phalanx of middle finger distale Epiphyse der Phalanx des Mittelfingers @@ -747555,7 +747528,6 @@ background prostate on DW images FMA:37638 RID39833 - distale Epiphyse der Phalanx des Ringfingers distal epiphysis of phalanx of ring finger distale Epiphyse der Phalanx des Ringfingers @@ -747705,7 +747677,6 @@ background prostate on DW images FMA:37650 RID39843 - distale Epiphyse der Phalanx des kleinen Fingers distal epiphysis of phalanx of little finger distale Epiphyse der Phalanx des kleinen Fingers @@ -824103,7 +824074,6 @@ Enhancement from hypo on precontrast to iso on arterial phase does not qualify a RID43628 - Hickey view Aufnahme nach Hickey Hickey view @@ -842266,7 +842236,6 @@ Enhancement from hypo on precontrast to iso on arterial phase does not qualify a FMA:23242 RID44489 - margo medialis scapulae margo medialis scapulae medial border of scapula medial part of scapula @@ -919194,7 +919163,6 @@ of the nodule. RID474 - buttock gluteal region Glutealregion buttock diff --git a/tests/robot-report-profile.txt b/tests/robot-report-profile.txt index 00c1f4c..62fa8e4 100644 --- a/tests/robot-report-profile.txt +++ b/tests/robot-report-profile.txt @@ -1 +1,2 @@ -ERROR file:./tests/sparql/robot/leading_trailing_multi_whitespace.rq \ No newline at end of file +ERROR file:./tests/sparql/robot/leading_trailing_multi_whitespace.rq +ERROR file:./tests/sparql/robot/synonym_equal_to_label.rq diff --git a/tests/sparql/robot/synonym_equal_to_label.rq b/tests/sparql/robot/synonym_equal_to_label.rq new file mode 100644 index 0000000..a700efc --- /dev/null +++ b/tests/sparql/robot/synonym_equal_to_label.rq @@ -0,0 +1,22 @@ +PREFIX rdfs: +PREFIX rid: + +# +# Part of the RadLex ontology SPARQL test suite. Bindings to this query represent violations of the test. +# +# Test that no synonym repeats its own class's label exactly, in the same language. Such a synonym adds +# nothing. The match is exact: a synonym that differs from the label only in capitalization is not +# reported, because it often carries the correct form of a proper name. +# +# VIOLATIONS will be bindings that have, on ?entity, ?property, and ?value respectively: +# - The class. +# - The synonym property (rid:Synonym or a sub-property). +# - The synonym that repeats the label. +# +SELECT ?entity ?property ?value +WHERE { + ?property rdfs:subPropertyOf* rid:Synonym . + ?entity ?property ?value . + ?entity rdfs:label ?label . + FILTER(STR(?value) = STR(?label) && LANG(?value) = LANG(?label)) +}