ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Are you sure that PizzaTopping is in the KnowRob namespace?

You query for knowrob:'PizzaTopping', but probably want to ask for http://www.co-ode.org/ontologies/pizza/2005/05/16/pizza.owl#PizzaTopping.

Are you sure that PizzaTopping is in the KnowRob namespace?

You query for knowrob:'PizzaTopping', but probably want to ask for http://www.co-ode.org/ontologies/pizza/2005/05/16/pizza.owl#PizzaTopping.

Edit: In your query, you need to set the correct IRI of the OWL class you are asking for. You find the base IRI of your ontology in the head of your OWL file in the line that looks like xmlns="http://ias.cs.tum.edu/kb/knowrob.owl#".

Assuming you used the standard pizza.owl, you therefore need to query for:

prolog.query("owl_subclass_of(A, 'http://www.co-ode.org/ontologies/pizza/2005/05/16/pizza.owl#PizzaTopping')")

If you would like to abbreviate the long IRIs, you can define a namespace, e.g. in one of your init.pl using the rdf_db:rdf_register_ns directive. Have a look at the init.pl in ias_knowledge_base for an example.

Are you sure that PizzaTopping is in the KnowRob namespace?

You query for knowrob:'PizzaTopping', but probably want to ask for http://www.co-ode.org/ontologies/pizza/2005/05/16/pizza.owl#PizzaTopping.

Edit: In your query, you need to set the correct IRI of the OWL class you are asking for. You find the base IRI of your ontology in the head of your OWL file in the line that looks like xmlns="http://ias.cs.tum.edu/kb/knowrob.owl#".

Assuming you used the standard pizza.owl, you therefore need to query for:

prolog.query("owl_subclass_of(A, 'http://www.co-ode.org/ontologies/pizza/2005/05/16/pizza.owl#PizzaTopping')")

'http://www.co-ode.org/ontologies/pizza/2005/05/16/pizza.owl#PizzaTopping')")

If you would like to abbreviate the long IRIs, you can define a namespace, e.g. in one of your init.pl using the rdf_db:rdf_register_ns directive. Have a look at the init.pl in ias_knowledge_base for an example.