コード例 #1
0
ファイル: BioMaterial.py プロジェクト: jaeshleman/pyMAGE2RDF
 def processSubSection(self, *args, **kwargs):
     classDictionary = {'Compound':Compound, 
                        #from BioMaterial_assnlist 
                        "LabeledExtract":LabeledExtract,
                        "BioSource":BioSource, 
                        "BioSample":BioSample}
     Identifiable.iterateProcessSubSections(self, classDictionary)
コード例 #2
0
 def __init__(self):
     '''
     Constructor
     '''
     Identifiable.__init__(self)
     self.chip = None
     self.probeOrder = []
コード例 #3
0
 def __init__(self):
     '''
     Constructor
     '''
     Identifiable.__init__(self)
     self.chip = None
     self.probeOrder = []
コード例 #4
0
ファイル: BioMaterial.py プロジェクト: jaeshleman/pyMAGE2RDF
 def processSubSection(self, *args, **kwargs):
     classDictionary = {
         'Compound': Compound,
         #from BioMaterial_assnlist
         "LabeledExtract": LabeledExtract,
         "BioSource": BioSource,
         "BioSample": BioSample
     }
     Identifiable.iterateProcessSubSections(self, classDictionary)
コード例 #5
0
 def processSubSection(self, *args, **kwargs):
     try:
         Identifiable.processSubSection(
             self, subClass=Parameter,
             subClassKey="Parameter")  #, nodes = nodes)
     except:
         pass
     self.assessAttributes()
     self.internalGraph()
コード例 #6
0
ファイル: BioAssayData.py プロジェクト: jaeshleman/pyMAGE2RDF
 def processSubSection(self, *args, **kwargs):
     classDictionary = {"MeasuredBioAssayData":MeasuredBioAssayData,
                        "DerivedBioAssayData":DerivedBioAssayData,
                        #from Experiment section:
                         "MeasuredBioAssayData_ref": MeasuredBioAssayData,
                         "DerivedBioAssayData_ref": DerivedBioAssayData}
     for subClassKey, subClass in classDictionary.iteritems():
         if self.subsections.get(subClassKey) == None:
             self.subsections[subClassKey] = []
         Identifiable.processSubSection(self, subClass, subClassKey) 
コード例 #7
0
ファイル: Person.py プロジェクト: jaeshleman/pyMAGE2RDF
 def processSubSection(self, *args, **kwargs):
     '''Terminal process.
     '''
     subNodes = self.domObject.getElementsByTagName("Organization_ref")
     try:
         Identifiable.processSubSection(self,Organization, "Organization_ref", subNodes)
     except: print "failed in Person Internally"
     try:
         self.assessAttributes()
     except: pass
     self.internalGraph()
コード例 #8
0
 def processSubSection(self, subClass = None, subClassKey =None,nodes = None,
                       classDictionary = None, *args, **kwargs):
     '''function to call to process AuditAndSecurity's subsections
     '''
     classDictionary = {"Contact_assnlist":Contact}#, "Organization":Organization,
     for subClassKey, subClass in classDictionary.iteritems():
         try:
             Identifiable.processSubSection(self, subClass = subClass, subClassKey = subClassKey,
                                            nodes = nodes, classDictionary = classDictionary)
         except:
             print "did not get through subsection %s within AuditAndSecurity"%subClassKey
コード例 #9
0
ファイル: BioAssayData.py プロジェクト: jaeshleman/pyMAGE2RDF
 def processSubSection(self, *args, **kwargs):
     classDictionary = {
         "MeasuredBioAssayData": MeasuredBioAssayData,
         "DerivedBioAssayData": DerivedBioAssayData,
         #from Experiment section:
         "MeasuredBioAssayData_ref": MeasuredBioAssayData,
         "DerivedBioAssayData_ref": DerivedBioAssayData
     }
     for subClassKey, subClass in classDictionary.iteritems():
         if self.subsections.get(subClassKey) == None:
             self.subsections[subClassKey] = []
         Identifiable.processSubSection(self, subClass, subClassKey)
