diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/ontology/update/KnowledgeBaseUpdater.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/ontology/update/KnowledgeBaseUpdater.java index a92e81f51..1dd5012b5 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/ontology/update/KnowledgeBaseUpdater.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/ontology/update/KnowledgeBaseUpdater.java @@ -160,7 +160,10 @@ public class KnowledgeBaseUpdater { List sparqlFiles = Arrays.asList(sparqlConstructDirectory.listFiles()); Collections.sort(sparqlFiles); // queries may depend on being run in a certain order JenaIngestUtils jiu = new JenaIngestUtils(); - for (File sparqlFile : sparqlFiles) { + for (File sparqlFile : sparqlFiles) { + if(sparqlFile.isDirectory()) { + continue; + } StringBuffer fileContents = new StringBuffer(); try { BufferedReader reader = new BufferedReader(new FileReader(sparqlFile));