pizza.owl:SpicyPizzaEquivalent leaf node


URI

http://www.co-ode.org/ontologies/pizza/pizza.owl#SpicyPizzaEquivalent

Label

PizzaTemperadaEquivalente

Description

An alternative definition for the SpicyPizza which does away with needing a definition of SpicyTopping and uses a slightly more complicated restriction: Pizzas that have at least one topping that is both a PizzaTopping and has spiciness hot are members of this class.

Usage

Instances of pizza.owl:SpicyPizzaEquivalent can have the following properties:

PROPERTYTYPEDESCRIPTIONRANGE
From class owl:Thing
pizza.owl:hasCountryOfOrigin owl:ObjectProperty owl:Thing
pizza.owl:hasSpiciness owl:FunctionalProperty A property created to be used with the ValuePartition - Spiciness. pizza.owl:Spiciness

Implementation

@prefix : <http://www.co-ode.org/ontologies/pizza/pizza.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

:SpicyPizzaEquivalent a owl:Class ;
    rdfs:label "PizzaTemperadaEquivalente"@pt ;
    rdfs:comment "An alternative definition for the SpicyPizza which does away with needing a definition of SpicyTopping and uses a slightly more complicated restriction: Pizzas that have at least one topping that is both a PizzaTopping and has spiciness hot are members of this class."@en ;
    owl:equivalentClass [ a owl:Class ;
            owl:intersectionOf ( :Pizza [ a owl:Restriction ;
                        owl:onProperty :hasTopping ;
                        owl:someValuesFrom [ a owl:Class ;
                                owl:intersectionOf ( [ a owl:Restriction ;
                                            owl:onProperty :hasSpiciness ;
                                            owl:someValuesFrom :Hot ] :PizzaTopping ) ] ] ) ] .