@Override public boolean equals(Object obj) { if (obj instanceof Recipe) { Recipe recipe = (Recipe) obj; if (recipe.getRecipeID().toString().equals(this.getRecipeID().toString())) { if (recipe.getRecipeDescription().equals(this.getRecipeDescription())) { if (recipe.toString().equals(this.toString())) { return true; } else { return false; } } else { return false; } } else { return false; } } return false; } }
@Override public boolean equals(Object obj) { if (obj instanceof Recipe) { Recipe recipe = (Recipe) obj; if (recipe.getRecipeID().toString().equals(this.getRecipeID().toString())) { if (recipe.getRecipeDescription().equals(this.getRecipeDescription())) { if (recipe.toString().equals(this.toString())) { return true; } else { return false; } } else { return false; } } else { return false; } } return false; } }
ruleList.add(rule); recipe = new RecipeImpl(recipe.getRecipeID(), recipe.getRecipeDescription(), ruleList);
ruleList.add(rule); recipe = new RecipeImpl(recipe.getRecipeID(), recipe.getRecipeDescription(), ruleList);
manager.addAxiom(ontology, axiom); String description = recipe.getRecipeDescription(); if(description != null){ axiom = factory.getOWLDataPropertyAssertionAxiom(descriptionProperty, recipeIndividual, description);
String recipeDescription = recipe.getRecipeDescription(); if(recipeDescription != null){ axiom = factory.getOWLDataPropertyAssertionAxiom(descriptionProperty, recipeIndividual,
String recipeDescription = rule.getRecipe().getRecipeDescription(); String ruleDescription = rule.getDescription();