#NEWLINE# def __init__( self , ident = None , key = None , **kwargs ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# super ( DataObject , self ) . __init__ ( ** kwargs ) #NEWLINE# #UNINDENT# except BadConf : #NEWLINE# #INDENT# raise Exception ( 'You may need to connect to a database before continuing.' ) #NEWLINE# #UNINDENT# self . properties = [ ] #NEWLINE# self . owner_properties = [ ] #NEWLINE# if ( ident is not None ) : #NEWLINE# #INDENT# self . _id = R . URIRef ( ident ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _id = None #NEWLINE# #UNINDENT# if ( key is not None ) : #NEWLINE# #INDENT# self . setKey ( ident ) #NEWLINE# #UNINDENT# self . _variable = R . Variable ( ( 'V' + str ( RND . random ( ) ) ) ) #NEWLINE# DataObject . attach_property_ex ( self , RDFTypeProperty ) #NEWLINE# self . rdf_type_property . set ( self . rdf_type )