""" :Author: Daniel Mohr :Email: daniel.mohr@dlr.de :Date: 2021-03-09, 2021-07-01, 2021-12-06 (last change). :License: GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007. """
""" :Author: Daniel Mohr :Email: daniel.mohr@dlr.de :Date: 2021-12-06 (last change). """ 'to define json-ld based on schema.org as a json schema.' description=description, epilog=epilog, formatter_class=argparse.RawDescriptionHelpFormatter) 'vocabulary', nargs='+', type=str, help='For these words from schema.org the output is generated.', metavar='word') '-indent', nargs=1, type=int, required=False, default=[4], dest='indent', help='In the output the elements will be indented ' + 'by this number of spaces. default: 4', metavar='i') '-cachefilename', nargs=1, type=str, required=False, default=[cachefilename], dest='cachefilename', help='We need data from schema.org. ' 'If you set cachefilename to an empty string, nothing is cached. ' 'If the file ends with common extension for compression, ' 'this comperession is used (e. g.: .gz, .lzma, .xz, .bz2). ' 'The file is created in the cachefilepath (see this option). ' 'default: "%s"' % cachefilename, metavar='f') tempfile.gettempdir(), 'json_schema_from_schema_org_' + getpass.getuser()) '-cachefilepath', nargs=1, type=str, required=False, default=[cachefilepath], dest='cachefilepath', help='This path is used for the cachefilename. ' 'If necessary, this directory will be created ' '(not the directory tree!). ' 'default: "%s"' % cachefilepath, metavar='p') |