annotate bin/rdfdb @ 2050:7ed414bdaab9

wip porting asco to TS and not-jquery
author drewp@bigasterisk.com
date Wed, 11 May 2022 00:07:13 -0700
parents f8ab10f4c80b
children 412f798baf0c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
796
37d05bd17b10 rdfdb first pass
drewp@bigasterisk.com
parents:
diff changeset
1 #!bin/python
1866
3c523c71da29 pyflakes cleanups and some refactors
Drew Perttula <drewp@bigasterisk.com>
parents: 1858
diff changeset
2 import run_local # noqa
1699
bbe05d5c6a8f move rdfdb.service to rdfdb repo
Drew Perttula <drewp@bigasterisk.com>
parents: 1692
diff changeset
3 import os
1873
f001d689b3e2 more py3 and typing fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1866
diff changeset
4 from rdflib import URIRef
1699
bbe05d5c6a8f move rdfdb.service to rdfdb repo
Drew Perttula <drewp@bigasterisk.com>
parents: 1692
diff changeset
5 from light9 import networking, showconfig
bbe05d5c6a8f move rdfdb.service to rdfdb repo
Drew Perttula <drewp@bigasterisk.com>
parents: 1692
diff changeset
6 import rdfdb.service
924
dcab422615ca working on local->global sub action. creation of new file in rdfdb is still a problem
drewp@bigasterisk.com
parents: 921
diff changeset
7
1699
bbe05d5c6a8f move rdfdb.service to rdfdb repo
Drew Perttula <drewp@bigasterisk.com>
parents: 1692
diff changeset
8 rdfdb.service.main(
1858
7772cc48e016 reformat all python
drewp@bigasterisk.com
parents: 1699
diff changeset
9 dirUriMap={
1873
f001d689b3e2 more py3 and typing fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1866
diff changeset
10 os.environ['LIGHT9_SHOW'].encode('ascii').rstrip(b'/') + b'/':
f001d689b3e2 more py3 and typing fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1866
diff changeset
11 URIRef(showconfig.showUri() + '/')
1858
7772cc48e016 reformat all python
drewp@bigasterisk.com
parents: 1699
diff changeset
12 },
1699
bbe05d5c6a8f move rdfdb.service to rdfdb repo
Drew Perttula <drewp@bigasterisk.com>
parents: 1692
diff changeset
13 prefixes={
1873
f001d689b3e2 more py3 and typing fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1866
diff changeset
14 'show': URIRef(showconfig.showUri() + '/'),
f001d689b3e2 more py3 and typing fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1866
diff changeset
15 '': URIRef('http://light9.bigasterisk.com/'),
f001d689b3e2 more py3 and typing fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1866
diff changeset
16 'rdf': URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#'),
f001d689b3e2 more py3 and typing fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1866
diff changeset
17 'rdfs': URIRef('http://www.w3.org/2000/01/rdf-schema#'),
f001d689b3e2 more py3 and typing fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1866
diff changeset
18 'xsd': URIRef('http://www.w3.org/2001/XMLSchema#'),
f001d689b3e2 more py3 and typing fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1866
diff changeset
19 'effect': URIRef('http://light9.bigasterisk.com/effect/'),
1925
f8ab10f4c80b better prefix for shorter n3 files in this theater
Drew Perttula <drewp@bigasterisk.com>
parents: 1873
diff changeset
20 'dev': URIRef('http://light9.bigasterisk.com/theater/skyline/device/'),
1699
bbe05d5c6a8f move rdfdb.service to rdfdb repo
Drew Perttula <drewp@bigasterisk.com>
parents: 1692
diff changeset
21 },
bbe05d5c6a8f move rdfdb.service to rdfdb repo
Drew Perttula <drewp@bigasterisk.com>
parents: 1692
diff changeset
22 port=networking.rdfdb.port,
1858
7772cc48e016 reformat all python
drewp@bigasterisk.com
parents: 1699
diff changeset
23 )