File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33odmlConversion searches for odML files within a provided SEARCHDIR
44and converts them to the newest odML format version.
5- Original files will never be overwritten.
5+ Original files will never be overwritten. New files will be
6+ written either to a new directory at the current or a specified
7+ location.
68
79Usage: odmlconversion [-r] [-o OUT] SEARCHDIR
810
1315 -o OUT Output directory. Must exist if specified.
1416 If not specified, output files will be
1517 written to the current directory.
16- -r Search recursively.
18+ -r Search recursively. Directory structures
19+ will not be retained.
1720 -h --help Show this screen.
1821 --version Show version.
1922"""
2326import sys
2427import tempfile
2528
29+ from docopt import docopt
30+
2631try :
2732 from StringIO import StringIO
2833except ImportError :
2934 from io import StringIO
3035
3136import odml
3237
33- from docopt import docopt
3438from odml .tools .version_converter import VersionConverter as VerConf
3539
3640try :
Original file line number Diff line number Diff line change 33odmlToRDF searches for odML files within a provided SEARCHDIR
44and converts them to the newest odML format version and
55exports all found and resulting odML files to XML formatted RDF.
6- Original files will never be overwritten.
6+ Original files will never be overwritten. New files will be
7+ written either to a new directory at the current or a specified
8+ location.
79
810Usage: odmltordf [-r] [-o OUT] SEARCHDIR
911
1416 -o OUT Output directory. Must exist if specified.
1517 If not specified, output files will be
1618 written to the current directory.
17- -r Search recursively.
19+ -r Search recursively. Directory structures
20+ will not be retained.
1821 -h --help Show this screen.
1922 --version Show version.
2023"""
2427import sys
2528import tempfile
2629
30+ from docopt import docopt
31+
2732try :
2833 from StringIO import StringIO
2934except ImportError :
3035 from io import StringIO
3136
3237import odml
3338
34- from docopt import docopt
3539from odml .tools .odmlparser import ODMLReader , ODMLWriter
3640from odml .tools .version_converter import VersionConverter as VerConf
3741
You can’t perform that action at this time.
0 commit comments