FileGraphSetup loads .ttl extensions with TURTLE format rather than N3.

This commit is contained in:
Ted Lawless 2016-09-02 14:46:51 -04:00
parent 0d22fa2716
commit c77af47618

View file

@ -162,8 +162,10 @@ public class FileGraphSetup implements ServletContextListener {
String fn = p.getFileName().toString().toLowerCase(); String fn = p.getFileName().toString().toLowerCase();
if ( fn.endsWith(".nt") ) { if ( fn.endsWith(".nt") ) {
model.read( fis, null, "N-TRIPLE" ); model.read( fis, null, "N-TRIPLE" );
} else if ( fn.endsWith(".n3") || fn.endsWith(".ttl") ) { } else if ( fn.endsWith(".n3") ) {
model.read( fis, null, "N3" ); model.read(fis, null, "N3");
} else if ( fn.endsWith(".ttl") ) {
model.read(fis, null, "TURTLE");
} else if ( fn.endsWith(".owl") || fn.endsWith(".rdf") || fn.endsWith(".xml") ) { } else if ( fn.endsWith(".owl") || fn.endsWith(".rdf") || fn.endsWith(".xml") ) {
model.read( fis, null, "RDF/XML" ); model.read( fis, null, "RDF/XML" );
} else if ( fn.endsWith(".md") ) { } else if ( fn.endsWith(".md") ) {