-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclasses_properties.ttl
More file actions
146 lines (119 loc) · 4.88 KB
/
classes_properties.ttl
File metadata and controls
146 lines (119 loc) · 4.88 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
@prefix dbo: <http://dbpedia.org/ontology/> .
@prefix myOnto: <http://www.mysemantics.com/ontology/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix : <http://www.mysemantics.com/> .
@base <http://www.mysemantics.com/> .
myOnto: a owl:Ontology ;
rdfs:comment "An ontology for our 22 favorite songs"@en .
#################################################################
# Classes
#################################################################
### http://www.mysemantics.com/ontology/Person
myOnto:Person a owl:Class ;
rdfs:subClassOf schema:Person ,
[
a owl:Restriction ;
owl:onProperty myOnto:hasWikipageID ;
owl:maxQualifiedCardinality "1"^^xsd:nonNegativeInteger ;
owl:onDataRange xsd:nonNegativeInteger ;
] ;
rdfs:label "Person"@en ;
rdfs:comment "A class defining a person."@en .
### http://www.mysemantics.com/ontology/Song
myOnto:Song a owl:Class ;
rdfs:subClassOf dbo:Song, schema:MusicRecording ,
[
a owl:Restriction ;
owl:onProperty dbo:releaseDate ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onDataRange xsd:date ;
] ,
[
a owl:Restriction ;
owl:onProperty dbo:producer ;
owl:minCardinality "1"^^xsd:nonNegativeInteger ;
owl:onDataRange xsd:anyURI ;
] ,
[
a owl:Restriction ;
owl:onProperty dbo:writer ;
owl:minCardinality "1"^^xsd:nonNegativeInteger ;
owl:onDataRange xsd:anyURI ;
] ,
[
a owl:Restriction ;
owl:onProperty dbo:recordLabel ;
owl:minCardinality "1"^^xsd:nonNegativeInteger ;
owl:onDataRange xsd:anyURI ;
] ,
[
a owl:Restriction ;
owl:onProperty dbo:artist ;
owl:minCardinality "1"^^xsd:nonNegativeInteger ;
owl:onDataRange xsd:anyURI ;
] ,
[
a owl:Restriction ;
owl:onProperty dbo:genre ;
owl:minCardinality "1"^^xsd:nonNegativeInteger ;
owl:onDataRange xsd:anyURI ;
] ;
rdfs:label "Song"@en ;
rdfs:comment "A class defining a song."@en .
### http://www.mysemantics.com/ontology/RecordCompany
myOnto:RecordCompany a owl:Class ;
rdfs:subClassOf dbo:Company ;
rdfs:label "Record Company"@en ;
rdfs:comment "A class defining a record label."@en .
#################################################################
# Datatype properties
#################################################################
### http://www.mysemantics.com/ontology/hasName
myOnto:hasName a owl:DatatypeProperty,
owl:FunctionalProperty ;
rdfs:domain myOnto:RecordCompany,
myOnto:Song ;
rdfs:range xsd:string ;
rdfs:label "Name"@en ;
rdfs:comment "The name of a song or record label."@en .
### http://www.mysemantics.com/ontology/hasWikipageID
myOnto:hasWikipageID a owl:DatatypeProperty,
owl:FunctionalProperty,
owl:InverseFunctionalProperty ;
rdfs:domain myOnto:Person ;
rdfs:range xsd:integer ;
rdfs:label "Wikipage ID"@en ;
rdfs:comment "A person has a Wikipage ID."@en .
#################################################################
# Declaration of external classes
#################################################################
### https://schema.org/Person
schema:Person a owl:Class .
### https://schema.org/Organization
schema:Organization a owl:Class .
### https://schema.org/MusicRecording
schema:MusicRecording a owl:Class .
### https://dbpedia.org/ontology/Company
dbo:Company a owl:Class .
### https://dbpedia.org/ontology/Song
dbo:Song a owl:Class .
#################################################################
# Declaration of external properties
#################################################################
### http://dbpedia.org/ontology/birthName
dbo:birthName a owl:DatatypeProperty .
### http://dbpedia.org/ontology/artist
dbo:artist a owl:ObjectProperty .
### http://dbpedia.org/ontology/genre
dbo:genre a owl:ObjectProperty .
### http://dbpedia.org/ontology/producer
dbo:producer a owl:ObjectProperty .
### http://dbpedia.org/ontology/recordLabel
dbo:recordLabel a owl:ObjectProperty .
### http://dbpedia.org/ontology/releaseDate
dbo:releaseDate a owl:DatatypeProperty .
### http://dbpedia.org/ontology/writer
dbo:writer a owl:ObjectProperty .