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:
commit
d1a93743fc
1 changed files with 4 additions and 2 deletions
|
@ -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") ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue