Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
datamodel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fs-ec
scicat
datamodel
Commits
1644f259
Commit
1644f259
authored
8 months ago
by
Anjali Aggarwal
Browse files
Options
Downloads
Patches
Plain Diff
pizza owl file
parent
09745e3f
No related branches found
Branches containing commit
No related tags found
1 merge request
!14
Resolve "pizza example"
Pipeline
#123191
failed
8 months ago
Stage: lint
Stage: validate
Stage: build-derivatives
Stage: build-docs
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Example/pizza.owl
+125
-0
125 additions, 0 deletions
Example/pizza.owl
Example/pizza.yaml
+1
-0
1 addition, 0 deletions
Example/pizza.yaml
with
126 additions
and
0 deletions
Example/pizza.owl
0 → 100644
+
125
−
0
View file @
1644f259
@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> .
This diff is collapsed.
Click to expand it.
Example/pizza.yaml
+
1
−
0
View file @
1644f259
...
...
@@ -5,6 +5,7 @@ prefixes:
linkml
:
https://w3id.org/linkml/
ex
:
http://example.org/
default_prefix
:
ex
imports
:
[
linkml
:
types
]
# types:
# SpicinessLevel:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment