log.error(e.getMessage(), e); } catch (UnsupportedTypeForExportException e) { log.error(e.getMessage(), e); log.error(e.getMessage(), e); } catch (UnsupportedTypeForExportException e) { log.error(e.getMessage(), e);
} catch (UnsupportedTypeForExportException e) { responseBuilder = Response.status(Status.FORBIDDEN); log.error(e.getMessage(), e); } catch (URISyntaxException e) { responseBuilder = Response.status(Status.NOT_ACCEPTABLE);
@SuppressWarnings("unchecked") @Override public Graph graphRefactoring(Graph inputGraph, Recipe recipe) throws RefactoringException { RuleAdapter ruleAdapter; try { ruleAdapter = ruleAdapterManager.getAdapter(recipe, ConstructQuery.class); List<ConstructQuery> constructQueries = (List<ConstructQuery>) ruleAdapter.adaptTo(recipe, ConstructQuery.class); for(ConstructQuery constructQuery : constructQueries){ System.out.println(constructQuery.toString()); } Graph unionGraph = new SimpleGraph(); for (ConstructQuery constructQuery : constructQueries) { unionGraph.addAll(sparqlConstruct(constructQuery, inputGraph)); } return unionGraph; } catch (UnavailableRuleObjectException e) { throw new RefactoringException("The cause of the refactoring excpetion is: " + e.getMessage(), e); } catch (UnsupportedTypeForExportException e) { throw new RefactoringException("The cause of the refactoring excpetion is: " + e.getMessage(), e); } catch (RuleAtomCallExeption e) { throw new RefactoringException("The cause of the refactoring excpetion is: " + e.getMessage(), e); } }
} catch (UnsupportedTypeForExportException e) { throw new RefactoringException( "The cause of the refactoring excpetion is: " + e.getMessage(), e); } catch (RuleAtomCallExeption e) { throw new RefactoringException(
throw new RefactoringException("The cause of the refactoring excpetion is: " + e.getMessage(), e); } catch (UnsupportedTypeForExportException e) { throw new RefactoringException("The cause of the refactoring excpetion is: " + e.getMessage(), e); } catch (RuleAtomCallExeption e) { throw new RefactoringException("The cause of the refactoring excpetion is: " + e.getMessage(), e);