コード例 #10
0
ファイル: BioAssayData.py プロジェクト: jaeshleman/pyMAGE2RDF
 def processSubSection(self, subClass = None, subClassKey = None, nodes = None,
                   classDictionary = None,
                   *args, **kwargs):
     if subClass != None:
         Identifiable.processSubSection(self, subClass, subClassKey, nodes, classDictionary)
     if classDictionary == None:
         classDictionary = {'QuantitationTypeDimension_ref':QuantitationTypeDimension,
                            'CompositeSequenceDimension_ref':CompositeSequenceDimension, #DesignElementDimensionList?
                            "BioDataValues_assn":BioDataValues, #  may need to go straight to BioDataCube
                            "Transformation":Transformation,
                            "DesignElementDimension_assnref":DesignElementDimensionList,
                            }
     self.iterateProcessSubSections(classDictionary)
コード例 #11
0
ファイル: Person.py プロジェクト: jaeshleman/pyMAGE2RDF
 def processSubSection(self, *args, **kwargs):
     '''Terminal process.
     '''
     subNodes = self.domObject.getElementsByTagName("Organization_ref")
     try:
         Identifiable.processSubSection(self, Organization,
                                        "Organization_ref", subNodes)
     except:
         print "failed in Person Internally"
     try:
         self.assessAttributes()
     except:
         pass
     self.internalGraph()
コード例 #12
0
ファイル: Experiment.py プロジェクト: jaeshleman/pyMAGE2RDF
 def processSubSection(self, *args, **kwargs):
     classDictionary = {"BioAssayData_assnreflist":BioAssayData,
                        "Person_ref": Person, "Organization_ref":Organization,
                        #"Description": Description, 
                        "BioAssays_assnreflist":BioAssay
                        }
     try:
         self.assessAttributes()
     except:
         pass
     for subClassKey, subClass in classDictionary.iteritems():
         if self.subsections.get(subClassKey) == None:
             self.subsections[subClassKey] = []
         Identifiable.processSubSection(self, subClass, subClassKey)
コード例 #13
0
ファイル: Contact.py プロジェクト: jaeshleman/pyMAGE2RDF
 def processSubSection(self, subClass = None, subClassKey = None, nodes = None,
                       classDictionary = None, *args, **kwargs):
     '''
     Imports Person/Organization to avoid conflicts.
     '''
     from Person import Person
     from Organization import Organization
     classDictionary = {'Person':Person, "Organization":Organization}
     for subClassKey, subClass in classDictionary.iteritems():
         try:
             Identifiable.processSubSection(self, subClass = subClass, subClassKey = subClassKey,
                                            nodes = None, classDictionary = classDictionary)
         except:
             pass
     self.internalGraph()
コード例 #14
0
 def processSubSection(self,
                       subClass=None,
                       subClassKey=None,
                       nodes=None,
                       classDictionary=None,
                       *args,
                       **kwargs):
     '''function to call to process AuditAndSecurity's subsections
     '''
     classDictionary = {
         "Contact_assnlist": Contact
     }  #, "Organization":Organization,
     for subClassKey, subClass in classDictionary.iteritems():
         try:
             Identifiable.processSubSection(self,
                                            subClass=subClass,
                                            subClassKey=subClassKey,
                                            nodes=nodes,
                                            classDictionary=classDictionary)
         except:
             print "did not get through subsection %s within AuditAndSecurity" % subClassKey
コード例 #15
0
ファイル: BioAssayData.py プロジェクト: jaeshleman/pyMAGE2RDF
 def processSubSection(self,
                       subClass=None,
                       subClassKey=None,
                       nodes=None,
                       classDictionary=None,
                       *args,
                       **kwargs):
     if subClass != None:
         Identifiable.processSubSection(self, subClass, subClassKey, nodes,
                                        classDictionary)
     if classDictionary == None:
         classDictionary = {
             'QuantitationTypeDimension_ref': QuantitationTypeDimension,
             'CompositeSequenceDimension_ref':
             CompositeSequenceDimension,  #DesignElementDimensionList?
             "BioDataValues_assn":
             BioDataValues,  #  may need to go straight to BioDataCube
             "Transformation": Transformation,
             "DesignElementDimension_assnref": DesignElementDimensionList,
         }
     self.iterateProcessSubSections(classDictionary)
