Source code for rdflib.plugins.sparql.results.graph

from rdflib import Graph

from rdflib.query import Result, ResultParser


[docs]class GraphResultParser(ResultParser):
[docs] def parse(self, source, content_type): res = Result("CONSTRUCT") # hmm - or describe?type_) res.graph = Graph() res.graph.parse(source, format=content_type) return res