Skip to content

Commit e26e18c

Browse files
#125 remove JSON and XML from serialization-related CLIs
1 parent 7d92f3f commit e26e18c

3 files changed

Lines changed: 4 additions & 14 deletions

File tree

libhdt/tests/hdt2rdfNotMapping.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,8 @@ int main(int argc, char **argv) {
7979
notation = N3;
8080
} else if(rdfFormat=="turtle") {
8181
notation = TURTLE;
82-
} else if(rdfFormat=="rdfxml") {
83-
notation = XML;
8482
} else {
85-
cout << "ERROR: The RDF output format must be one of: (ntriples, n3, turtle, rdfxml)" << endl;
83+
cout << "ERROR: The RDF output format must be one of: (ntriples, n3, turtle)" << endl;
8684
help();
8785
return 1;
8886
}

libhdt/tools/hdt2rdf.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,10 @@ int main(int argc, char **argv) {
9191
notation = NTRIPLES;
9292
} else if(rdfFormat=="n3") {
9393
notation = TURTLE;
94-
} else if(rdfFormat=="json") {
95-
notation = JSON;
96-
}
97-
else if(rdfFormat=="turtle") {
94+
} else if(rdfFormat=="turtle") {
9895
notation = TURTLE;
99-
} else if(rdfFormat=="rdfxml") {
100-
notation = XML;
10196
} else {
102-
cerr << "ERROR: The RDF output format must be one of: (ntriples, n3, turtle, rdfxml, json)" << endl;
97+
cerr << "ERROR: The RDF output format must be one of: (ntriples, n3, turtle)" << endl;
10398
help();
10499
return 1;
105100
}

libhdt/tools/rdf2hdt.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void help() {
5151
cout << "\t-i\t\t\tAlso generate index to solve all triple patterns." << endl;
5252
cout << "\t-c\t<configfile>\tHDT Config options file" << endl;
5353
cout << "\t-o\t<options>\tHDT Additional options (option1=value1;option2=value2;...)" << endl;
54-
cout << "\t-f\t<format>\tFormat of the RDF input (n3, ntriples or nt, nquads or nq, rdfxml or xml, turtle or ttl)" << endl;
54+
cout << "\t-f\t<format>\tFormat of the RDF input (n3, ntriples or nt, nquads or nq, turtle or ttl)" << endl;
5555
cout << "\t-B\t\"<base URI>\"\tBase URI of the dataset." << endl;
5656
cout << "\t-V\tPrints the HDT version number." << endl;
5757
cout << "\t-p\tPrints a progress indicator." << endl;
@@ -191,15 +191,12 @@ int main(int argc, char **argv) {
191191
notation = NQUAD;
192192
else if (rdfFormat == "turtle" || rdfFormat == "ttl")
193193
notation = TURTLE;
194-
else if (rdfFormat == "rdfxml" || rdfFormat == "xml")
195-
notation = XML;
196194
// -f or file extension detected, but didn't match any valid format.
197195
else {
198196
cerr << "ERROR: Detected \"" << rdfFormat << "\" input format. Must be one of:" << endl
199197
<< "\t- n3" << endl
200198
<< "\t- ntriples or nt" << endl
201199
<< "\t- nquads or nq" << endl
202-
<< "\t- rdfxml or xml" << endl
203200
<< "\t- turtle or ttl" << endl;
204201

205202
return 1;

0 commit comments

Comments
 (0)