@@ -753,7 +753,11 @@ def get_feature_schema(self, feature_schema_id):
753753 query_str = """query rootSchemaNodePyApi($rootSchemaNodeWhere: RootSchemaNodeWhere!){
754754 rootSchemaNode(where: $rootSchemaNodeWhere){%s}
755755 }""" % query .results_query_part (Entity .FeatureSchema )
756- res = self .execute (query_str , {'rootSchemaNodeWhere' : {'featureSchemaId' : feature_schema_id }})['rootSchemaNode' ]
756+ res = self .execute (
757+ query_str ,
758+ {'rootSchemaNodeWhere' : {
759+ 'featureSchemaId' : feature_schema_id
760+ }})['rootSchemaNode' ]
757761 res ['id' ] = res ['normalized' ]['featureSchemaId' ]
758762 return Entity .FeatureSchema (self , res )
759763
@@ -774,6 +778,7 @@ def get_feature_schemas(self, name_contains):
774778 }
775779 """ % query .results_query_part (Entity .FeatureSchema )
776780 params = {'search' : name_contains , 'filter' : {'status' : 'ALL' }}
781+
777782 def rootSchemaPayloadToFeatureSchema (client , payload ):
778783 # Technically we are querying for a Schema Node.
779784 # But the features are the same so we just grab the feature schema id
@@ -785,8 +790,7 @@ def rootSchemaPayloadToFeatureSchema(client, payload):
785790 rootSchemaPayloadToFeatureSchema ,
786791 ['rootSchemaNodes' , 'nextCursor' ])
787792
788- def create_ontology_from_feature_schemas (self , name ,
789- feature_schema_ids ):
793+ def create_ontology_from_feature_schemas (self , name , feature_schema_ids ):
790794 """
791795 Creates an ontology from a list of feature schema ids
792796
@@ -889,4 +893,3 @@ def create_feature_schema(self, normalized):
889893 # But the features are the same so we just grab the feature schema id
890894 res ['id' ] = res ['normalized' ]['featureSchemaId' ]
891895 return Entity .FeatureSchema (self , res )
892-
0 commit comments