@@ -403,7 +403,7 @@ function MGI_Geno_Disease()
403403 if (!$ allele ) {echo "ignoring " .$ a [0 ].PHP_EOL ;continue ;}
404404
405405 $ alleles = explode ("| " ,strtolower ($ a [2 ]));
406-
406+ $ genotype = $ a [ 0 ];
407407 $ diseases = explode (", " ,$ a [7 ]);
408408 foreach ($ diseases AS $ d ) {
409409 $ disease = "omim: $ d " ;
@@ -413,6 +413,7 @@ function MGI_Geno_Disease()
413413 parent ::addRDF (
414414 parent ::describeIndividual ($ id , $ label , $ this ->getVoc ()."Allele-Disease-Association " ).
415415 parent ::describeClass ($ this ->getVoc ()."Allele-Disease-Association " ,"MGI Allele-Disease Association " ).
416+ parent ::triplifyString ($ id ,$ this ->getVoc ()."genotype-string " ,$ genotype ).
416417 parent ::triplify ($ id ,$ this ->getVoc ()."allele " ,$ allele ).
417418 parent ::triplify ($ id ,$ this ->getVoc ()."disease " ,$ disease )
418419 );
@@ -450,6 +451,7 @@ function MGI_Geno_NotDisease()
450451 continue ;
451452 }
452453
454+ $ genotype = $ a [0 ];
453455 $ alleles = explode ("| " ,strtolower ($ a [2 ]));
454456 $ diseases = explode (", " ,$ a [7 ]);
455457 foreach ($ diseases AS $ d ) {
@@ -462,6 +464,7 @@ function MGI_Geno_NotDisease()
462464 parent ::describeIndividual ($ id , $ label , $ this ->getVoc ()."Allele-Disease-Non-Association " ).
463465 parent ::describeClass ($ this ->getVoc ()."Allele-Disease-Non-Association " ,"MGI Allele-Disease Non-Association " ).
464466 parent ::triplify ($ id ,$ this ->getVoc ()."allele " ,$ allele ).
467+ parent ::triplifyString ($ id ,$ this ->getVoc ()."genotype-string " ,$ genotype ).
465468 parent ::triplify ($ id ,$ this ->getVoc ()."disease " ,$ disease ).
466469 parent ::triplifyString ($ id ,$ this ->getVoc ()."is-negated " ,"true " )
467470 );
0 commit comments