-
Notifications
You must be signed in to change notification settings - Fork 3
/
vocab.ttl
146 lines (97 loc) · 3.81 KB
/
vocab.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
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 : <http://purl.org/midi-ld/midi#> .
@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://purl.org/midi-ld/midi#> .
<http://purl.org/midi-ld/midi#> rdf:type owl:Ontology .
#################################################################
# Object Properties
#################################################################
### http://purl.org/midi-ld/midi#hasEvent
:hasEvent rdf:type owl:ObjectProperty ;
rdfs:domain :Track ;
rdfs:range :Event .
### http://purl.org/midi-ld/midi#hasTrack
:hasTrack rdf:type owl:ObjectProperty ;
rdfs:domain :Piece ;
rdfs:range :Track .
### http://purl.org/midi-ld/midi#note
:note rdf:type owl:ObjectProperty ;
rdfs:domain :NoteOffEvent ,
:NoteOnEvent ;
rdfs:range :Note .
### http://purl.org/midi-ld/midi#program
:program rdf:type owl:ObjectProperty ;
rdfs:domain :ProgramChangeEvent ;
rdfs:range :Program .
#################################################################
# Data properties
#################################################################
### http://purl.org/midi-ld/midi#channel
:channel rdf:type owl:DatatypeProperty ;
rdfs:domain :Event ;
rdfs:range xsd:int .
### http://purl.org/midi-ld/midi#format
:format rdf:type owl:DatatypeProperty ;
rdfs:domain :Piece ;
rdfs:range xsd:int .
### http://purl.org/midi-ld/midi#key
:key rdf:type owl:DatatypeProperty ;
rdfs:domain :Piece ;
rdfs:range xsd:string .
### http://purl.org/midi-ld/midi#lyrics
:lyrics rdf:type owl:DatatypeProperty ;
rdfs:domain :Piece ;
rdfs:range xsd:string .
### http://purl.org/midi-ld/midi#metricWeight
:metricWeight rdf:type owl:DatatypeProperty ;
rdfs:domain :NoteOffEvent ,
:NoteOnEvent ;
rdfs:range xsd:int .
### http://purl.org/midi-ld/midi#octave
:octave rdf:type owl:DatatypeProperty ;
rdfs:domain :Note ;
rdfs:range xsd:int .
### http://purl.org/midi-ld/midi#pitch
:pitch rdf:type owl:DatatypeProperty ;
rdfs:domain :Note ;
rdfs:range xsd:int .
### http://purl.org/midi-ld/midi#scaleDegree
:scaleDegree rdf:type owl:DatatypeProperty ;
rdfs:domain :NoteOffEvent ,
:NoteOnEvent ;
rdfs:range xsd:int .
### http://purl.org/midi-ld/midi#tick
:tick rdf:type owl:DatatypeProperty ;
rdfs:domain :Event ;
rdfs:range xsd:int .
### http://purl.org/midi-ld/midi#velocity
:velocity rdf:type owl:DatatypeProperty ;
rdfs:domain :NoteOffEvent ,
:NoteOnEvent ;
rdfs:range xsd:int .
#################################################################
# Classes
#################################################################
### http://purl.org/midi-ld/midi#Event
:Event rdf:type owl:Class .
### http://purl.org/midi-ld/midi#Note
:Note rdf:type owl:Class .
### http://purl.org/midi-ld/midi#NoteOffEvent
:NoteOffEvent rdf:type owl:Class ;
rdfs:subClassOf :Event .
### http://purl.org/midi-ld/midi#NoteOnEvent
:NoteOnEvent rdf:type owl:Class ;
rdfs:subClassOf :Event .
### http://purl.org/midi-ld/midi#Piece
:Piece rdf:type owl:Class .
### http://purl.org/midi-ld/midi#Program
:Program rdf:type owl:Class .
### http://purl.org/midi-ld/midi#ProgramChangeEvent
:ProgramChangeEvent rdf:type owl:Class ;
rdfs:subClassOf :Event .
### http://purl.org/midi-ld/midi#Track
:Track rdf:type owl:Class .
### Generated by the OWL API (version 4.5.9.2019-02-01T07:24:44Z) https://github.com/owlcs/owlapi