// TODO
}
boolean allTriples = true ;
for ( String url : urls ) {
Lang lang = RDFLanguages.filenameToLang(url, RDFLanguages.NQUADS) ;
if ( lang != null && RDFLanguages.isQuads(lang) ) {
allTriples = false ;
break ;
}
}
if ( allTriples && graphName == null ) {
loadDefaultGraph(urls) ;
return ;
}
if ( graphName == null ) {
loadQuads(urls) ;
return ;
}
// graphName != null
if ( !allTriples ) {
for ( String url : urls ) {
Lang lang = RDFLanguages.filenameToLang(url, RDFLanguages.NQUADS) ;
if ( lang == null )
// Does not happen due to default above.
cmdError("File suffix not recognized: " + url) ;
if ( lang != null && !RDFLanguages.isTriples(lang) )
cmdError("Can only load triples into a named model: " + url) ;