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   * Vocabulary definitions from vcard.owl
24   */
25  public class VCard extends Vocabulary {
26  
27      /**
28       * The namespace of the vocabulary as a string.
29       */
30      public static final String NS = "http://www.w3.org/2006/vcard/ns#";
31  
32      private static VCard instance;
33  
34      public static VCard getInstance() {
35          if(instance == null) {
36              instance = new VCard();
37          }
38          return instance;
39      }
40  
41      /**
42       * The namespace of the vocabulary as a IRI.
43       */
44      public final IRI NAMESPACE = createIRI(NS);
45  
46      /**
47       * An additional part of a person's name.
48       */
49      public final IRI additional_name = createProperty("additional-name");
50  
51      /**
52       * A postal or street address of a person.
53       */
54      public final IRI adr = createProperty("adr");
55  
56      /**
57       * A person that acts as one's agent.
58       */
59      public final IRI agent = createProperty("agent");
60  
61      /**
62       * The altitude of a geographic location.
63       */
64      public final IRI altitude = createProperty("altitude");
65  
66      /**
67       * The birthday of a person.
68       */
69      public final IRI bday = createProperty("bday");
70  
71      /**
72       * A category of a vCard.
73       */
74      public final IRI category = createProperty("category");
75  
76      /**
77       * A class (e.g., public, private, etc.) of a vCard.
78       */
79      public final IRI class_ = createProperty("class");
80  
81      /**
82       * The country of a postal address.
83       */
84      public final IRI country_name = createProperty("country-name");
85  
86      /**
87       * An email address.
88       */
89      public final IRI email = createProperty("email");
90  
91      /**
92       * The extended address of a postal address.
93       */
94      public final IRI extended_address = createProperty("extended-address");
95  
96      /**
97       * A family name part of a person's name.
98       */
99      public final IRI family_name = createProperty("family-name");
100 
101     /**
102      * A fax number of a person.
103      */
104     public final IRI fax = createProperty("fax");
105 
106     /**
107      * A formatted name of a person.
108      */
109     public final IRI fn = createProperty("fn");
110 
111     /**
112      * A geographic location associated with a person.
113      */
114     public final IRI geo = createProperty("geo");
115 
116     /**
117      * A given name part of a person's name.
118      */
119     public final IRI given_name = createProperty("given-name");
120 
121     /**
122      * A home address of a person.
123      */
124     public final IRI homeAdr = createProperty("homeAdr");
125 
126     /**
127      * A home phone number of a person.
128      */
129     public final IRI homeTel = createProperty("homeTel");
130 
131     /**
132      * An honorific prefix part of a person's name.
133      */
134     public final IRI honorific_prefix = createProperty("honorific-prefix");
135 
136     /**
137      * An honorific suffix part of a person's name.
138      */
139     public final IRI honorific_suffix = createProperty("honorific-suffix");
140 
141     /**
142      * A key (e.g, PKI key) of a person.
143      */
144     public final IRI key = createProperty("key");
145 
146     /**
147      * The formatted version of a postal address (a string with embedded line breaks,
148      * punctuation, etc.).
149      */
150     public final IRI label = createProperty("label");
151 
152     /**
153      * The latitude of a geographic location.
154      */
155     public final IRI latitude = createProperty("latitude");
156 
157     /**
158      * The locality (e.g., city) of a postal address.
159      */
160     public final IRI locality = createProperty("locality");
161 
162     /**
163      * A logo associated with a person or their organization.
164      */
165     public final IRI logo = createProperty("logo");
166 
167     /**
168      * The longitude of a geographic location.
169      */
170     public final IRI longitude = createProperty("longitude");
171 
172     /**
173      * A mailer associated with a vCard.
174      */
175     public final IRI mailer = createProperty("mailer");
176 
177     /**
178      * A mobile email address of a person.
179      */
180     public final IRI mobileEmail = createProperty("mobileEmail");
181 
182     /**
183      * A mobile phone number of a person.
184      */
185     public final IRI mobileTel = createProperty("mobileTel");
186 
187     /**
188      * The components of the name of a person.
189      */
190     public final IRI n = createProperty("n");
191 
192     /**
193      * The nickname of a person.
194      */
195     public final IRI nickname = createProperty("nickname");
196 
197     /**
198      * Notes about a person on a vCard.
199      */
200     public final IRI note = createProperty("note");
201 
202     /**
203      * An organization associated with a person.
204      */
205     public final IRI org = createProperty("org");
206 
207     /**
208      * The name of an organization.
209      */
210     public final IRI organization_name = createProperty("organization-name");
211 
212     /**
213      * The name of a unit within an organization.
214      */
215     public final IRI organization_unit = createProperty("organization-unit");
216 
217     /**
218      * An email address unaffiliated with any particular organization or employer;
219      * a personal email address.
220      */
221     public final IRI personalEmail = createProperty("personalEmail");
222 
223     /**
224      * A photograph of a person.
225      */
226     public final IRI photo = createProperty("photo");
227 
228     /**
229      * The post office box of a postal address.
230      */
231     public final IRI post_office_box = createProperty("post-office-box");
232 
233     /**
234      * The postal code (e.g., U.S. ZIP code) of a postal address.
235      */
236     public final IRI postal_code = createProperty("postal-code");
237 
238     /**
239      * The region (e.g., state or province) of a postal address.
240      */
241     public final IRI region = createProperty("region");
242 
243     /**
244      * The timestamp of a revision of a vCard.
245      */
246     public final IRI rev = createProperty("rev");
247 
248     /**
249      * A role a person plays within an organization.
250      */
251     public final IRI role = createProperty("role");
252 
253     /**
254      * A version of a person's name suitable for collation.
255      */
256     public final IRI sort_string = createProperty("sort-string");
257 
258     /**
259      * A sound (e.g., a greeting or pronounciation) of a person.
260      */
261     public final IRI sound = createProperty("sound");
262 
263     /**
264      * The street address of a postal address.
265      */
266     public final IRI street_address = createProperty("street-address");
267 
268     /**
269      * A telephone number of a person.
270      */
271     public final IRI tel = createProperty("tel");
272 
273     /**
274      * A person's title.
275      */
276     public final IRI title = createProperty("title");
277 
278     /**
279      * A timezone associated with a person.
280      */
281     public final IRI tz = createProperty("tz");
282 
283     /**
284      * A UID of a person's vCard.
285      */
286     public final IRI uid = createProperty("uid");
287 
288     /**
289      * An (explicitly) unlabeled address of a person.
290      */
291     public final IRI unlabeledAdr = createProperty("unlabeledAdr");
292 
293     /**
294      * An (explicitly) unlabeled email address of a person.
295      */
296     public final IRI unlabeledEmail = createProperty("unlabeledEmail");
297 
298     /**
299      * An (explicitly) unlabeled phone number of a person.
300      */
301     public final IRI unlabeledTel = createProperty("unlabeledTel");
302 
303     /**
304      * A URL associated with a person.
305      */
306     public final IRI url = createProperty("url");
307 
308     /**
309      * A work address of a person.
310      */
311     public final IRI workAdr = createProperty("workAdr");
312 
313     /**
314      * A work email address of a person.
315      */
316     public final IRI workEmail = createProperty("workEmail");
317 
318     /**
319      * A work phone number of a person.
320      */
321     public final IRI workTel = createProperty("workTel");
322 
323     /**
324      * Resources that are vCard (postal) addresses.
325      */
326     public final IRI Address = createIRI("http://www.w3.org/2006/vcard/ns#Address");
327 
328     public final IRI addressType = createProperty("addressType");
329 
330     /**
331      * Resources that are vCard Telephones.
332      */
333     public final IRI Telephone = createIRI("http://www.w3.org/2006/vcard/ns#Address");
334 
335     /**
336      * Resources that are vCard geographic locations.
337      */
338     public final IRI Location = createIRI("http://www.w3.org/2006/vcard/ns#Location");
339 
340     /**
341      * Resources that are vCard personal names.
342      */
343     public final IRI Name = createIRI("http://www.w3.org/2006/vcard/ns#Name");
344 
345     /**
346      * Resources that are vCard organizations.
347      */
348     public final IRI Organization = createIRI("http://www.w3.org/2006/vcard/ns#Organization");
349 
350     /**
351      * Resources that are vCards
352      */
353     public final IRI VCard = createIRI("http://www.w3.org/2006/vcard/ns#VCard");
354 
355 
356     private IRI createProperty(String localName) {
357         return createProperty(NS, localName);
358     }
359 
360     public VCard(){
361         super(NS);
362     }
363 }