@@ -48,7 +48,7 @@ class TaxonomyParser extends Bio2RDFizer{
48
48
),
49
49
"file_url " => "ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdmp.zip "
50
50
),
51
- "gi2taxid_protein " => array (
51
+ /* "gi2taxid_protein" => array(
52
52
"filename" => "gi_taxid_prot.zip",
53
53
"contents" => array(
54
54
"gi_taxid_prot" => "gi_taxid_prot.dmp",
@@ -62,7 +62,7 @@ class TaxonomyParser extends Bio2RDFizer{
62
62
),
63
63
"file_url" => "ftp://ftp.ncbi.nih.gov/pub/taxonomy/gi_taxid_nucl.zip"
64
64
)
65
- );
65
+ */ );
66
66
67
67
function __construct ($ argv ) {
68
68
parent ::__construct ($ argv , "taxonomy " );
@@ -325,13 +325,20 @@ private function citations()
325
325
continue ;
326
326
}
327
327
$ 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
+
328
335
parent ::addRDF (
329
336
parent ::describeIndividual ($ c , $ a [1 ], $ this ->getVoc ()."Citation " ).
330
337
parent ::describeClass ($ this ->getVoc ()."Citation " , "Citation " ).
331
338
parent ::triplifyString ($ c , parent ::getVoc ()."citation-key " , $ a [1 ]).
332
339
($ 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 ])): "" )
335
342
);
336
343
if (isset ($ a [6 ])) {
337
344
$ taxids = explode (" " , trim ($ a [6 ]));
0 commit comments