Package org.apache.stanbol.rules.base.api

Examples of org.apache.stanbol.rules.base.api.NoSuchRecipeException


         * to UriRef representing the recipe.
         */
        try {
            recipeGraph = tcManager.getMGraph(recipeID);
        } catch (NoSuchEntityException e) {
            throw new NoSuchRecipeException(recipeID.toString());
        }

        Iterator<Triple> descriptions = recipeGraph.filter(null, Symbols.description, null);
        String recipeDescription = null;
        if (descriptions != null && descriptions.hasNext()) {
View Full Code Here


    public TripleCollection exportRecipe(Recipe recipe) throws NoSuchRecipeException {

        try {
            return tcManager.getMGraph(recipe.getRecipeID());
        } catch (NoSuchEntityException e) {
            throw new NoSuchRecipeException(recipe.toString());
        }
    }
View Full Code Here

                         */

                        RuleList ruleList = RuleParserImpl.parse(kReSRulesInKReSSyntax).getkReSRuleList();
                        recipe = new RecipeImpl(recipeIRI, recipeDescription, ruleList);
                    } else {
                        throw new NoSuchRecipeException(recipeIRI);
                    }
                }

                return recipe;
            }
View Full Code Here

                }

                recipe = (Recipe) new RecipeImpl(recipeIRI, recipeDescription, ruleList);

            } else {
                throw new NoSuchRecipeException(recipeIRI);
            }
        }

        return recipe;
View Full Code Here

TOP

Related Classes of org.apache.stanbol.rules.base.api.NoSuchRecipeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.