public class KnowledgeBaseUpdater extends Object
| Constructor and Description |
|---|
KnowledgeBaseUpdater(UpdateSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isUpdatableABoxGraph(String graphName) |
static String |
loadSparqlQuery(String filePath)
loads a SPARQL ASK query from a text file
|
boolean |
update(javax.servlet.ServletContext servletContext) |
boolean |
updateRequired(javax.servlet.ServletContext servletContext)
Executes a SPARQL ASK query to determine whether the knowledge base
needs to be updated to conform to a new ontology version
|
public KnowledgeBaseUpdater(UpdateSettings settings)
public boolean update(javax.servlet.ServletContext servletContext)
throws IOException
IOExceptionpublic boolean updateRequired(javax.servlet.ServletContext servletContext)
throws IOException
IOExceptionpublic static String loadSparqlQuery(String filePath) throws IOException
filePath - Path of a fileIOExceptionpublic static boolean isUpdatableABoxGraph(String graphName)
Copyright © 2022. All rights reserved.