view galaxy-dist/tools/SADI/MergeRDFGraphs.py @ 2:977c838e3442 draft default tip

New dir structure, README improved, tests added and RDF merge tool created
author mikel-egana-aranguren <mikel.egana.aranguren@gmail.com>
date Fri, 25 Apr 2014 14:41:12 +0200
parents
children
line wrap: on
line source


import sys
from rdflib.graph import Graph

def main(argv):
    store = Graph()
    for inputFileName in argv:
        try:
            store.parse(inputFileName)
        except Exception:
            pass
    print store.serialize()

if __name__ == "__main__":
    main(sys.argv[1:])