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      public IRI name = createProperty(NS, "name");
    44      public IRI honorific_prefix = createProperty(NS, "honorific-prefix");
    45      public IRI given_name = createProperty(NS, "given-name");
    46      public IRI additional_name = createProperty(NS, "additional-name");
    47      public IRI family_name = createProperty(NS, "family-name");
    48      public IRI sort_string = createProperty(NS, "sort-string");
    49      public IRI honorific_suffix = createProperty(NS, "honorific-suffix");
    50      public IRI nickname = createProperty(NS, "nickname");
    51      public IRI email = createProperty(NS, "email");
    52      public IRI logo = createProperty(NS, "logo");
    53      public IRI photo = createProperty(NS, "photo");
    54      public IRI url = createProperty(NS, "url");
    55      public IRI uid = createProperty(NS, "uid");
    56      public IRI category = createProperty(NS, "category");
    57      public IRI tel = createProperty(NS, "tel");
    58      public IRI note = createProperty(NS, "note");
    59      public IRI bday = createProperty(NS, "bday");
    60      public IRI key = createProperty(NS, "key");
    61      public IRI org = createProperty(NS, "org");
    62      public IRI job_title = createProperty(NS, "job-title");
    63      public IRI role = createProperty(NS, "role");
    64      public IRI impp = createProperty(NS, "impp");
    65      public IRI sex = createProperty(NS, "sex");
    66      public IRI gender_identity = createProperty(NS, "gender-identity");
    67      public IRI anniversary = createProperty(NS, "anniversary");
    68      public IRI geo = createProperty(NS, "geo");
    69      public IRI adr = createProperty(NS, "adr");
    70
    71      public IRI street_address = createProperty(NS, "street-address");
    72      public IRI extended_address = createProperty(NS, "extended-address");
    73      public IRI locality = createProperty(NS, "locality");
    74      public IRI region = createProperty(NS, "region");
    75      public IRI postal_code = createProperty(NS, "postal-code");
    76      public IRI country_name = createProperty(NS, "country-name");
    77
    78      public IRI latitude = createProperty(NS, "latitude");
    79      public IRI longitude = createProperty(NS, "longitude");
    80      public IRI altitude = createProperty(NS, "altitude");
    81
    82      private HCard() {
    83          super(NS);
    84      }
    85  }