Hi,

I am trying to harvest the data that is stored in the DSpace through a
java program. I am having a problems, the code that i wrote does work
i tried to debug and I found that the listIdentifier() method is
returning null value.

To my knowledge I think the code I wrote couldn't find where the
dspace is or i should need to add some stuff to make it work but i
dont understand how. I dont understand few methods at all

1.DSpaceOAICatalog(java.util.Properties properties) : I dont
understand what goes in the properties param.

2.java.lang.String createMetadata(java.lang.Object nativeItem) : I
dont understand this method atall..do i have to use this method on
order to harvest and what does the nativemethod take. I have read the
documentation but nothing is give about crosswalk.


I dont know whether i am
missing something. please help me if you could.


sample code that I wrote which doesn't work, please help me how to
proceed further, i am not using any servlets or jsp, it a standalone
java program:

public void harvest(){
       try{

               Context context=new Context();
               DSpaceOAICatalog oai=null;
                Map map=new HashMap();
               
map=oai.listIdentifiers("2007-02-07T16:32:37Z","2007-03-07T16:32:37Z",
null,null);

if(map!=null){
               Set set=map.entrySet();
               Iterator i=set.iterator();
               while(i.hasNext()){
                       Map.Entry me=(Map.Entry)i.next();
                       System.out.println(me.getKey()+":" +me.getValue());
               }
  }
               System.out.println("success");


       } catch(Exception e){
               e.printStackTrace();

       }
   }



Your help is highly appreciated..

thanking you

Krishna

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to