From c77af4761845b7d70d882cdd219a0f7ddab3fd8c Mon Sep 17 00:00:00 2001 From: Ted Lawless Date: Fri, 2 Sep 2016 14:46:51 -0400 Subject: [PATCH] FileGraphSetup loads .ttl extensions with TURTLE format rather than N3. --- .../mannlib/vitro/webapp/servlet/setup/FileGraphSetup.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/edu/cornell/mannlib/vitro/webapp/servlet/setup/FileGraphSetup.java b/api/src/main/java/edu/cornell/mannlib/vitro/webapp/servlet/setup/FileGraphSetup.java index 0a42817f2..0de130b41 100644 --- a/api/src/main/java/edu/cornell/mannlib/vitro/webapp/servlet/setup/FileGraphSetup.java +++ b/api/src/main/java/edu/cornell/mannlib/vitro/webapp/servlet/setup/FileGraphSetup.java @@ -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") ) {