Mercurial > hg > NamedIdentityManager
diff src/de/mpiwg/itgroup/nimanager/luceneIndices/Importer.java @ 1:b8333fab0d95
minor bugs
author | dwinter |
---|---|
date | Thu, 30 Jun 2011 12:43:35 +0200 |
parents | 1384a0d382fa |
children | f986e74583eb |
line wrap: on
line diff
--- a/src/de/mpiwg/itgroup/nimanager/luceneIndices/Importer.java Thu Jun 30 11:44:24 2011 +0200 +++ b/src/de/mpiwg/itgroup/nimanager/luceneIndices/Importer.java Thu Jun 30 12:43:35 2011 +0200 @@ -116,7 +116,11 @@ static public void importFromMPIWG_persons(String args[]) throws IOException, RepositoryException, TripleStoreHandlerException{ Logger.getRootLogger().setLevel(Level.DEBUG); BasicConfigurator.configure(); - TripleStoreHandler th = new TripleStoreHandler("jdbc:virtuoso://virtuoso.mpiwg-berlin.mpg.de:1111", "dba", "wa55er"); + if (args.length < 2) { + System.out.println("usage: import user pw offset limit "); + System.exit(1); + } + TripleStoreHandler th = new TripleStoreHandler("jdbc:virtuoso://virtuoso.mpiwg-berlin.mpg.de:1111",args[0], args[1]); String[] indexFields=new String[]{"http://xmlns.com/foaf/0.1/name","http://xmlns.com/foaf/0.1/lastName","http://xmlns.com/foaf/0.1/firstName"};