コード例 #16
0
 def processSubSection(self,
                       subClass=None,
                       subClassKey=None,
                       nodes=None,
                       classDictionary=None,
                       *args,
                       **kwargs):
     '''
     Imports Person/Organization to avoid conflicts.
     '''
     from Person import Person
     from Organization import Organization
     classDictionary = {'Person': Person, "Organization": Organization}
     for subClassKey, subClass in classDictionary.iteritems():
         try:
             Identifiable.processSubSection(self,
                                            subClass=subClass,
                                            subClassKey=subClassKey,
                                            nodes=None,
                                            classDictionary=classDictionary)
         except:
             pass
     self.internalGraph()
コード例 #17
0
ファイル: BioMaterial.py プロジェクト: jaeshleman/pyMAGE2RDF
 def processSubSection(self, *args,**kwargs):
     classDictionary = {"Compound_ref":Compound, 
                        "Treatment":Treatment
                        }
     Identifiable.iterateProcessSubSections(self, classDictionary)
コード例 #18
0
 def __init__(self, *params):
     '''
     Constructor
     '''
     Identifiable.__init__(self)
     self.URI = None
コード例 #19
0
ファイル: BioAssayData.py プロジェクト: jaeshleman/pyMAGE2RDF
 def internalGraph(self):
     Identifiable.noInteralGraph(self)
コード例 #20
0
ファイル: Experiment.py プロジェクト: jaeshleman/pyMAGE2RDF
 def processSubSection(self, *args, **kwargs):
     Identifiable.processSubSection(self,subClass = Experiment, subClassKey = "Experiment")
コード例 #21
0
 def internalGraph(self, *args, **kwargs):
     '''No instances for rdf necessary'''
     Identifiable.noInteralGraph(self)
コード例 #22
0
 def processSubSection(self, *args, **kwargs):
     subClass = CompositeSequences
     subClassKey = 'CompositeSequences_assnreflist'
     nodes = self.domObject.getElementsByTagName(subClassKey)
     Identifiable.processSubSection(self, subClass, subClassKey, nodes)
コード例 #23
0
ファイル: Experiment.py プロジェクト: jaeshleman/pyMAGE2RDF
 def processSubSection(self, *args, **kwargs):
     classDictionary = {"Experiment_assnlist": ExperimentList,
                        "Experiment":Experiment}
     Identifiable.processSubSection(self, subClass = ExperimentList, subClassKey = "Experiment_assnlist",
                                    classDictionary = classDictionary)
コード例 #24
0
 def __init__(self):
     Identifiable.__init__(self)
コード例 #25
0
ファイル: Array.py プロジェクト: jaeshleman/pyMAGE2RDF
 def internalGraph(self, *args, **kwargs):
     Identifiable.noInteralGraph(self)
コード例 #26
0
ファイル: BioAssayData.py プロジェクト: jaeshleman/pyMAGE2RDF
 def internalGraph(self):
     Identifiable.noInteralGraph(self)
コード例 #27
0
ファイル: BioMaterial.py プロジェクト: jaeshleman/pyMAGE2RDF
 def processSubSection(self, *args, **kwargs):
     classDictionary = {"Compound_ref": Compound, "Treatment": Treatment}
     Identifiable.iterateProcessSubSections(self, classDictionary)
コード例 #28
0
 def internalGraph(self, *args, **kwargs):
     '''No instances for rdf necessary'''
     Identifiable.noInteralGraph(self)
コード例 #29
0
ファイル: BioAssayData.py プロジェクト: jaeshleman/pyMAGE2RDF
 def internalGraph(self, *args, **kwargs):
     Identifiable.noInteralGraph(self)  #make no triples for package
コード例 #30
0
ファイル: BioAssay.py プロジェクト: jaeshleman/pyMAGE2RDF
 def internalGraph(self, *args, **kwargs):
     if self.__class__.__name__== 'BioAssay':
         Identifiable.noInteralGraph(self)
     else:
         Identifiable.internalGraph(self)
         Identifiable.addInstanceLabel(self, labelKey = 'name')
コード例 #31
0
ファイル: BioAssay.py プロジェクト: jaeshleman/pyMAGE2RDF
 def internalGraph(self, *args, **kwargs):
     if self.__class__.__name__ == 'BioAssay':
         Identifiable.noInteralGraph(self)
     else:
         Identifiable.internalGraph(self)
         Identifiable.addInstanceLabel(self, labelKey='name')
