-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathfood.ttl
119 lines (67 loc) · 3.01 KB
/
food.ttl
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
@prefix : <http://example.com/food#> .
@prefix dbc: <http://dbpedia.org/resource/Category:> .
@prefix dbo: <http://dbpedia.org/ontology/> .
@prefix dbr: <http://dbpedia.org/resource/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://example.com/food> .
<http://example.com/food> rdf:type owl:Ontology .
#################################################################
#
# Object Properties
#
#################################################################
### http://purl.org/dc/terms/subject
dct:subject rdf:type owl:ObjectProperty .
#################################################################
#
# Classes
#
#################################################################
### http://dbpedia.org/ontology/Food
dbo:Food rdf:type owl:Class ;
owl:equivalentClass :Food .
### http://example.com/food#BadFood
:BadFood rdf:type owl:Class ;
rdfs:label "Bad Food" ;
owl:equivalentClass [ rdf:type owl:Class ;
owl:intersectionOf ( :Food
[ rdf:type owl:Restriction ;
owl:onProperty dct:subject ;
owl:hasValue dbc:Potato_dishes
]
)
] ;
rdfs:subClassOf :Food ;
rdfs:comment "I don't like potato!" .
### http://example.com/food#Food
:Food rdf:type owl:Class .
### http://example.com/food#GoodFood
:GoodFood rdf:type owl:Class ;
rdfs:label "Good Food" ;
owl:equivalentClass [ rdf:type owl:Class ;
owl:intersectionOf ( :Food
[ rdf:type owl:Restriction ;
owl:onProperty dct:subject ;
owl:hasValue dbc:Indonesian_cuisine
]
)
] ;
rdfs:subClassOf :Food ;
rdfs:comment "Anything that is an Indonesian dish is good food!" .
#################################################################
#
# Individuals
#
#################################################################
### http://dbpedia.org/resource/Hutspot
dbr:Hutspot rdf:type :Food ,
owl:NamedIndividual ;
dct:subject dbc:Potato_dishes .
### http://dbpedia.org/resource/Category:Potato_dishes
dbc:Potato_dishes rdf:type owl:NamedIndividual .
### Generated by the OWL API (version 3.5.1) http://owlapi.sourceforge.net