FileGraphSetup loads .ttl extensions with TURTLE format rather than N3.
This commit is contained in:
parent
0d22fa2716
commit
c77af47618
1 changed files with 4 additions and 2 deletions
|
@ -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") ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue