Skip to content

Commit c883ec1

Browse files
committed
update create_rdfmts script
1 parent 35a2ee9 commit c883ec1

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Scripts/create_rdfmts.py

+5-9
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@
1616

1717
def get_options(argv):
1818
try:
19-
opts, args = getopt.getopt(argv, 'hs:o:ji')
19+
opts, args = getopt.getopt(argv, 'hs:o:j')
2020
except getopt.GetoptError:
2121
usage()
2222
sys.exit(1)
2323

2424
endpoints_file = None
2525
output = DEFAULT_OUTPUT_PATH
2626
is_json = False
27-
interlinking = False
2827
for opt, arg in opts:
2928
if opt == '-h':
3029
usage()
@@ -35,8 +34,6 @@ def get_options(argv):
3534
output = arg
3635
elif opt == '-j':
3736
is_json = True
38-
elif opt == '-i':
39-
interlinking = True
4037

4138
if not endpoints_file:
4239
usage()
@@ -55,7 +52,7 @@ def get_options(argv):
5552

5653
if '.json' not in output:
5754
output += '.json'
58-
return endpoints, output, interlinking
55+
return endpoints, output
5956

6057

6158
def usage():
@@ -65,12 +62,11 @@ def usage():
6562
' <path/to/endpoints.txt> - path to a text file containing a list of SPARQL endpoint URLs\n'
6663
' <path/to/output.json> - name of output file\n'
6764
'parameters\n'
68-
' -j\tif set, the endpoints file will be handled as JSON instead of plain text\n'
69-
' -i\tif set, interlinks between the endpoints will be searched (computationally expensive)'
65+
' -j\tif set, the endpoints file will be handled as JSON instead of plain text'
7066
)
7167
print(usage_str.format(program=sys.argv[0]),)
7268

7369

7470
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

Comments
 (0)