Skip to content

Commit

Permalink
Do not add extra namespace bindings in rdfpipe (clutters output unnec…
Browse files Browse the repository at this point in the history
…essarily)
  • Loading branch information
niklasl committed Jul 19, 2013
1 parent ac1ad89 commit b6e6c5d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions rdflib/tools/rdfpipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,6 @@
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,
Expand Down Expand Up @@ -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('=')
Expand Down

0 comments on commit b6e6c5d

Please sign in to comment.