Пример #1
0
def writeCaptureDescription(graph, ctx, session, uri, dev, outPath,
                            settingsSubgraphCache, settings):
    graph.patch(Patch(addQuads=settings.statements(
        uri, ctx=ctx,
        settingRoot=URIRef('/'.join([
            showconfig.showUri(), 'capture', dev.rsplit('/')[1]])),
        settingsSubgraphCache=settingsSubgraphCache)))
    graph.patch(Patch(addQuads=[
        (dev, L9['capture'], uri, ctx),
        (session, L9['capture'], uri, ctx),
        (uri, RDF.type, L9['LightSample'], ctx),
        (uri, L9['imagePath'], URIRef('/'.join([
            showconfig.showUri(), outPath])), ctx),
        ]))
    graph.suggestPrefixes(ctx, {'cap': uri.rsplit('/', 1)[0] + '/',
                                'showcap': showconfig.showUri() + '/capture/'})
Пример #2
0
 def updateCamUrl(self):
     show = showconfig.showUri()
     self.picsUrl = self.graph.value(show, L9['vidrefCamRequest'])
     log.info("picsUrl now %r", self.picsUrl)
     if not self.picsUrl:
         return
     
     # this cannot yet survive being called a second time
     self._startRequest(str(self.picsUrl))
Пример #3
0
def getUri(appName, opts):
    return URIRef("%s/sessions/%s/%s" % (showconfig.showUri(), appName,
                                         quote(opts.session, safe='')))