16
16
17
17
def get_options (argv ):
18
18
try :
19
- opts , args = getopt .getopt (argv , 'hs:o:ji ' )
19
+ opts , args = getopt .getopt (argv , 'hs:o:j ' )
20
20
except getopt .GetoptError :
21
21
usage ()
22
22
sys .exit (1 )
23
23
24
24
endpoints_file = None
25
25
output = DEFAULT_OUTPUT_PATH
26
26
is_json = False
27
- interlinking = False
28
27
for opt , arg in opts :
29
28
if opt == '-h' :
30
29
usage ()
@@ -35,8 +34,6 @@ def get_options(argv):
35
34
output = arg
36
35
elif opt == '-j' :
37
36
is_json = True
38
- elif opt == '-i' :
39
- interlinking = True
40
37
41
38
if not endpoints_file :
42
39
usage ()
@@ -55,7 +52,7 @@ def get_options(argv):
55
52
56
53
if '.json' not in output :
57
54
output += '.json'
58
- return endpoints , output , interlinking
55
+ return endpoints , output
59
56
60
57
61
58
def usage ():
@@ -65,12 +62,11 @@ def usage():
65
62
' <path/to/endpoints.txt> - path to a text file containing a list of SPARQL endpoint URLs\n '
66
63
' <path/to/output.json> - name of output file\n '
67
64
'parameters\n '
68
- ' -j\t if set, the endpoints file will be handled as JSON instead of plain text\n '
69
- ' -i\t if set, interlinks between the endpoints will be searched (computationally expensive)'
65
+ ' -j\t if set, the endpoints file will be handled as JSON instead of plain text'
70
66
)
71
67
print (usage_str .format (program = sys .argv [0 ]),)
72
68
73
69
74
70
if __name__ == '__main__' :
75
- endpoints , output , interlinking = get_options (sys .argv [1 :])
76
- create_rdfmts (endpoints , output , interlinking )
71
+ endpoints , output = get_options (sys .argv [1 :])
72
+ create_rdfmts (endpoints , output )
0 commit comments