Ignore:
Timestamp:
17/04/08 17:15:36 (12 years ago)
Author:
cbyrom
Message:

Upgraded version of ingest codebranch - including major refactoring of the ingest
scripts to make more OO - allowing re-use and simplification of code + removal of reliance
on eXist DB to store data; this will now all be stored and looked up from the Postgres DB

Location:
TI01-discovery/branches/ingestAutomation-upgrade
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • TI01-discovery/branches/ingestAutomation-upgrade/OAIBatch/SchemaNameSpace.py

    r2508 r3797  
    1 # python class to change/correct namespaces to the latest ones used by NDG discovery 
    2 # 
    31import sys 
    42 
    53class SchemaNameSpace: 
    6     ''' ''' 
     4    '''  
     5    Class to change/correct namespaces to the latest ones used by NDG discovery 
     6    NB, only currently handles correction of DIF files 
     7    ''' 
    78    def __init__(self,infile,outfile,format): 
     9        ''' 
     10        Constructor - with the logic to do the namespace change 
     11        @param infile: file to correct namespaces in 
     12        @param outfile: file to create with the corrected namespaces 
     13        @param format: Format of file being processed.  DIF is the only format which currently is processed.    
     14        ''' 
    815        self.ff=open(infile,'r') 
    916        self.ww=open(outfile,'w') 
    1017        self.format= format 
    11         #print dir(self.ff) 
    12         #print dir(self.ww) 
    13         #print "format: %s" %self.format 
    1418        self.lines=self.ff.readlines() 
    1519        for self.line in self.lines: 
Note: See TracChangeset for help on using the changeset viewer.