def newCurve(self, ctx, label):
    '\n        Save type/label for a new :Curve resource.\n        Pass the ctx where the main curve data (not the points) will go.\n        '
    if hasattr(self, 'curve'):
        raise ValueError(('CurveResource already has a curve %r' % self.curve))
    self.graph.patch(Patch(addQuads=[(self.uri, RDF.type, L9['Curve'], ctx), (self.uri, RDFS.label, label, ctx)]))
    self.curve = Curve(self.uri)
    self.curve.points.extend([(0, 0)])
    self.saveCurve()
    self.watchCurvePointChanges()
Save type/label for a new :Curve resource.
Pass the ctx where the main curve data (not the points) will go.
def newCurve(self, ctx, label):
    '\n        Save type/label for a new :Curve resource.\n        Pass the ctx where the main curve data (not the points) will go.\n        '
    if hasattr(self, 'curve'):
        raise ValueError(('CurveResource already has a curve %r' % self.curve))
    self.graph.patch(Patch(addQuads=[(self.uri, RDF.type, L9['Curve'], ctx), (self.uri, RDFS.label, label, ctx)]))
    self.curve = Curve(self.uri)
    self.curve.points.extend([(0, 0)])
    self.saveCurve()
    self.watchCurvePointChanges()