Add .nt to FileGraphSetup

This commit is contained in:
Graham Triggs 2016-04-08 20:43:07 +01:00
parent b513ad1056
commit 2d5bfd19d0

View file

@ -160,7 +160,9 @@ public class FileGraphSetup implements ServletContextListener {
try {
OntModel model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);
String fn = p.getFileName().toString().toLowerCase();
if ( fn.endsWith(".n3") || fn.endsWith(".ttl") ) {
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(".owl") || fn.endsWith(".rdf") || fn.endsWith(".xml") ) {
model.read( fis, null, "RDF/XML" );