View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    *
9    *  http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  
18  package org.apache.any23.vocab;
19  
20  import org.eclipse.rdf4j.model.IRI;
21  
22  /**
23   * The <a href="http://ogp.me/#type_video">Open Graph Protocol Video Type</a> vocabulary.
24   */
25  public class OGPVideo extends Vocabulary {
26  
27      private OGPVideo() {
28          super(NS);
29      }
30  
31      public static final String NS = "http://ogp.me/ns/video#";
32  
33      /* BEGIN: ogp.me/#type_video.movie */
34  
35      /** Actors in the movie. */
36      public static final String VIDEO__ACTOR = "video:actor";
37  
38      /** The role they played. */
39      public static final String VIDEO__ACTOR_ROLE = "video:actor:role";
40  
41      /** Directors of the movie. */
42      public static final String VIDEO__DIRECTOR = "video:director";
43  
44      /** Writers of the movie. */
45      public static final String VIDEO__WRITER = "video:writer";
46  
47      /** The movie's length in seconds. */
48      public static final String VIDEO__DURATION = "video:duration";
49  
50      /** The date the movie was released. */
51      public static final String VIDEO__RELEASE_DATE = "video:release_date";
52  
53      /** Tag words associated with this movie. */
54      public static final String VIDEO__TAG = "video:tag";
55  
56      /** Which series this episode belongs to. */
57      public static final String VIDEO__SERIES = "video:series";
58      /* END: ogp.me/#type_video.movie */
59  
60      private static OGPVideo instance;
61  
62      public static OGPVideo getInstance() {
63          if (instance == null) {
64              instance = new OGPVideo();
65          }
66          return instance;
67      }
68  
69      public final IRI NAMESPACE = createIRI(NS);
70  
71      public final IRI videoActor = createProperty(VIDEO__ACTOR);
72      public final IRI videoActorRole = createProperty(VIDEO__ACTOR_ROLE);
73      public final IRI videoDirector = createProperty(VIDEO__DIRECTOR);
74      public final IRI videoWriter = createProperty(VIDEO__WRITER);
75      public final IRI videoDuration = createProperty(VIDEO__DURATION);
76      public final IRI videoReleaseDate = createProperty(VIDEO__RELEASE_DATE);
77      public final IRI videoTag = createProperty(VIDEO__TAG);
78      public final IRI videoSeries = createProperty(VIDEO__SERIES);
79  
80      @SuppressWarnings("unused")
81      private IRI createClass(String localName) {
82          return createClass(NS, localName);
83      }
84  
85      private IRI createProperty(String localName) {
86          return createProperty(NS, localName);
87      }
88  
89  }