Skip to content

Commit 28f810e

Browse files
authored
[SCHEMATIC-210] Add attribute to nones data model (#1555)
Update example_test_nones.model.csv component and add new invalid manifest with nones
1 parent 6eeacd5 commit 28f810e

File tree

3 files changed

+242
-6
lines changed

3 files changed

+242
-6
lines changed

tests/data/example_test_nones.model.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ CRAM,,,,"Genome Build, Genome FASTA",,FALSE,ValidValue,,
1919
CSV/TSV,,,,Genome Build,,FALSE,ValidValue,,
2020
Genome Build,,,"GRCh37, GRCh38, GRCm38, GRCm39",,,TRUE,DataProperty,,
2121
Genome FASTA,,,,,,TRUE,DataProperty,,
22-
MockComponent,,,,"Component, Check List, Check List Enum, Check List Like, Check List Like Enum, Check List Strict, Check List Enum Strict, Check Regex List, Check Regex List Like, Check Regex List Strict, Check Regex Single, Check Regex Format, Check Regex Integer, Check Num, Check Float, Check Int, Check String, Check URL,Check Match at Least, Check Match at Least values, Check Match Exactly, Check Match Exactly values, Check Recommended, Check Ages, Check Unique, Check Range, Check Date, Check NA",,FALSE,DataType,,
22+
MockComponent,,,,"Component, Cancer Type, Check List, Check List Enum, Check List Like, Check List Like Enum, Check List Strict, Check List Enum Strict, Check Regex List, Check Regex List Like, Check Regex List Strict, Check Regex Single, Check Regex Format, Check Regex Integer, Check Num, Check Float, Check Int, Check String, Check URL,Check Match at Least, Check Match at Least values, Check Match Exactly, Check Match Exactly values, Check Recommended, Check Ages, Check Unique, Check Range, Check Date, Check NA",,FALSE,DataType,,
2323
Check List,list,,,,,FALSE,DataProperty,,
2424
Check List Enum,list,,"ab, cd, ef, gh",,,FALSE,DataProperty,,
2525
Check List Like,list like,,,,,FALSE,DataProperty,,

tests/data/example_test_nones.model.jsonld

Lines changed: 236 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@
309309
},
310310
{
311311
"@id": "bts:Skin"
312+
},
313+
{
314+
"@id": "bts:None"
312315
}
313316
],
314317
"sms:displayName": "Cancer Type",
@@ -468,6 +471,23 @@
468471
"sms:required": "sms:false",
469472
"sms:validationRules": []
470473
},
474+
{
475+
"@id": "bts:None",
476+
"@type": "rdfs:Class",
477+
"rdfs:comment": "TBD",
478+
"rdfs:label": "None",
479+
"rdfs:subClassOf": [
480+
{
481+
"@id": "bts:CancerType"
482+
}
483+
],
484+
"schema:isPartOf": {
485+
"@id": "http://schema.biothings.io"
486+
},
487+
"sms:displayName": "None",
488+
"sms:required": "sms:false",
489+
"sms:validationRules": []
490+
},
471491
{
472492
"@id": "bts:Biospecimen",
473493
"@type": "rdfs:Class",
@@ -877,12 +897,36 @@
877897
{
878898
"@id": "bts:Component"
879899
},
900+
{
901+
"@id": "bts:CancerType"
902+
},
880903
{
881904
"@id": "bts:CheckList"
882905
},
906+
{
907+
"@id": "bts:CheckListEnum"
908+
},
909+
{
910+
"@id": "bts:CheckListLike"
911+
},
912+
{
913+
"@id": "bts:CheckListLikeEnum"
914+
},
915+
{
916+
"@id": "bts:CheckListStrict"
917+
},
918+
{
919+
"@id": "bts:CheckListEnumStrict"
920+
},
883921
{
884922
"@id": "bts:CheckRegexList"
885923
},
924+
{
925+
"@id": "bts:CheckRegexListLike"
926+
},
927+
{
928+
"@id": "bts:CheckRegexListStrict"
929+
},
886930
{
887931
"@id": "bts:CheckRegexSingle"
888932
},
@@ -953,6 +997,25 @@
953997
"schema:isPartOf": {
954998
"@id": "http://schema.biothings.io"
955999
},
1000+
"sms:displayName": "Check List",
1001+
"sms:required": "sms:false",
1002+
"sms:validationRules": [
1003+
"list"
1004+
]
1005+
},
1006+
{
1007+
"@id": "bts:CheckListEnum",
1008+
"@type": "rdfs:Class",
1009+
"rdfs:comment": "TBD",
1010+
"rdfs:label": "CheckListEnum",
1011+
"rdfs:subClassOf": [
1012+
{
1013+
"@id": "bts:DataProperty"
1014+
}
1015+
],
1016+
"schema:isPartOf": {
1017+
"@id": "http://schema.biothings.io"
1018+
},
9561019
"schema:rangeIncludes": [
9571020
{
9581021
"@id": "bts:Ab"
@@ -967,7 +1030,111 @@
9671030
"@id": "bts:Gh"
9681031
}
9691032
],
970-
"sms:displayName": "Check List",
1033+
"sms:displayName": "Check List Enum",
1034+
"sms:required": "sms:false",
1035+
"sms:validationRules": [
1036+
"list"
1037+
]
1038+
},
1039+
{
1040+
"@id": "bts:CheckListLike",
1041+
"@type": "rdfs:Class",
1042+
"rdfs:comment": "TBD",
1043+
"rdfs:label": "CheckListLike",
1044+
"rdfs:subClassOf": [
1045+
{
1046+
"@id": "bts:DataProperty"
1047+
}
1048+
],
1049+
"schema:isPartOf": {
1050+
"@id": "http://schema.biothings.io"
1051+
},
1052+
"sms:displayName": "Check List Like",
1053+
"sms:required": "sms:false",
1054+
"sms:validationRules": [
1055+
"list like"
1056+
]
1057+
},
1058+
{
1059+
"@id": "bts:CheckListLikeEnum",
1060+
"@type": "rdfs:Class",
1061+
"rdfs:comment": "TBD",
1062+
"rdfs:label": "CheckListLikeEnum",
1063+
"rdfs:subClassOf": [
1064+
{
1065+
"@id": "bts:DataProperty"
1066+
}
1067+
],
1068+
"schema:isPartOf": {
1069+
"@id": "http://schema.biothings.io"
1070+
},
1071+
"schema:rangeIncludes": [
1072+
{
1073+
"@id": "bts:Ab"
1074+
},
1075+
{
1076+
"@id": "bts:Cd"
1077+
},
1078+
{
1079+
"@id": "bts:Ef"
1080+
},
1081+
{
1082+
"@id": "bts:Gh"
1083+
}
1084+
],
1085+
"sms:displayName": "Check List Like Enum",
1086+
"sms:required": "sms:false",
1087+
"sms:validationRules": [
1088+
"list like"
1089+
]
1090+
},
1091+
{
1092+
"@id": "bts:CheckListStrict",
1093+
"@type": "rdfs:Class",
1094+
"rdfs:comment": "TBD",
1095+
"rdfs:label": "CheckListStrict",
1096+
"rdfs:subClassOf": [
1097+
{
1098+
"@id": "bts:DataProperty"
1099+
}
1100+
],
1101+
"schema:isPartOf": {
1102+
"@id": "http://schema.biothings.io"
1103+
},
1104+
"sms:displayName": "Check List Strict",
1105+
"sms:required": "sms:false",
1106+
"sms:validationRules": [
1107+
"list strict"
1108+
]
1109+
},
1110+
{
1111+
"@id": "bts:CheckListEnumStrict",
1112+
"@type": "rdfs:Class",
1113+
"rdfs:comment": "TBD",
1114+
"rdfs:label": "CheckListEnumStrict",
1115+
"rdfs:subClassOf": [
1116+
{
1117+
"@id": "bts:DataProperty"
1118+
}
1119+
],
1120+
"schema:isPartOf": {
1121+
"@id": "http://schema.biothings.io"
1122+
},
1123+
"schema:rangeIncludes": [
1124+
{
1125+
"@id": "bts:Ab"
1126+
},
1127+
{
1128+
"@id": "bts:Cd"
1129+
},
1130+
{
1131+
"@id": "bts:Ef"
1132+
},
1133+
{
1134+
"@id": "bts:Gh"
1135+
}
1136+
],
1137+
"sms:displayName": "Check List Enum Strict",
9711138
"sms:required": "sms:false",
9721139
"sms:validationRules": [
9731140
"list strict"
@@ -988,6 +1155,46 @@
9881155
},
9891156
"sms:displayName": "Check Regex List",
9901157
"sms:required": "sms:false",
1158+
"sms:validationRules": [
1159+
"list",
1160+
"regex match [a-f]"
1161+
]
1162+
},
1163+
{
1164+
"@id": "bts:CheckRegexListLike",
1165+
"@type": "rdfs:Class",
1166+
"rdfs:comment": "TBD",
1167+
"rdfs:label": "CheckRegexListLike",
1168+
"rdfs:subClassOf": [
1169+
{
1170+
"@id": "bts:DataProperty"
1171+
}
1172+
],
1173+
"schema:isPartOf": {
1174+
"@id": "http://schema.biothings.io"
1175+
},
1176+
"sms:displayName": "Check Regex List Like",
1177+
"sms:required": "sms:false",
1178+
"sms:validationRules": [
1179+
"list like",
1180+
"regex match [a-f]"
1181+
]
1182+
},
1183+
{
1184+
"@id": "bts:CheckRegexListStrict",
1185+
"@type": "rdfs:Class",
1186+
"rdfs:comment": "TBD",
1187+
"rdfs:label": "CheckRegexListStrict",
1188+
"rdfs:subClassOf": [
1189+
{
1190+
"@id": "bts:DataProperty"
1191+
}
1192+
],
1193+
"schema:isPartOf": {
1194+
"@id": "http://schema.biothings.io"
1195+
},
1196+
"sms:displayName": "Check Regex List Strict",
1197+
"sms:required": "sms:false",
9911198
"sms:validationRules": [
9921199
"list strict",
9931200
"regex match [a-f]"
@@ -1343,7 +1550,13 @@
13431550
"rdfs:label": "Ab",
13441551
"rdfs:subClassOf": [
13451552
{
1346-
"@id": "bts:CheckList"
1553+
"@id": "bts:CheckListEnum"
1554+
},
1555+
{
1556+
"@id": "bts:CheckListLikeEnum"
1557+
},
1558+
{
1559+
"@id": "bts:CheckListEnumStrict"
13471560
}
13481561
],
13491562
"schema:isPartOf": {
@@ -1360,7 +1573,13 @@
13601573
"rdfs:label": "Cd",
13611574
"rdfs:subClassOf": [
13621575
{
1363-
"@id": "bts:CheckList"
1576+
"@id": "bts:CheckListEnum"
1577+
},
1578+
{
1579+
"@id": "bts:CheckListLikeEnum"
1580+
},
1581+
{
1582+
"@id": "bts:CheckListEnumStrict"
13641583
}
13651584
],
13661585
"schema:isPartOf": {
@@ -1377,7 +1596,13 @@
13771596
"rdfs:label": "Ef",
13781597
"rdfs:subClassOf": [
13791598
{
1380-
"@id": "bts:CheckList"
1599+
"@id": "bts:CheckListEnum"
1600+
},
1601+
{
1602+
"@id": "bts:CheckListLikeEnum"
1603+
},
1604+
{
1605+
"@id": "bts:CheckListEnumStrict"
13811606
}
13821607
],
13831608
"schema:isPartOf": {
@@ -1394,7 +1619,13 @@
13941619
"rdfs:label": "Gh",
13951620
"rdfs:subClassOf": [
13961621
{
1397-
"@id": "bts:CheckList"
1622+
"@id": "bts:CheckListEnum"
1623+
},
1624+
{
1625+
"@id": "bts:CheckListLikeEnum"
1626+
},
1627+
{
1628+
"@id": "bts:CheckListEnumStrict"
13981629
}
13991630
],
14001631
"schema:isPartOf": {
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Component,Cancer Type,Check List,Check List Enum,Check List Like,Check List Like Enum,Check List Strict,Check List Enum Strict,Check Regex List,Check Regex List Like,Check Regex List Strict,Check Regex Single,Check Regex Format,Check Regex Integer,Check Num,Check Float,Check Int,Check String,Check URL,Check Match at Least,Check Match at Least values,Check Match Exactly,Check Match Exactly values,Check Recommended,Check Ages,Check Unique,Check Range,Check Date,Check NA
2+
MockComponent,None,"ab,cd","ab,cd",ab,ab,"ab,cd","ab,cd","a,c,f",a,"a,c,f",a,a,,6,99.65,7,valid,https://www.google.com/,1738,1738,8085,8085,,6571,str1,75,10/21/2022,Not Applicable
3+
MockComponent,None,"ab,cd","ab,cd",,,"ab,cd","ab,cd","a,c,f","a,c,f","a,c,f",,b,1234,71,58.4,3,valid,https://www.google.com/,9965,9965,9965,9965,,6571,str2,80,October 21 2022,8
4+
MockComponent,None,,,,,,,,,,b,,683902,,,,,,,,,,present,,,,,
5+
MockComponent,InvalidValue,"ab,cd","ab,cd","ab,cd","ab,cd","ab,cd","ab,cd","b,d,f","b,d,f","b,d,f",b,c,0,6.5,62.3,2,valid,https://www.google.com/,79,79,7,7,,32849,str4,55,21/10/2022,695

0 commit comments

Comments
 (0)