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_book">Open Graph Protocol Book Type</a> vocabulary.
24 */
25 public class OGPBook extends Vocabulary {
26
27 private OGPBook() {
28 super(NS);
29 }
30
31 public static final String NS = "http://ogp.me/ns/book#";
32
33 /* BEGIN: http://ogp.me/#type_book */
34
35 /** Who wrote this book. */
36 public static final String BOOK__AUTHOR = "book:author";
37
38 /** The ISBN */
39 public static final String BOOK__ISBN = "book:isbn";
40
41 /** The date the book was released. */
42 public static final String BOOK__RELEASE_DATE = "book:release_date";
43
44 /** Tag words associated with this book. */
45 public static final String BOOK__TAG = "book:tag";
46
47 /* END: http://ogp.me/#type_book */
48
49 private static OGPBook instance;
50
51 public static OGPBook getInstance() {
52 if (instance == null) {
53 instance = new OGPBook();
54 }
55 return instance;
56 }
57
58 public final IRI NAMESPACE = createIRI(NS);
59
60 public final IRI bookAuthor = createProperty(BOOK__AUTHOR);
61 public final IRI bookIsbn = createProperty(BOOK__ISBN);
62 public final IRI bookReleaseDate = createProperty(BOOK__RELEASE_DATE);
63 public final IRI bookTag = createProperty(BOOK__TAG);
64
65 @SuppressWarnings("unused")
66 private IRI createClass(String localName) {
67 return createClass(NS, localName);
68 }
69
70 private IRI createProperty(String localName) {
71 return createProperty(NS, localName);
72 }
73
74 }