Merge pull request #49 from lawlesst/fix/filegraphsetup-turtle

[VIVO-1271] FileGraphSetup loads .ttl extension with TURTLE format rather than N3.
This commit is contained in:
grahamtriggs 2016-09-21 19:10:20 +01:00 committed by GitHub
commit d1a93743fc

View file

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