#NEWLINE# def flask( self , in_headers = False , url = 'http://demos.gsi.dit.upm.es/senpy/senpy.jsonld' ) : #NEWLINE# #INDENT# '\n        Return the values and error to be used in flask\n        ' #NEWLINE# js = self . jsonld ( ) #NEWLINE# headers = None #NEWLINE# if in_headers : #NEWLINE# #INDENT# ctx = js [ '@context' ] #NEWLINE# headers = { #NEWLINE# #INDENT# 'Link' : ( '<%s>;rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' % url ) , #NEWLINE# #UNINDENT# } #NEWLINE# del js [ '@context' ] #NEWLINE# #UNINDENT# return FlaskResponse ( json . dumps ( js , indent = 4 ) , status = self . get ( 'status' , 200 ) , headers = headers , mimetype = 'application/json' )