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 * The <a href="http://ogp.me/">Open Graph Protocol Profile Type</a> vocabulary. 24 */ 25 public class OGPProfile extends Vocabulary { 26 27 private OGPProfile() { 28 super(NS); 29 } 30 31 public static final String NS = "http://ogp.me/ns/profile#"; 32 33 /* BEGIN: http://ogp.me/#type_profile */ 34 35 /** A name normally given to an individual by a parent or self-chosen. */ 36 public static final String PROFILE__FIRST_NAME = "profile:first_name"; 37 38 /** A name inherited from a family or marriage and by which the individual is commonly known. */ 39 public static final String PROFILE__LAST_NAME = "profile:last_name"; 40 41 /** A short unique string to identify them. */ 42 public static final String PROFILE__USERNAME = "profile:username"; 43 44 /** Their gender. */ 45 public static final String PROFILE__GENDER = "profile:gender"; 46 47 /* END: http://ogp.me/#type_profile */ 48 49 private static OGPProfile instance; 50 51 public static OGPProfile getInstance() { 52 if (instance == null) { 53 instance = new OGPProfile(); 54 } 55 return instance; 56 } 57 58 public final IRI NAMESPACE = createIRI(NS); 59 60 public final IRI profileFirstName = createProperty(PROFILE__FIRST_NAME); 61 public final IRI profileLastName = createProperty(PROFILE__LAST_NAME); 62 public final IRI profileUsername = createProperty(PROFILE__USERNAME); 63 public final IRI profileGender = createProperty(PROFILE__GENDER); 64 65 @SuppressWarnings("unused") 66 private IRI createClass(String localName) { 67 return createClass(NS, localName); 68 } 69 70 private IRI createProperty(String localName) { 71 return createProperty(NS, localName); 72 } 73 74 }