Index: trunk/extensions/Wikidata/php-tools/DataImport.php |
— | — | @@ -32,8 +32,13 @@ |
33 | 33 | |
34 | 34 | $beginTime = time(); |
35 | 35 | $wgCommandLineMode = true; |
36 | | -$wdDefaultViewDataSet = 'uw'; |
| 36 | +$wdDefaultViewDataSet = 'sp'; |
37 | 37 | |
| 38 | +$arg = reset( $argv ); |
| 39 | +if ( $arg !== false ){ |
| 40 | + $wdDefaultViewDataSet = next( $argv ); |
| 41 | +} |
| 42 | + |
38 | 43 | /* |
39 | 44 | * User IDs to use during the import of both UMLS and Swiss-Prot |
40 | 45 | */ |
— | — | @@ -48,9 +53,9 @@ |
49 | 54 | |
50 | 55 | //$linkEC2GoFileName = "LinksEC2Go.txt"; |
51 | 56 | //$linkSwissProtKeyWord2GoFileName = "LinksSP2Go.txt"; |
52 | | -//$swissProtXMLFileName = "C:\Documents and Settings\mulligen\Bureaublad\uniprot_sprot.xml"; |
| 57 | +$swissProtXMLFileName = "C:\Documents and Settings\mulligen\Bureaublad\uniprot_sprot.xml"; |
53 | 58 | //$swissProtXMLFileName = "100000lines.xml"; |
54 | | -$swissProtXMLFileName = "C:\Documents and Settings\mulligen\Bureaublad\SPentriesForWPTest.xml"; |
| 59 | +//$swissProtXMLFileName = "C:\Documents and Settings\mulligen\Bureaublad\SPentriesForWPTest.xml"; |
55 | 60 | //$swissProtXMLFileName = "C:\Users\mulligen\Desktop\SPentriesForWPTest.xml"; |
56 | 61 | |
57 | 62 | //$wgUser->setID($nlmUserID); |