001/* 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017package org.apache.juneau.marshall.jena; 018 019/** 020 * Constants used by the {@link RdfSerializer} and {@link RdfParser} classes. 021 * 022 * <h5 class='section'>See Also:</h5><ul> 023 * <li class='link'>{doc jmr.RdfDetails} 024 025 * </ul> 026 */ 027@SuppressWarnings({ 028 "java:S115" // RDF language name constants mirror the official Jena API string identifiers (e.g. LANG_RDF_XML, LANG_N3) which use mixed conventions 029}) 030public class Constants { 031 032 private Constants() {} 033 034 /** Jena language support: <js>"RDF/XML"</js>.*/ 035 public static final String LANG_RDF_XML = "RDF/XML"; 036 037 /** Jena language support: <js>"RDF/XML-ABBREV"</js>.*/ 038 public static final String LANG_RDF_XML_ABBREV = "RDF/XML-ABBREV"; 039 040 /** Jena language support: <js>"N-TRIPLE"</js>.*/ 041 public static final String LANG_NTRIPLE = "N-TRIPLE"; 042 043 /** Jena language support: <js>"TURTLE"</js>.*/ 044 public static final String LANG_TURTLE = "TURTLE"; 045 046 /** Jena language support: <js>"N3"</js>.*/ 047 public static final String LANG_N3 = "N3"; 048 049 /** Jena language support: <js>"JSON-LD"</js>.*/ 050 public static final String LANG_JSONLD = "JSON-LD"; 051 052 /** Jena language support: <js>"N-QUADS"</js>.*/ 053 public static final String LANG_NQUADS = "N-QUADS"; 054 055 /** Jena language support: <js>"TRIG"</js>.*/ 056 public static final String LANG_TRIG = "TRIG"; 057 058 /** Jena language support: <js>"TRIX"</js>.*/ 059 public static final String LANG_TRIX = "TRIX"; 060 061 /** Jena language support: <js>"RDF/JSON"</js>.*/ 062 public static final String LANG_RDFJSON = "RDF/JSON"; 063 064 /** Jena language support: <js>"RDF/THRIFT"</js> (binary).*/ 065 public static final String LANG_RDFTHRIFT = "RDF/THRIFT"; 066 067 /** Jena language support: <js>"RDF/PROTO"</js> (binary).*/ 068 public static final String LANG_RDFPROTO = "RDF/PROTO"; 069 070 /** 071 * RDF resource that identifies a <jk>null</jk> value. 072 */ 073 public static final String RDF_NIL = "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"; 074 075 /** 076 * RDF resource that identifies a <c>Seq</c> value. 077 */ 078 public static final String RDF_SEQ = "http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq"; 079 080 /** 081 * RDF resource that identifies a <c>Bag</c> value. 082 */ 083 public static final String RDF_BAG = "http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag"; 084}