Skip to contentPackage: MO
MO
Coverage
1: /*
2: * *********************************************************************************************************************
3: *
4: * blueMarine II: Semantic Media Centre
5: * http://tidalwave.it/projects/bluemarine2
6: *
7: * Copyright (C) 2015 - 2021 by Tidalwave s.a.s. (http://tidalwave.it)
8: *
9: * *********************************************************************************************************************
10: *
11: * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
12: * the License. You may obtain a copy of the License at
13: *
14: * http://www.apache.org/licenses/LICENSE-2.0
15: *
16: * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
17: * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
18: * specific language governing permissions and limitations under the License.
19: *
20: * *********************************************************************************************************************
21: *
22: * git clone https://bitbucket.org/tidalwave/bluemarine2-src
23: * git clone https://github.com/tidalwave-it/bluemarine2-src
24: *
25: * *********************************************************************************************************************
26: */
27: package it.tidalwave.bluemarine2.model.vocabulary;
28:
29: import org.eclipse.rdf4j.model.IRI;
30: import org.eclipse.rdf4j.model.ValueFactory;
31: import org.eclipse.rdf4j.model.impl.SimpleValueFactory;
32: import lombok.AccessLevel;
33: import lombok.NoArgsConstructor;
34:
35: /***********************************************************************************************************************
36: *
37: * See http://musicontology.com/specification/
38: *
39: * @author Fabrizio Giudici
40: *
41: **********************************************************************************************************************/
42: @NoArgsConstructor(access = AccessLevel.PRIVATE)
43: public final class MO
44: {
45: private static final ValueFactory FACTORY = SimpleValueFactory.getInstance();
46:
47: private static final String NS = "http://purl.org/ontology/mo/";
48:
49: // Classes
50: public static final String S_C_AUDIO_FILE = NS + "AudioFile";
51: public static final String S_C_CD = NS + "CD";
52: public static final String S_C_DIGITAL_SIGNAL = NS + "DigitalSignal";
53: public static final String S_C_MUSIC_ARTIST = NS + "MusicArtist";
54: public static final String S_C_PERFORMANCE = NS + "Performance";
55: public static final String S_C_RECORD = NS + "Record";
56: public static final String S_C_TRACK = NS + "Track";
57:
58: public static final IRI C_AUDIO_FILE = FACTORY.createIRI(S_C_AUDIO_FILE);
59: public static final IRI C_CD = FACTORY.createIRI(S_C_CD);
60: public static final IRI C_DIGITAL_SIGNAL = FACTORY.createIRI(S_C_DIGITAL_SIGNAL);
61: public static final IRI C_MUSIC_ARTIST = FACTORY.createIRI(S_C_MUSIC_ARTIST);
62: public static final IRI C_PERFORMANCE = FACTORY.createIRI(S_C_PERFORMANCE);
63: public static final IRI C_RECORD = FACTORY.createIRI(S_C_RECORD);
64: public static final IRI C_TRACK = FACTORY.createIRI(S_C_TRACK);
65:
66: // Predicates
67: public static final String S_P_AMAZON_ASIN = NS + "amazon_asin";
68: public static final String S_P_BITS_PER_SAMPLE = NS + "bitsPerSample";
69: public static final String S_P_DURATION = NS + "duration";
70: public static final String S_P_ENCODES = NS + "encodes";
71: public static final String S_P_GTIN = NS + "gtin";
72: public static final String S_P_TRACK = NS + "track";
73: public static final String S_P_MEDIA_TYPE = NS + "media_type";
74: public static final String S_P_MUSICBRAINZ = NS + "musicbrainz";
75: public static final String S_P_MUSICBRAINZ_GUID = NS + "musicbrainz_guid";
76: public static final String S_P_PUBLISHED_AS = NS + "published_as";
77: public static final String S_P_SAMPLE_RATE = NS + "sampleRate";
78: public static final String S_P_TRACK_COUNT = NS + "track_count";
79: public static final String S_P_TRACK_NUMBER = NS + "track_number";
80:
81: public static final String S_P_CONDUCTOR = NS + "conductor";
82: public static final String S_P_ENGINEER = NS + "engineer";
83: public static final String S_P_PERFORMER = NS + "performer";
84: public static final String S_P_PRODUCER = NS + "producer";
85: public static final String S_P_RECORDED_AS = NS + "recorded_as";
86: public static final String S_P_SINGER = NS + "singer";
87:
88: public static final IRI P_AMAZON_ASIN = FACTORY.createIRI(S_P_AMAZON_ASIN);
89: public static final IRI P_BITS_PER_SAMPLE = FACTORY.createIRI(S_P_BITS_PER_SAMPLE);
90: public static final IRI P_DURATION = FACTORY.createIRI(S_P_DURATION);
91: public static final IRI P_ENCODES = FACTORY.createIRI(S_P_ENCODES);
92: public static final IRI P_GTIN = FACTORY.createIRI(S_P_GTIN);
93: public static final IRI P_TRACK = FACTORY.createIRI(S_P_TRACK);
94: public static final IRI P_MEDIA_TYPE = FACTORY.createIRI(S_P_MEDIA_TYPE);
95: public static final IRI P_MUSICBRAINZ = FACTORY.createIRI(S_P_MUSICBRAINZ);
96: public static final IRI P_MUSICBRAINZ_GUID = FACTORY.createIRI(S_P_MUSICBRAINZ_GUID);
97: public static final IRI P_PUBLISHED_AS = FACTORY.createIRI(S_P_PUBLISHED_AS);
98: public static final IRI P_SAMPLE_RATE = FACTORY.createIRI(S_P_SAMPLE_RATE);
99: public static final IRI P_TRACK_COUNT = FACTORY.createIRI(S_P_TRACK_COUNT);
100: public static final IRI P_TRACK_NUMBER = FACTORY.createIRI(S_P_TRACK_NUMBER);
101:
102: public static final IRI P_CONDUCTOR = FACTORY.createIRI(S_P_CONDUCTOR);
103: public static final IRI P_ENGINEER = FACTORY.createIRI(S_P_ENGINEER);
104: public static final IRI P_PERFORMER = FACTORY.createIRI(S_P_PERFORMER);
105: public static final IRI P_PRODUCER = FACTORY.createIRI(S_P_PRODUCER);
106: public static final IRI P_RECORDED_AS = FACTORY.createIRI(S_P_RECORDED_AS);
107: public static final IRI P_SINGER = FACTORY.createIRI(S_P_SINGER);
108: }