-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFruitThesaurus.ttl
More file actions
98 lines (78 loc) · 3.03 KB
/
FruitThesaurus.ttl
File metadata and controls
98 lines (78 loc) · 3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
@prefix : <http://example.org/fruit#> .
@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#> .
#################################################################
# Ontology Header
#################################################################
:FruitOntology a owl:Ontology ;
rdfs:label "Fruit Ontology"@en ;
owl:versionIRI <http://example.org/fruit/1.0> .
#################################################################
# OWL Classes (Taxonomy)
#################################################################
:Food a owl:Class ;
rdfs:label "Food"@en .
:Fruit a owl:Class ;
rdfs:label "Fruit"@en ;
rdfs:subClassOf :Food .
:Apple a owl:Class ;
rdfs:label "Apple"@en ;
rdfs:subClassOf :Fruit .
#################################################################
# OWL Individuals (Apple Instances)
#################################################################
:GrannySmith a :Apple ;
rdfs:label "Granny Smith"@en ;
:color "green" ;
:origin "Australia" ;
:hasSweetness "medium" .
:RedDelicious a :Apple ;
rdfs:label "Red Delicious"@en ;
:color "red" ;
:origin "USA" ;
:hasSweetness "high" .
:Fuji a :Apple ;
rdfs:label "Fuji"@en ;
:color "reddish-yellow" ;
:origin "Japan" ;
:hasSweetness "very high" .
#################################################################
# Datatype Properties
#################################################################
:color a owl:DatatypeProperty ;
rdfs:domain :Fruit ;
rdfs:range xsd:string .
:origin a owl:DatatypeProperty ;
rdfs:domain :Fruit ;
rdfs:range xsd:string .
:hasSweetness a owl:DatatypeProperty ;
rdfs:domain :Fruit ;
rdfs:range xsd:string .
#################################################################
# SKOS Thesaurus
#################################################################
:FruitConcept a skos:Concept ;
skos:prefLabel "fruit"@en ;
skos:definition "The sweet and fleshy product of a tree or other plant that contains seed."@en ;
skos:narrower :AppleConcept ;
skos:exactMatch :Fruit .
:AppleConcept a skos:Concept ;
skos:prefLabel "apple"@en ;
skos:altLabel "malus domestica"@la ; # Latin name
skos:altLabel "APL"@en ; # Acronym
skos:altLabel "orchard apple"@en ; # Synonym
skos:hiddenLabel "appl"@en ; # Typo handling
skos:broader :FruitConcept ;
skos:definition "A round fruit with red or green skin and firm white flesh."@en ;
skos:exactMatch :Apple .
#################################################################
# Concept Scheme
#################################################################
:FruitThesaurus a skos:ConceptScheme ;
skos:prefLabel "Fruit Thesaurus"@en ;
skos:hasTopConcept :FruitConcept .
:FruitConcept skos:inScheme :FruitThesaurus .
:AppleConcept skos:inScheme :FruitThesaurus .