@@ -276,7 +276,7 @@ def create_response(count: int, bindings: List[Dict], return_count: bool) -> Dic
276276 return {
277277 "head" : {
278278 "link" : [],
279- "vars" : ["subject" , "displayId" , "version" , "name" , "description" , "type" , "percentMatch" , "strandAlignment" , "CIGAR" ]
279+ "vars" : ["subject" , "displayId" , "version" , "name" , "description" , "type" , "role" , "sbolType" , " percentMatch" , "strandAlignment" , "CIGAR" ]
280280 },
281281 "results" : {"distinct" : False , "ordered" : True , "bindings" : bindings }
282282 }
@@ -314,16 +314,16 @@ def create_binding(subject: str, displayId: Optional[str], version: Optional[int
314314 "description" : description ,
315315 "type" : _type ,
316316 "role" : role ,
317- "sboltype " : sbol_type ,
317+ "sbolType " : sbol_type ,
318318 "order_by" : order_by ,
319319 "percentMatch" : str (percentMatch ) if percentMatch != - 1 else None ,
320320 "strandAlignment" : strandAlignment if strandAlignment != 'N/A' else None ,
321321 "CIGAR" : CIGAR if CIGAR != 'N/A' else None
322322 }
323323 for key , value in attributes .items ():
324324 if value is not None :
325- datatype = "http://www.w3.org/2001/XMLSchema#uri" if key in ["subject" , "type" , "role" , "sboltype " ] else "http://www.w3.org/2001/XMLSchema#string"
326- ltype = "uri" if key in ["subject" , "type" , "role" , "sboltype " ] else "literal"
325+ datatype = "http://www.w3.org/2001/XMLSchema#uri" if key in ["subject" , "type" , "role" , "sbolType " ] else "http://www.w3.org/2001/XMLSchema#string"
326+ ltype = "uri" if key in ["subject" , "type" , "role" , "sbolType " ] else "literal"
327327 binding [key ] = {"type" : ltype , "value" : str (value ), "datatype" : datatype } if not key == "order_by" else order_by
328328 return binding
329329
0 commit comments