view bin/rdfdb @ 1933:c81f86f3d65a

effecteval is mostly obsolete, but now it can at least show a list of effects used in a song (which seq can too) Ignore-this: c24e4c1c3ccd839e79b1b2fb19ee996a
author Drew Perttula <drewp@bigasterisk.com>
date Sun, 02 Jun 2019 11:37:14 +0000
parents f8ab10f4c80b
children 412f798baf0c
line wrap: on
line source

#!bin/python
import run_local  # noqa
import os
from rdflib import URIRef
from light9 import networking, showconfig
import rdfdb.service

rdfdb.service.main(
    dirUriMap={
        os.environ['LIGHT9_SHOW'].encode('ascii').rstrip(b'/') + b'/':
        URIRef(showconfig.showUri() + '/')
    },
    prefixes={
        'show': URIRef(showconfig.showUri() + '/'),
        '': URIRef('http://light9.bigasterisk.com/'),
        'rdf': URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#'),
        'rdfs': URIRef('http://www.w3.org/2000/01/rdf-schema#'),
        'xsd': URIRef('http://www.w3.org/2001/XMLSchema#'),
        'effect': URIRef('http://light9.bigasterisk.com/effect/'),
        'dev': URIRef('http://light9.bigasterisk.com/theater/skyline/device/'),
    },
    port=networking.rdfdb.port,
)