Mercurial > code > home > repos > light9
changeset 1449:b76017f0b622
more default namespaces for output n3 files. the empty one doesn't get used though :(
Ignore-this: 2ced520db61a29f444c32588cbbcaada
author | drewp@bigasterisk.com |
---|---|
date | Sat, 11 Jun 2016 22:27:10 +0000 |
parents | 931d2dafca12 |
children | ddb7622698a8 |
files | light9/rdfdb/graphfile.py |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/rdfdb/graphfile.py Sat Jun 11 22:08:37 2016 +0000 +++ b/light9/rdfdb/graphfile.py Sat Jun 11 22:27:10 2016 +0000 @@ -76,7 +76,14 @@ self.lastWriteTimestamp = 0 # mtime from the last time _we_ wrote - self.namespaces = {} + self.namespaces = { + '': '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/', + } if not os.path.exists(path): # can't start notify until file exists