@@ -477,7 +477,9 @@ function OBO2RDF($abbv)
477
477
$ id = str_replace ( array ("( " ,") " ), array ("_ " ,"" ), $ id );
478
478
$ tid = $ ns .": " .$ id ;
479
479
} else if ($ a [0 ] == "name " ) {
480
- $ buf .= parent ::describeClass ($ tid ,addslashes (stripslashes ($ a [1 ])));
480
+ $ name = addslashes (stripslashes ($ a [1 ]));
481
+ $ buf .= parent ::describeClass ($ tid ,$ name );
482
+ $ buf .= parent ::triplifyString ($ tid ,"dc:title " ,$ name );
481
483
} else if ($ a [0 ] == "is_a " ) {
482
484
if (FALSE !== ($ pos = strpos ($ a [1 ],"! " ))) $ a [1 ] = substr ($ a [1 ],0 ,$ pos -1 );
483
485
$ buf .= parent ::triplify ($ tid ,"rdfs:subPropertyOf " ,"obo_vocabulary: " .strtolower ($ a [1 ]));
@@ -505,7 +507,7 @@ function OBO2RDF($abbv)
505
507
} else if ($ a [0 ] == "name " ) {
506
508
// $t = parent::triplifyString($tid,"rdfs:label",str_replace(array("\"", "'"), array("","\\\'"), stripslashes($a[1]))." [$tid]");
507
509
$ label = str_replace (array ("\"" , "' " ), array ("" ,"\\\' " ), stripslashes ($ a [1 ]));
508
- $ t = parent ::describeIndividual ($ tid ,$ label ,"owl:Class " );
510
+ $ t = parent ::describeIndividual ($ tid ,$ label ,"owl:Class " , $ label );
509
511
$ t .= parent ::triplify ($ tid ,"rdfs:isDefinedBy " ,$ ouri );
510
512
$ min .= $ t ;
511
513
$ buf .= $ t ;
0 commit comments