|
| 1 | +/* |
| 2 | + * Copyright (c) 2013 LDBC |
| 3 | + * Linked Data Benchmark Council (http://ldbc.eu) |
| 4 | + * |
| 5 | + * This file is part of ldbc_socialnet_dbgen. |
| 6 | + * |
| 7 | + * ldbc_socialnet_dbgen is free software: you can redistribute it and/or modify |
| 8 | + * it under the terms of the GNU General Public License as published by |
| 9 | + * the Free Software Foundation, either version 3 of the License, or |
| 10 | + * (at your option) any later version. |
| 11 | + * |
| 12 | + * ldbc_socialnet_dbgen is distributed in the hope that it will be useful, |
| 13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | + * GNU General Public License for more details. |
| 16 | + * |
| 17 | + * You should have received a copy of the GNU General Public License |
| 18 | + * along with ldbc_socialnet_dbgen. If not, see <http://www.gnu.org/licenses/>. |
| 19 | + * |
| 20 | + * Copyright (C) 2011 OpenLink Software <[email protected]> |
| 21 | + * All Rights Reserved. |
| 22 | + * |
| 23 | + * This program is free software; you can redistribute it and/or modify |
| 24 | + * it under the terms of the GNU General Public License as published by |
| 25 | + * the Free Software Foundation; only Version 2 of the License dated |
| 26 | + * June 1991. |
| 27 | + * |
| 28 | + * This program is distributed in the hope that it will be useful, |
| 29 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 30 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 31 | + * GNU General Public License for more details. |
| 32 | + * |
| 33 | + * You should have received a copy of the GNU General Public License |
| 34 | + * along with this program; if not, write to the Free Software |
| 35 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 36 | + */ |
| 37 | +package ldbc.snb.datagen.vocabulary; |
| 38 | + |
| 39 | +/** |
| 40 | + * LDBC social network vocabulary namespace used in the serialization process. |
| 41 | + */ |
| 42 | +public class SNTAG { |
| 43 | + |
| 44 | + public static final String NAMESPACE = "http://www.ldbc.eu/ldbc_socialnet/1.0/tag/"; |
| 45 | + public static final String PREFIX = "sntag:"; |
| 46 | + |
| 47 | + |
| 48 | + /** |
| 49 | + * Gets the LDBC social network vocabulary prefix version of the input. |
| 50 | + */ |
| 51 | + public static String prefixed(String string) { |
| 52 | + return PREFIX + string; |
| 53 | + } |
| 54 | + |
| 55 | + /** |
| 56 | + * Gets the LDBC social network vocabulary URL version of the input. |
| 57 | + */ |
| 58 | + public static String getUrl(String string) { |
| 59 | + return NAMESPACE + string; |
| 60 | + } |
| 61 | + |
| 62 | + /** |
| 63 | + * Gets the LDBC social network vocabulary RDF-URL version of the input. |
| 64 | + */ |
| 65 | + public static String fullPrefixed(String string) { |
| 66 | + return "<" + NAMESPACE + string + ">"; |
| 67 | + } |
| 68 | +} |
0 commit comments