Skip to content
Snippets Groups Projects
Commit 1644f259 authored by Anjali Aggarwal's avatar Anjali Aggarwal
Browse files

pizza owl file

parent 09745e3f
No related branches found
No related tags found
1 merge request!14Resolve "pizza example"
Pipeline #123191 failed
@prefix ex: <http://example.org/> .
@prefix linkml: <https://w3id.org/linkml/> .
@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#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ex:Pizza a owl:Class ;
rdfs:label "Pizza" ;
rdfs:subClassOf [ a owl:Restriction ;
owl:minCardinality 0 ;
owl:onProperty ex:Base ],
[ a owl:Restriction ;
owl:minCardinality 0 ;
owl:onProperty ex:CountryOfOrigin ],
[ a owl:Restriction ;
owl:minCardinality 0 ;
owl:onProperty ex:Topping ],
[ a owl:Restriction ;
owl:allValuesFrom ex:PizzaBase ;
owl:onProperty ex:Base ],
[ a owl:Restriction ;
owl:maxCardinality 1 ;
owl:onProperty ex:title ],
[ a owl:Restriction ;
owl:minCardinality 0 ;
owl:onProperty ex:title ],
[ a owl:Restriction ;
owl:allValuesFrom xsd:string ;
owl:onProperty ex:CountryOfOrigin ],
[ a owl:Restriction ;
owl:minCardinality 0 ;
owl:onProperty ex:Spiciness ],
[ a owl:Restriction ;
owl:maxCardinality 1 ;
owl:onProperty ex:Spiciness ],
[ a owl:Restriction ;
owl:maxCardinality 1 ;
owl:onProperty ex:Base ],
[ a owl:Restriction ;
owl:allValuesFrom ex:SpicinessLevel ;
owl:onProperty ex:Spiciness ],
[ a owl:Restriction ;
owl:allValuesFrom xsd:string ;
owl:onProperty ex:Topping ],
[ a owl:Restriction ;
owl:maxCardinality 1 ;
owl:onProperty ex:CountryOfOrigin ],
[ a owl:Restriction ;
owl:allValuesFrom xsd:string ;
owl:onProperty ex:title ] ;
skos:inScheme ex:pizza .
ex:pizza.owl.ttl a owl:Ontology ;
rdfs:label "pizza" ;
skos:definition "A schema for validating pizza data" .
<http://example.org/SpicinessLevel#Hot> a owl:Class ;
rdfs:label "Hot" ;
rdfs:subClassOf ex:SpicinessLevel .
<http://example.org/SpicinessLevel#Medium> a owl:Class ;
rdfs:label "Medium" ;
rdfs:subClassOf ex:SpicinessLevel .
<http://example.org/SpicinessLevel#Mild> a owl:Class ;
rdfs:label "Mild" ;
rdfs:subClassOf ex:SpicinessLevel .
<http://example.org/SpicinessLevel#None> a owl:Class ;
rdfs:label "None" ;
rdfs:subClassOf ex:SpicinessLevel .
ex:Topping a owl:DatatypeProperty ;
rdfs:label "Topping" ;
skos:inScheme ex:pizza .
<piz:DeepPanBase> a owl:Class ;
rdfs:label "DeepPanBase" ;
rdfs:subClassOf ex:PizzaBase .
<piz:StuffedCrustBase> a owl:Class ;
rdfs:label "StuffedCrustBase" ;
rdfs:subClassOf ex:PizzaBase .
<piz:ThinAndCrispyBase> a owl:Class ;
rdfs:label "ThinAndCrispyBase" ;
rdfs:subClassOf ex:PizzaBase .
<piz:WholeWheatBase> a owl:Class ;
rdfs:label "WholeWheatBase" ;
rdfs:subClassOf ex:PizzaBase .
ex:Base a owl:ObjectProperty ;
rdfs:label "Base" ;
skos:inScheme ex:pizza .
ex:CountryOfOrigin a owl:DatatypeProperty ;
rdfs:label "CountryOfOrigin" ;
skos:inScheme ex:pizza .
ex:Spiciness a owl:ObjectProperty ;
rdfs:label "Spiciness" ;
skos:inScheme ex:pizza .
ex:title a owl:DatatypeProperty ;
rdfs:label "title" ;
skos:inScheme ex:pizza .
ex:PizzaBase a owl:Class ;
owl:unionOf ( <piz:DeepPanBase> <piz:ThinAndCrispyBase> <piz:WholeWheatBase> <piz:StuffedCrustBase> ) ;
linkml:permissible_values <piz:DeepPanBase>,
<piz:StuffedCrustBase>,
<piz:ThinAndCrispyBase>,
<piz:WholeWheatBase> .
ex:SpicinessLevel a owl:Class ;
owl:unionOf ( <http://example.org/SpicinessLevel#Hot> <http://example.org/SpicinessLevel#Medium> <http://example.org/SpicinessLevel#Mild> <http://example.org/SpicinessLevel#None> ) ;
linkml:permissible_values <http://example.org/SpicinessLevel#Hot>,
<http://example.org/SpicinessLevel#Medium>,
<http://example.org/SpicinessLevel#Mild>,
<http://example.org/SpicinessLevel#None> .
......@@ -5,6 +5,7 @@ prefixes:
linkml: https://w3id.org/linkml/
ex: http://example.org/
default_prefix: ex
imports: [linkml:types]
# types:
# SpicinessLevel:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment