@@ -48,7 +48,7 @@ class TaxonomyParser extends Bio2RDFizer{
4848 ),
4949 "file_url " => "ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdmp.zip "
5050 ),
51- "gi2taxid_protein " => array (
51+ /* "gi2taxid_protein" => array(
5252 "filename" => "gi_taxid_prot.zip",
5353 "contents" => array(
5454 "gi_taxid_prot" => "gi_taxid_prot.dmp",
@@ -62,7 +62,7 @@ class TaxonomyParser extends Bio2RDFizer{
6262 ),
6363 "file_url" => "ftp://ftp.ncbi.nih.gov/pub/taxonomy/gi_taxid_nucl.zip"
6464 )
65- );
65+ */ );
6666
6767 function __construct ($ argv ) {
6868 parent ::__construct ($ argv , "taxonomy " );
@@ -325,13 +325,20 @@ private function citations()
325325 continue ;
326326 }
327327 $ c = parent ::getRes ()."citation-id- " .$ a [0 ];
328+ $ seealso = isset ($ a [4 ])?trim ($ a [4 ]):"" ;
329+ if ($ seealso ) {
330+ $ seealso = str_replace (array ("lx: DOI " ,"http;// " ), array ("http://dx.doi.org/ " ,"http:// " ), $ seealso );
331+ if (strlen ($ seealso ) > 2 and !strstr ($ seealso ,"http " )) $ seealso = "http:// " .$ seealso ;
332+ $ seelalso = parent ::triplify ($ c , "rdfs:seeAlso " , $ seealso );
333+ }
334+
328335 parent ::addRDF (
329336 parent ::describeIndividual ($ c , $ a [1 ], $ this ->getVoc ()."Citation " ).
330337 parent ::describeClass ($ this ->getVoc ()."Citation " , "Citation " ).
331338 parent ::triplifyString ($ c , parent ::getVoc ()."citation-key " , $ a [1 ]).
332339 ($ a [2 ]=="0 " ?"" :parent ::triplify ($ c , parent ::getVoc ()."x-pubmed " , "pubmed: " .$ a [2 ])).
333- (! isset ( $ a [ 4 ])? "" : parent :: triplify ( $ c , " rdfs:seeAlso " , str_replace ( " lx: DOI " , " http://dx.doi.org/ " , $ a [ 4 ]))) .
334- (! isset ($ a [5 ])? "" : parent ::triplifyString ($ c , parent ::getVoc ()."text " , str_replace ("\"" ,"" , $ a [5 ])))
340+ $ seealso .
341+ (( isset ($ a [5 ]) and $ a [ 5 ])? parent ::triplifyString ($ c , parent ::getVoc ()."text " , str_replace ("\"" ,"" , $ a [5 ])): "" )
335342 );
336343 if (isset ($ a [6 ])) {
337344 $ taxids = explode (" " , trim ($ a [6 ]));
0 commit comments