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, punctuation, etc.).
    148      */
    149     public final IRI label = createProperty("label");
    150
    151     /**
    152      * The latitude of a geographic location.
    153      */
    154     public final IRI latitude = createProperty("latitude");
    155
    156     /**
    157      * The locality (e.g., city) of a postal address.
    158      */
    159     public final IRI locality = createProperty("locality");
    160
    161     /**
    162      * A logo associated with a person or their organization.
    163      */
    164     public final IRI logo = createProperty("logo");
    165
    166     /**
    167      * The longitude of a geographic location.
    168      */
    169     public final IRI longitude = createProperty("longitude");
    170
    171     /**
    172      * A mailer associated with a vCard.
    173      */
    174     public final IRI mailer = createProperty("mailer");
    175
    176     /**
    177      * A mobile email address of a person.
    178      */
    179     public final IRI mobileEmail = createProperty("mobileEmail");
    180
    181     /**
    182      * A mobile phone number of a person.
    183      */
    184     public final IRI mobileTel = createProperty("mobileTel");
    185
    186     /**
    187      * The components of the name of a person.
    188      */
    189     public final IRI n = createProperty("n");
    190
    191     /**
    192      * The nickname of a person.
    193      */
    194     public final IRI nickname = createProperty("nickname");
    195
    196     /**
    197      * Notes about a person on a vCard.
    198      */
    199     public final IRI note = createProperty("note");
    200
    201     /**
    202      * An organization associated with a person.
    203      */
    204     public final IRI org = createProperty("org");
    205
    206     /**
    207      * The name of an organization.
    208      */
    209     public final IRI organization_name = createProperty("organization-name");
    210
    211     /**
    212      * The name of a unit within an organization.
    213      */
    214     public final IRI organization_unit = createProperty("organization-unit");
    215
    216     /**
    217      * An email address unaffiliated with any particular organization or employer; a personal email address.
    218      */
    219     public final IRI personalEmail = createProperty("personalEmail");
    220
    221     /**
    222      * A photograph of a person.
    223      */
    224     public final IRI photo = createProperty("photo");
    225
    226     /**
    227      * The post office box of a postal address.
    228      */
    229     public final IRI post_office_box = createProperty("post-office-box");
    230
    231     /**
    232      * The postal code (e.g., U.S. ZIP code) of a postal address.
    233      */
    234     public final IRI postal_code = createProperty("postal-code");
    235
    236     /**
    237      * The region (e.g., state or province) of a postal address.
    238      */
    239     public final IRI region = createProperty("region");
    240
    241     /**
    242      * The timestamp of a revision of a vCard.
    243      */
    244     public final IRI rev = createProperty("rev");
    245
    246     /**
    247      * A role a person plays within an organization.
    248      */
    249     public final IRI role = createProperty("role");
    250
    251     /**
    252      * A version of a person's name suitable for collation.
    253      */
    254     public final IRI sort_string = createProperty("sort-string");
    255
    256     /**
    257      * A sound (e.g., a greeting or pronounciation) of a person.
    258      */
    259     public final IRI sound = createProperty("sound");
    260
    261     /**
    262      * The street address of a postal address.
    263      */
    264     public final IRI street_address = createProperty("street-address");
    265
    266     /**
    267      * A telephone number of a person.
    268      */
    269     public final IRI tel = createProperty("tel");
    270
    271     /**
    272      * A person's title.
    273      */
    274     public final IRI title = createProperty("title");
    275
    276     /**
    277      * A timezone associated with a person.
    278      */
    279     public final IRI tz = createProperty("tz");
    280
    281     /**
    282      * A UID of a person's vCard.
    283      */
    284     public final IRI uid = createProperty("uid");
    285
    286     /**
    287      * An (explicitly) unlabeled address of a person.
    288      */
    289     public final IRI unlabeledAdr = createProperty("unlabeledAdr");
    290
    291     /**
    292      * An (explicitly) unlabeled email address of a person.
    293      */
    294     public final IRI unlabeledEmail = createProperty("unlabeledEmail");
    295
    296     /**
    297      * An (explicitly) unlabeled phone number of a person.
    298      */
    299     public final IRI unlabeledTel = createProperty("unlabeledTel");
    300
    301     /**
    302      * A URL associated with a person.
    303      */
    304     public final IRI url = createProperty("url");
    305
    306     /**
    307      * A work address of a person.
    308      */
    309     public final IRI workAdr = createProperty("workAdr");
    310
    311     /**
    312      * A work email address of a person.
    313      */
    314     public final IRI workEmail = createProperty("workEmail");
    315
    316     /**
    317      * A work phone number of a person.
    318      */
    319     public final IRI workTel = createProperty("workTel");
    320
    321     /**
    322      * Resources that are vCard (postal) addresses.
    323      */
    324     public final IRI Address = createIRI("http://www.w3.org/2006/vcard/ns#Address");
    325
    326     public final IRI addressType = createProperty("addressType");
    327
    328     /**
    329      * Resources that are vCard Telephones.
    330      */
    331     public final IRI Telephone = createIRI("http://www.w3.org/2006/vcard/ns#Address");
    332
    333     /**
    334      * Resources that are vCard geographic locations.
    335      */
    336     public final IRI Location = createIRI("http://www.w3.org/2006/vcard/ns#Location");
    337
    338     /**
    339      * Resources that are vCard personal names.
    340      */
    341     public final IRI Name = createIRI("http://www.w3.org/2006/vcard/ns#Name");
    342
    343     /**
    344      * Resources that are vCard organizations.
    345      */
    346     public final IRI Organization = createIRI("http://www.w3.org/2006/vcard/ns#Organization");
    347
    348     /**
    349      * Resources that are vCards
    350      */
    351     public final IRI VCard = createIRI("http://www.w3.org/2006/vcard/ns#VCard");
    352
    353     private IRI createProperty(String localName) {
    354         return createProperty(NS, localName);
    355     }
    356
    357     public VCard() {
    358         super(NS);
    359     }
    360 }