def __get_gp_plan(self, gp):
        """
        Request the planner a search plan for a given gp and returns the plan as a graph.
        :param gp:
        :return:
        """
        query = urlencode({'gp': gp})
        response = requests.get('{}/plan?'.format(self.__planner) + query, headers={'Accept': 'text/turtle'})
        graph = Graph()
        try:
            graph.parse(source=StringIO.StringIO(response.text), format='turtle')
        except BadSyntax:
            pass
        return graph
def __get_gp_plan ( self , gp ) : query = urlencode ( { 'gp' : gp } ) response = requests . get ( '{}/plan?' . format ( self . __planner ) + query , headers = { 'Accept' : 'text/turtle' } ) graph = Graph ( ) try : graph . parse ( source = StringIO . StringIO ( response . text ) , format = 'turtle' ) except BadSyntax : pass return graph
Request the planner a search plan for a given gp and returns the plan as a graph.
        :param gp:
        :return: