-
Notifications
You must be signed in to change notification settings - Fork 1
/
hydra2java-rdf.py
executable file
·25 lines (22 loc) · 1.03 KB
/
hydra2java-rdf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/python
import argparse
import sys
import hydra2java_lib
def main():
parser = argparse.ArgumentParser()
parser.add_argument("-f", "--format", default="json-ld")
parser.add_argument("-t", "--type", default="interface")
parser.add_argument("-p", "--package", default="")
parser.add_argument("-d", "--destination", default="")
parser.add_argument("-a", "--no_annotations", action="store_true", default=False)
parser.add_argument("-m", "--members", default="all")
parser.add_argument("-l", "--delegate", action="store_true", default=False)
parser.add_argument("-s", "--supplemental_annotations", default="")
parser.add_argument("-c", "--collection_implementation", default="")
args = parser.parse_args()
gen = hydra2java_lib.Generator(args.format, args.type, args.package, args.destination,
args.no_annotations, args.members, args.delegate, args.supplemental_annotations,
args.collection_implementation)
gen.generate(sys.stdin)
if __name__ == '__main__':
main()