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> 
24   * vocabulary.
25   */
26  public class OGPVideo extends Vocabulary {
27  
28      private OGPVideo() {
29          super(NS);
30      }
31  
32      public static final String NS = "http://ogp.me/ns/video#";
33  
34      /* BEGIN: ogp.me/#type_video.movie */
35  
36      /** Actors in the movie. */
37      public static final String VIDEO__ACTOR      = "video:actor";
38  
39      /** The role they played. */
40      public static final String VIDEO__ACTOR_ROLE = "video:actor:role";
41  
42      /** Directors of the movie. */
43      public static final String VIDEO__DIRECTOR   = "video:director";
44  
45      /** Writers of the movie. */
46      public static final String VIDEO__WRITER     = "video:writer";
47  
48      /** The movie's length in seconds. */
49      public static final String VIDEO__DURATION   = "video:duration";
50  
51      /** The date the movie was released. */
52      public static final String VIDEO__RELEASE_DATE = "video:release_date";
53  
54      /** Tag words associated with this movie. */
55      public static final String VIDEO__TAG        = "video:tag";
56  
57      /** Which series this episode belongs to. */
58      public static final String VIDEO__SERIES     = "video:series";
59      /* END: ogp.me/#type_video.movie */
60  
61      private static OGPVideo instance;
62  
63      public static OGPVideo getInstance() {
64          if(instance == null) {
65              instance = new OGPVideo();
66          }
67          return instance;
68      }
69  
70      public final IRI NAMESPACE = createIRI(NS);
71  
72      public final IRI videoActor     = createProperty(VIDEO__ACTOR);
73      public final IRI videoActorRole = createProperty(VIDEO__ACTOR_ROLE);
74      public final IRI videoDirector  = createProperty(VIDEO__DIRECTOR);
75      public final IRI videoWriter    = createProperty(VIDEO__WRITER);
76      public final IRI videoDuration  = createProperty(VIDEO__DURATION);
77      public final IRI videoReleaseDate = createProperty(VIDEO__RELEASE_DATE);
78      public final IRI videoTag       = createProperty(VIDEO__TAG);
79      public final IRI videoSeries    = createProperty(VIDEO__SERIES);
80  
81      @SuppressWarnings("unused")
82      private IRI createClass(String localName) {
83          return createClass(NS, localName);
84      }
85  
86      private IRI createProperty(String localName) {
87          return createProperty(NS, localName);
88      }
89  
90  }