100 likes | 159 Views
Explore the new Owl diagram with extended classes and properties for zoo management and knowledge on the internet.
E N D
ΗΥ-566ΔΙΑΧΕΙΡΙΣΗ ΓΝΩΣΗΣ ΣΤΟ ΔΙΑΔΙΚΤΥΟΑσκηση 2 Πεδρο, Κατη και Μπεριτ Ελενη
The zoo ontology II • New diagram for OWL. • Differences with the old diagram and new classes. • Some classes and properties.
New diagram for OWL • .dia2.pdf
Differences and new classes (1 of 4) • We have extended the class Cage with three subclasses, so now we can restrict the relation livesIn (Animal-Cage) and hasIn (Cage-Animal). For example, a water animal needs a pool. • We have also added disjoints between Member/Employee, and Vet/Administrator/Cleaner/AnimalWorker. We didn't make the Cage class to be disjoint because a Pool can be Open-Air or Covered, and an Open-Air Cage can have a Covered part. The Animal class isn't disjoint neither because, e.g. the penguin lives in water and in land.
Differences and new classes (2 of 4) • We have added cardinalities to the previous diagram. • For each relation between two classes we have made them both ways, except between Employee-Zoo and Animal-Animal. We did this because it's easy to find in which zoo an employee works, but it takes more time to go the opposite way (zoo -> employee). For the other relation (Animal-Animal) we think that it's enough with one way because the information would be the same in both directions.
Differences and new classes (3 of 4) • New attributes: Cage trees: boolean rocks: boolean • New classes: (sub classes of Cage) Pool poolDepth: float poolWidth: float poolLength: float saltPercentage: float type: lake/sea/artificial
Differences and new classes (4 of 4) Open Air (without roof) wallsHigh: float wallsLength: float wallsWidth: float Covered (with roof) roomLength: float roomWidth: float roomHigh: float
Some classes and properties (1 of 3) <owl:Class rdf:ID="Zoo"> <rdfs:comment> This is the class of zoo. The zoo has to have at least one animal, one emp and one dept. </rdfs:comment> <owl:Restriction> <owl:onProperty rdf:resource="#includes"/> <owl:minCardinality> <xsd:nonNegativeInteger>1</xsd:nonNegativeInteger> </owl:minCardinality> </owl:Restriction> <owl:Restriction> <owl:onProperty rdf:resource="#consistsOf"/> <owl:minCardinality> <xsd:nonNegativeInteger>1</xsd:nonNegativeInteger> </owl:minCardinality> </owl:Restriction> <owl:Restriction> <owl:onProperty rdf:resource="#hasEmployees"/> <owl:minCardinality> <xsd:nonNegativeInteger>1</xsd:nonNegativeInteger> </owl:minCardinality> </owl:Restriction> </owl:Class>
Some classes and properties (2 of 3) <owl:ObjectProperty rdf:ID="includes"> <rdfs:comment> This is the relationship that says that a zoo has animals </rdfs:comment> <owl:domain rdf:resource="#Zoo"/> <owl:range rdf:resource="#Animal"/> </owl:ObjectProperty> <owl:ObjectProperty rdf:ID="sells"> <owl:domain rdf:resource="#Zoo"/> <owl:range rdf:resource="#Ticket"/> <owl:inverseOf rdf:resource="#isSoldBy"/> </owl:ObjectProperty> <owl:ObjectProperty rdf:ID="hasEmployees"> <owl:domain rdf:resource="#Zoo"/> <owl:range rdf:resource="#Employee"/> </owl:ObjectProperty>
Some classes and properties (3 of 3) <owl:Class rdf:ID="Ticket"> <rdfs:comment>The class of all the the Tickets</rdfs:comment> <owl:Restriction> <owl:onProperty rdf:resource="#isSoldBy"/> <owl:cardinality> <xsd:nonNegativeInteger>1</xsd:nonNegativeInteger> </owl:cardinality> </owl:Restriction> </owl:Class> <owl:DataTypeProperty rdf:ID="type"> <rdfs:comment>Property with the type of a Ticket</rdfs:comment> <owl:domain rdf:resource="#Ticket"/> <rdfs:range> <owl:oneOf rdf:parseType="Collection"> <owl:Thing rdf:about="#Student"/> <owl:Thing rdf:about="#Adult"/> <owl:Thing rdf:about="#Reduced"/> <owl:Thing rdf:about="#Member"/> </owl:oneOf> </rdfs:range> </owl:DataTypeProperty>