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 to map the <a href="http://microformats.org/wiki/hcard">h-card</a> microformat.
24   *
25   * @author Nisala Nirmana
26   */
27  public class HCard extends Vocabulary {
28      public static final String NS = SINDICE.NS + "hcard/";
29  
30      private static HCard instance;
31  
32      public static HCard getInstance() {
33          if(instance == null) {
34              instance = new HCard();
35          }
36          return instance;
37      }
38  
39      public IRI Card  = createClass(NS, "Card");
40      public IRI Address   = createClass(NS, "Address");
41      public IRI Geo = createClass(NS, "Geo");
42  
43  
44      public IRI name  = createProperty(NS, "name");
45      public IRI honorific_prefix   = createProperty(NS, "honorific-prefix");
46      public IRI given_name   = createProperty(NS, "given-name");
47      public IRI additional_name   = createProperty(NS, "additional-name");
48      public IRI family_name   = createProperty(NS, "family-name");
49      public IRI sort_string   = createProperty(NS, "sort-string");
50      public IRI honorific_suffix   = createProperty(NS, "honorific-suffix");
51      public IRI nickname  = createProperty(NS, "nickname");
52      public IRI email   = createProperty(NS, "email");
53      public IRI logo   = createProperty(NS, "logo");
54      public IRI photo  = createProperty(NS, "photo");
55      public IRI url   = createProperty(NS, "url");
56      public IRI uid   = createProperty(NS, "uid");
57      public IRI category   = createProperty(NS, "category");
58      public IRI tel  = createProperty(NS, "tel");
59      public IRI note   = createProperty(NS, "note");
60      public IRI bday   = createProperty(NS, "bday");
61      public IRI key  = createProperty(NS, "key");
62      public IRI org   = createProperty(NS, "org");
63      public IRI job_title   = createProperty(NS, "job-title");
64      public IRI role   = createProperty(NS, "role");
65      public IRI impp   = createProperty(NS, "impp");
66      public IRI sex  = createProperty(NS, "sex");
67      public IRI gender_identity   = createProperty(NS, "gender-identity");
68      public IRI anniversary   = createProperty(NS, "anniversary");
69      public IRI geo   = createProperty(NS, "geo");
70      public IRI adr   = createProperty(NS, "adr");
71  
72      public IRI street_address  = createProperty(NS, "street-address");
73      public IRI extended_address   = createProperty(NS, "extended-address");
74      public IRI locality   = createProperty(NS, "locality");
75      public IRI region   = createProperty(NS, "region");
76      public IRI postal_code   = createProperty(NS, "postal-code");
77      public IRI country_name   = createProperty(NS, "country-name");
78  
79      public IRI latitude   = createProperty(NS, "latitude");
80      public IRI longitude   = createProperty(NS, "longitude");
81      public IRI altitude   = createProperty(NS, "altitude");
82  
83      private HCard() {
84          super(NS);
85      }
86  }