0

I am trying to create an ontology for animals in RDF(S) XML.In my graph I have currently classes, subclasses and instances. For example I have a class "dog". How can I define for the class dog that dogs have: four legs, and that they have fur.

Thanks

1 Answers1

1

You need to define class dog, data property hasLegs and then you need to define Class: dog hasLegs value 4. I don't know what editor are you using, but for example in protege, you need to find dog and click subClassOf and then type hasLegs value 4.

enter image description here

Artemis
  • 3,271
  • 2
  • 20
  • 33
  • Should I define dog as a class, and dog1 as instances? I also have Tree as class. Should I define Oak as class and oak1 as instance, or I can do Oak as an instance? Thanks –  Apr 14 '15 at 00:31
  • If dog1 has a name and is the smallest entity, you need to define it as instance. The same goes for oak1. Generally it if you can't break something anymore down you need to define it as an instance, but it is a modelling decision. You can do either. – Artemis Apr 14 '15 at 07:31
  • Is this right? –  Apr 14 '15 at 14:33
  • or is it: Orangutang lives in Jungle. Lives has domain Jungle and range Orangutang??? Would be helpful, thanks. –  Apr 14 '15 at 14:40
  • Orangutan lives in Jungle. Lives has domain Jungle and range must be the super-class of Orangutan. Since there are more than one animals living in the jungle and lives will be used for more than one, your range should not be so specific otherwise the reasoner will find lots of unsatisfiable concepts. – Artemis Apr 14 '15 at 15:14