def new_curve(self, name):
    if isinstance(name, Literal):
        name = str(name)
    uri = self.graph.sequentialUri((self.currentSong + '/curve-'))
    cr = self.curveResources[uri] = CurveResource(self.graph, uri)
    cr.newCurve(ctx=self.currentSong, label=Literal(name))
    (s, e) = self.get_time_range()
    cr.curve.points.extend([(s, 0), (e, 0)])
    ctx = self.currentSong
    self.graph.patch(Patch(addQuads=[(self.currentSong, L9['curve'], uri, ctx)]))
    cr.saveCurve()
def new_curve(self, name):
    if isinstance(name, Literal):
        name = str(name)
    uri = self.graph.sequentialUri((self.currentSong + '/curve-'))
    cr = self.curveResources[uri] = CurveResource(self.graph, uri)
    cr.newCurve(ctx=self.currentSong, label=Literal(name))
    (s, e) = self.get_time_range()
    cr.curve.points.extend([(s, 0), (e, 0)])
    ctx = self.currentSong
    self.graph.patch(Patch(addQuads=[(self.currentSong, L9['curve'], uri, ctx)]))
    cr.saveCurve()