view bin/rdfdb @ 1870:51a9b23db357

rm stubs/rdfdb; point mypy to the real code instead Ignore-this: cd59283a21e2e593682e105d6507a462
author Drew Perttula <drewp@bigasterisk.com>
date Mon, 27 May 2019 00:41:38 +0000
parents 3c523c71da29
children f001d689b3e2
line wrap: on
line source

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

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