1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
package org.apache.any23.vocab; |
19 | |
|
20 | |
import org.openrdf.model.URI; |
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
public class OGP extends Vocabulary { |
28 | |
|
29 | |
public static final String NS = "http://ogp.me/ns#"; |
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
public static final String TITLE = "title"; |
35 | |
|
36 | |
|
37 | |
public static final String TYPE = "type"; |
38 | |
|
39 | |
public static final String URL = "url"; |
40 | |
|
41 | |
public static final String IMAGE = "image"; |
42 | |
|
43 | |
|
44 | |
|
45 | |
|
46 | |
|
47 | |
|
48 | |
public static final String AUDIO = "audio"; |
49 | |
|
50 | |
public static final String DESCRIPTION = "description"; |
51 | |
|
52 | |
|
53 | |
public static final String DETERMINER = "determiner"; |
54 | |
|
55 | |
|
56 | |
public static final String LOCALE = "locale"; |
57 | |
|
58 | |
public static final String LOCALE__ALTERNATE = "locale:alternate"; |
59 | |
|
60 | |
|
61 | |
public static final String SITE_NAME = "site_name"; |
62 | |
|
63 | |
public static final String VIDEO = "video"; |
64 | |
|
65 | |
|
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
public static final String IMAGE__URL = "image:url"; |
71 | |
|
72 | |
public static final String IMAGE__SECURE_URL = "image:secure_url"; |
73 | |
|
74 | |
public static final String IMAGE__TYPE = "image:type"; |
75 | |
|
76 | |
public static final String IMAGE__WIDTH = "image:width"; |
77 | |
|
78 | |
public static final String IMAGE__HEIGHT = "image:height"; |
79 | |
|
80 | |
|
81 | |
public static final String VIDEO__URL = "video:url"; |
82 | |
|
83 | |
public static final String VIDEO__SECURE_URL = "video:secure_url"; |
84 | |
|
85 | |
public static final String VIDEO__TYPE = "video:type"; |
86 | |
|
87 | |
public static final String VIDEO__WIDTH = "video:width"; |
88 | |
|
89 | |
public static final String VIDEO__HEIGHT = "video:height"; |
90 | |
|
91 | |
|
92 | |
public static final String AUDIO__SECURE_URL = "audio:secure_url"; |
93 | |
|
94 | |
public static final String AUDIO__TYPE = "audio:type"; |
95 | |
|
96 | |
|
97 | |
|
98 | |
private static OGP instance; |
99 | |
|
100 | |
public static OGP getInstance() { |
101 | 0 | if(instance == null) { |
102 | 0 | instance = new OGP(); |
103 | |
} |
104 | 0 | return instance; |
105 | |
} |
106 | |
|
107 | 0 | public final URI NAMESPACE = createURI(NS); |
108 | |
|
109 | |
|
110 | 0 | public final URI title = createProperty(TITLE); |
111 | 0 | public final URI type = createProperty(TYPE); |
112 | 0 | public final URI url = createProperty(URL); |
113 | 0 | public final URI image = createProperty(IMAGE); |
114 | 0 | public final URI description = createProperty(DESCRIPTION); |
115 | 0 | public final URI determiner = createProperty(DETERMINER); |
116 | 0 | public final URI locale = createProperty(LOCALE); |
117 | 0 | public final URI localeAlternate = createProperty(LOCALE__ALTERNATE); |
118 | 0 | public final URI siteName = createProperty(SITE_NAME); |
119 | 0 | public final URI video = createProperty(VIDEO); |
120 | |
|
121 | 0 | public final URI imageURL = createProperty(IMAGE__URL); |
122 | 0 | public final URI imageSecureURL = createProperty(IMAGE__SECURE_URL); |
123 | 0 | public final URI imageType = createProperty(IMAGE__TYPE); |
124 | 0 | public final URI imageWidth = createProperty(IMAGE__WIDTH); |
125 | 0 | public final URI imageHeight = createProperty(IMAGE__HEIGHT); |
126 | |
|
127 | 0 | public final URI videoURL = createProperty(VIDEO__URL); |
128 | 0 | public final URI videoSecureURL = createProperty(VIDEO__SECURE_URL); |
129 | 0 | public final URI videoType = createProperty(VIDEO__TYPE); |
130 | 0 | public final URI videoWidth = createProperty(VIDEO__WIDTH); |
131 | 0 | public final URI videoHeight = createProperty(VIDEO__HEIGHT); |
132 | |
|
133 | 0 | public final URI audio = createProperty(AUDIO); |
134 | 0 | public final URI audioSecureURL = createProperty(AUDIO__SECURE_URL); |
135 | 0 | public final URI audioType = createProperty(AUDIO__TYPE); |
136 | |
|
137 | |
private URI createClass(String localName) { |
138 | 0 | return createClass(NS, localName); |
139 | |
} |
140 | |
|
141 | |
private URI createProperty(String localName) { |
142 | 0 | return createProperty(NS, localName); |
143 | |
} |
144 | |
|
145 | |
private OGP() { |
146 | 0 | super(NS); |
147 | 0 | } |
148 | |
|
149 | |
} |