diff options
author | Niklas Lindström <lindstream@gmail.com> | 2013-07-19 16:22:40 +0200 |
---|---|---|
committer | Niklas Lindström <lindstream@gmail.com> | 2013-07-19 16:22:40 +0200 |
commit | b6e6c5d7fd614b503db6846950a6be7bbb2a0579 (patch) | |
tree | f37cb1e7ff2ac09700128447cd25f222273c89ca /rdflib/tools | |
parent | ac1ad897958889da457dde4850460d57f5fb1bc3 (diff) | |
download | rdflib-b6e6c5d7fd614b503db6846950a6be7bbb2a0579.tar.gz |
Do not add extra namespace bindings in rdfpipe (clutters output unnecessarily)
Diffstat (limited to 'rdflib/tools')
-rw-r--r-- | rdflib/tools/rdfpipe.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/rdflib/tools/rdfpipe.py b/rdflib/tools/rdfpipe.py index 129371b1..8e7dbb06 100644 --- a/rdflib/tools/rdfpipe.py +++ b/rdflib/tools/rdfpipe.py @@ -23,17 +23,6 @@ from rdflib.util import guess_format DEFAULT_INPUT_FORMAT = 'xml' DEFAULT_OUTPUT_FORMAT = 'n3' -NS_BINDINGS = { - 'rdf': RDF, - 'rdfs': RDFS, - 'owl': OWL, - 'xsd': XSD, - 'dc': "http://purl.org/dc/elements/1.1/", - 'dct': "http://purl.org/dc/terms/", - 'foaf': "http://xmlns.com/foaf/0.1/", - 'wot': "http://xmlns.com/wot/0.1/" -} - def parse_and_serialize(input_files, input_format, guess, outfile, output_format, ns_bindings, @@ -172,7 +161,7 @@ def main(): loglevel = logging.CRITICAL logging.basicConfig(level=loglevel) - ns_bindings = dict(NS_BINDINGS) + ns_bindings = {} if opts.ns: for ns_kw in opts.ns: pfx, uri = ns_kw.split('=') |