Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7865965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:14:43+00:00 2026-06-03T00:14:43+00:00

I have been stuck for two days now trying to understand why the following

  • 0

I have been stuck for two days now trying to understand why the following scenario isn’t working:

screenshots here: http://dl.dropbox.com/u/4677548/screenshots.html

I have a VegetarianFood class (subclass of Food) that is equivalent to “Food and (Eggs or MilkAndDerivates or VeganFood)” as you can see in the screenshot number 1

The VeganFood class, on turn, is equivalent to other classes (NutsAndSeeds, Cereals, Fruit, etc…)
screenshot 2

as you can see there are two individuals (cheddar cheese and cashew) created as MilkAndDerivates and NutsAndSeeds
screenshot 3
and they are correctly inferred as VegetarianFood and VeganFood member

Then I created two individuals as recipes, one only with cashew (PastaVega) and one with both cheddar chese and cashew (PastaVege), using the object property hasIngredient
screenshot 4 and 5

and they have been inferred as Recipe…BUT none falls into the category of VegatarianRecipe and VeganRecipe, defined as follows
screenshot 6 and 7

I have no clues, Why they are not inferred as VegetarianRecipe (or vegan)??What am I missing?

Edit:

If I change VegetarianRecipe (or vegan) from
“Recipe and (hasIngredient ONLY VegetarianFood)”

to
“Recipe and (hasIngredient SOME VegetarianFood)”

screenshot 8

the recepies individuals are showed, but of course this is not what I am trying to do, as in this way it will include recipes with mixed meat and vegetarianFood.
So how to define a vegetarianrecipe and veganrecipe class to allow the reasoner to infer correctly when a recipe is vegetarian or vegan????

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T00:14:45+00:00Added an answer on June 3, 2026 at 12:14 am

    You have hit upon a consequence of the fact that OWL reasoning uses an open-world assumption.

    The reason your PastaVege recipe is not inferred to be a VegetarianRecipe is that, although the ingredients that you explicitly list in the recipe are indeed all VegeratianFood instances, it could well be that some currently unknown ingredient of your recipe is not a vegetarian food.

    Since your constraint on VegetarianRecipe is that all ingredients should be VegetarianFoods (not just the ones we currently know about), it cannot be definitively concluded (in an open world) that your recipe is indeed a VegetarianRecipe.

    There are a number of ways to deal with this, but none really do exactly what you want – you need to approach it from a slightly different angle.

    Without going into the exact modeling details: although it is quite difficult to infer if a recipe is vegetarian given your current model, it is relatively simple to infer if a recipe is not vegetarian; any recipe that has at least one non-vegetarian ingredient is a non-vegetarian recipe.

    An alternative approach is that you create a closed set of (vegetarian) ingredients (using an OWL enumerated class via the oneOf constraint), but that is a significant change to your model, and of course it is tedious to have to list all possible ingredients in this fashion.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been stuck on this for 3 days now. I have two pages that
I have been trying these for past two days and getting stuck at same
I have been stuck on this for a few days now and it is
Ok, I have been working on this for a couple of days now and
I have been stuck on this for days, and was wondering if anyone had
so i have been stuck with this issue for 3 weeks now and i
I`m new to sql and have been stuck on the following issue for almost
i know this is basic but somehow i have been stuck here for some
i'm now stuck on this problem for days and i haven't been able to
I've been stuck trying to write this regular expression I need. Basically, I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.