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 8918987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:53:43+00:00 2026-06-15T05:53:43+00:00

I just started using OWL for a project at the university. The project is

  • 0

I just started using OWL for a project at the university.
The project is about pizza, which seems to be a common problem when it comes to RDF and OWL. So what we have to do first is model a pizza that consists of two toppings: tomatoes and cheese. I used the property madeof to connect them. This is a minimal code snippet that I tried to validate at: http://www.mygrid.org.uk/OWL/Validator

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns="http://example.org/pizzeria#">

    <owl:Ontology rdf:about=""/>  

    <!-- ========================= -->



    <owl:Class rdf:ID="Topping"/>

    <Topping rdf:ID="Cheese"/>
    <Topping rdf:ID="Tomato"/>

     <owl:ObjectProperty rdf:ID="madeOf">
            <rdfs:range rdf:resource="#Topping"/>
            <rdfs:domain rdf:resource="#Pizza"/>
     </owl:ObjectProperty>

     <!-- Pizza -->
     <owl:Class rdf:ID="Pizza">
         <!-- comes with Cheese and Tomato -->
         <rdfs:subClassOf>
                 <owl:Restriction>
                     <owl:onProperty rdf:resource="#madeOf"/>
                     <owl:hasValue rdf:resource="#Tomato"/>
                 </owl:Restriction>
         </rdfs:subClassOf>
         <rdfs:subClassOf>
             <owl:Restriction>
                 <owl:onProperty rdf:resource="#madeOf"/>
                 <owl:hasValue rdf:resource="#Cheese"/>
             </owl:Restriction>
         </rdfs:subClassOf>
     </owl:Class>
 </rdf:RDF>

However, the validator tells me:

OWL DL
Individual Value: restriction(a:madeOf value (a:Cheese))
Individual Value: restriction(a:madeOf value (a:Tomato))

OWL Full
Untyped Class: http://example.org/pizzeria#Topping

Which means, I guess, that the Toppings class was not defined (I think I did this…) and that something is wrong with the madeof property. I think I am doing something wrong here and am pretty much stuck at the moment.

  • 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-15T05:53:46+00:00Added an answer on June 15, 2026 at 5:53 am

    Your OWL is fine, the only problem you have is with the XML encoding of RDF. Generally speaking, avoid working directly with RDF/XML if you can. Turtle is a much more compact and readable syntax, and has fewer gotchas than RDF/XML.

    So the gotcha that you fell into is that, while you did define the expansion for the empty prefix:

    xmlns="http://example.org/pizzeria#"
    

    you didn’t define the base URI for the document. Subject resources like:

    <Topping rdf:ID="Cheese"/>
    

    will be interpreted as relative to the base URI, rather than as though they had a default blank prefix. See paragraph one, above!

    The fix is to define the base URI as well as the default prefix:

    <rdf:RDF
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
     xmlns:owl="http://www.w3.org/2002/07/owl#"
     xmlns="http://example.org/pizzeria#"
     xml:base="http://example.org/pizzeria#"
    >
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just started using Eclipse but already I have a small problem. At first
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I just started using/learning Python and have some questions. I have a text file
I just started using the MVCContrib grid in a test project. I'm having a
Just started using Blueprint CSS and now playing with the grids but have a
just started using log4j in one of my home-projects and I was just about
I´ve just started using ASIHTTPRequest for iOs and I have a small issue with
I just started using the new project type SQL Server 2008 Database. I can
I just started using gApps scripts and I have run into two problems with
Just started using fadein/fadeout - it's functioning but with problems. I have a set

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.