コード例 #32
0
ファイル: BioAssay.py プロジェクト: jaeshleman/pyMAGE2RDF
 def internalGraph(self, *args, **kwargs):
     Identifiable.noInteralGraph(self)
コード例 #33
0
 def __init__(self):
     Identifiable.__init__(self)
     self.featureOrder = []
コード例 #34
0
ファイル: Parameter.py プロジェクト: jaeshleman/pyMAGE2RDF
 def processSubSection(self, *args, **kwargs):
     try:
         Identifiable.processSubSection(self, subClass = Parameter, subClassKey = "Parameter")#, nodes = nodes)
     except: pass
     self.assessAttributes()
     self.internalGraph()
コード例 #35
0
ファイル: Array.py プロジェクト: jaeshleman/pyMAGE2RDF
 def processSubSection(self, *args, **kwargs):
     Identifiable.processSubSection(self, Array, "Array_ref")
コード例 #36
0
 def add_node(self, node: Identifiable):
     self.nodes.append(node)
     node.index = len(self.nodes) - 1
     for row in self.adj_mat:
         row.append(0)
     self.adj_mat.append([0] * (len(self.adj_mat) + 1))
コード例 #37
0
 def __init__(self):
     '''
     Constructor
     '''
     Identifiable.__init__(self)
コード例 #38
0
ファイル: BioMaterial.py プロジェクト: jaeshleman/pyMAGE2RDF
 def internalGraph(self, *args, **kwargs):
     if self.__class__.__name__ == "BioMaterialPackage":
         Identifiable.noInteralGraph(self)
     else:
         Identifiable.internalGraph(self)
         Identifiable.addInstanceLabel(self, labelKey="name")
コード例 #39
0
ファイル: Experiment.py プロジェクト: jaeshleman/pyMAGE2RDF
 def internalGraph(self, *args, **kwargs):
     '''Empty method prevents instances from being created.
     Instances of items within will be created if 'internalGraph'
     method is enabled with subClasses.
     '''
     Identifiable.noInteralGraph(self)
コード例 #40
0
ファイル: BioAssayData.py プロジェクト: jaeshleman/pyMAGE2RDF
 def internalGraph(self, *args, **kwargs):
     Identifiable.noInteralGraph(self)  #make no triples for package
コード例 #41
0
ファイル: Experiment.py プロジェクト: jaeshleman/pyMAGE2RDF
 def __init__(self):
     '''
     Constructor
     '''
     Identifiable.__init__(self)
     self.instanceOfClass = 'http://mged.sourceforge.net/ontologies/MGEDOntology.owl#Experiment'
コード例 #42
0
 def __init__(self):
     Identifiable.__init__(self)
     self.featureOrder = []
コード例 #43
0
ファイル: Experiment.py プロジェクト: jaeshleman/pyMAGE2RDF
 def internalGraph(self, *args, **kwargs):
     '''reactivates internal graph, makes instance'''
     Identifiable.internalGraph(self)
コード例 #44
0
ファイル: BioAssay.py プロジェクト: jaeshleman/pyMAGE2RDF
 def __init__(self):
     Identifiable.__init__(self)
コード例 #45
0
ファイル: BioMaterial.py プロジェクト: jaeshleman/pyMAGE2RDF
 def internalGraph(self, *args, **kwargs):
     if self.__class__.__name__ == "BioMaterialPackage":
         Identifiable.noInteralGraph(self)
     else:
         Identifiable.internalGraph(self)
         Identifiable.addInstanceLabel(self, labelKey="name")
コード例 #46
0
 def processSubSection(self, *args, **kwargs):
     subClass = CompositeSequences
     subClassKey = 'CompositeSequences_assnreflist'
     nodes = self.domObject.getElementsByTagName(subClassKey)
     Identifiable.processSubSection(self, subClass, subClassKey, nodes)
コード例 #47
0
 def internalGraph(self, *args, **kwargs):
     Identifiable.internalGraph(self)
     Identifiable.addInstanceLabel(self, labelKey="name")
コード例 #48
0
ファイル: Parameter.py プロジェクト: jaeshleman/pyMAGE2RDF
 def __init__(self):
     '''
     Constructor
     '''
     Identifiable.__init__(self)