本文整理汇总了Java中org.apache.jena.riot.RiotException.printStackTrace方法的典型用法代码示例。如果您正苦于以下问题:Java RiotException.printStackTrace方法的具体用法?Java RiotException.printStackTrace怎么用?Java RiotException.printStackTrace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.jena.riot.RiotException
的用法示例。
在下文中一共展示了RiotException.printStackTrace方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getConfigurationModel
import org.apache.jena.riot.RiotException; //导入方法依赖的package包/类
/**
* Returns a Jena Model with the framework configuration file loaded
*
* @return Model
* @throws IOException in case the file cannot be loaded or a parsing error is presented
*/
public static Model getConfigurationModel() throws IOException {
// Read configuration
try {
if (configurationModel == null) {
configurationModel = ModelFactory.createDefaultModel();
configurationModel.read(configurationFile);
}
} catch (RiotException e) {
e.printStackTrace();
throw new IOException("Couldn't read " + configurationFile + " file: " + e.getMessage());
}
return configurationModel;
}
示例2: getDatasourceModel
import org.apache.jena.riot.RiotException; //导入方法依赖的package包/类
/**
* Returns a Jena Model with the dataset file loaded
*
* @return Model
* @throws IOException in case the file cannot be loaded or a parsing error is presented
*/
public static Model getDatasourceModel() throws IOException {
try {
if (datasourceModel == null) {
datasourceModel = ModelFactory.createDefaultModel();
datasourceModel.read(datasourcesFile);
}
} catch (RiotException e) {
e.printStackTrace();
throw new IOException("Couldn't read " + datasourcesFile + " file: " + e.getMessage());
}
return datasourceModel;
}
示例3: getComponentsModel
import org.apache.jena.riot.RiotException; //导入方法依赖的package包/类
/**
* Returns a Jena Model with the components configuration file loaded
*
* @return Model
* @throws IOException in case the file cannot be loaded or a parsing error is presented
*/
public static Model getComponentsModel() throws IOException {
try {
if (componentsModel == null) {
componentsModel = ModelFactory.createDefaultModel();
componentsModel.read(componentsFile);
}
} catch (RiotException e) {
e.printStackTrace();
throw new IOException("Couldn't read " + componentsFile + " file: " + e.getMessage());
}
return componentsModel;
}
示例4: getUsersModel
import org.apache.jena.riot.RiotException; //导入方法依赖的package包/类
/**
* Returns a Jena Model with the users configuration file loaded
*
* @return Model
* @throws IOException in case the file cannot be loaded or a parsing error is presented
*/
public static Model getUsersModel() throws IOException {
try {
if (usersModel == null) {
usersModel = ModelFactory.createDefaultModel();
usersModel.read(usersFile);
}
} catch (RiotException e) {
e.printStackTrace();
throw new IOException("Couldn't read " + usersFile + " file: " + e.getMessage());
}
return usersModel;
}
示例5: getSystemGraphsModel
import org.apache.jena.riot.RiotException; //导入方法依赖的package包/类
/**
* Returns a Jena Model with the system graphs configuration file loaded
*
* @return Model
* @throws IOException in case the file cannot be loaded or a parsing error is presented
*/
public static Model getSystemGraphsModel() throws IOException {
try {
if (sysgraphsModel == null) {
sysgraphsModel = ModelFactory.createDefaultModel();
sysgraphsModel.read(sysgraphsFile);
}
} catch (RiotException e) {
e.printStackTrace();
throw new IOException("Couldn't read " + sysgraphsFile + " file: " + e.getMessage());
}
return sysgraphsModel;
}
示例6: getRolesModel
import org.apache.jena.riot.RiotException; //导入方法依赖的package包/类
/**
* Returns a Jena Model with the system graphs configuration file loaded
*
* @return Model
* @throws IOException in case the file cannot be loaded or a parsing error is presented
*/
public static Model getRolesModel() throws IOException {
try {
if (rolesModel == null) {
rolesModel = ModelFactory.createDefaultModel();
rolesModel.read(rolesFile);
}
} catch (RiotException e) {
e.printStackTrace();
throw new IOException("Couldn't read " + rolesFile + " file: " + e.getMessage());
}
return rolesModel;
}