001// *************************************************************************************************************************** 002// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * 003// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * 004// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * 005// * with the License. You may obtain a copy of the License at * 006// * * 007// * http://www.apache.org/licenses/LICENSE-2.0 * 008// * * 009// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * 010// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * 011// * specific language governing permissions and limitations under the License. * 012// *************************************************************************************************************************** 013package org.apache.juneau.jena; 014 015import org.apache.juneau.serializer.*; 016 017/** 018 * Constants used by the {@link RdfSerializer} and {@link RdfParser} classes. 019 */ 020public final class Constants { 021 022 //-------------------------------------------------------------------------------- 023 // Built-in Jena languages. 024 //-------------------------------------------------------------------------------- 025 026 /** Jena language support: <js>"RDF/XML"</js>.*/ 027 public static final String LANG_RDF_XML = "RDF/XML"; 028 029 /** Jena language support: <js>"RDF/XML-ABBREV"</js>.*/ 030 public static final String LANG_RDF_XML_ABBREV = "RDF/XML-ABBREV"; 031 032 /** Jena language support: <js>"N-TRIPLE"</js>.*/ 033 public static final String LANG_NTRIPLE = "N-TRIPLE"; 034 035 /** Jena language support: <js>"TURTLE"</js>.*/ 036 public static final String LANG_TURTLE = "TURTLE"; 037 038 /** Jena language support: <js>"N3"</js>.*/ 039 public static final String LANG_N3 = "N3"; 040 041 042 //-------------------------------------------------------------------------------- 043 // Built-in Juneau properties. 044 //-------------------------------------------------------------------------------- 045 046 /** 047 * RDF property identifier <js>"items"</js>. 048 * 049 * <p> 050 * For resources that are collections, this property identifies the RDF Sequence container for the items in the 051 * collection. 052 */ 053 public static final String RDF_juneauNs_ITEMS = "items"; 054 055 /** 056 * RDF property identifier <js>"root"</js>. 057 * 058 * <p> 059 * Property added to root nodes to help identify them as root elements during parsing. 060 * 061 * <p> 062 * Added if {@link RdfSerializer#RDF_addRootProperty} setting is enabled. 063 */ 064 public static final String RDF_juneauNs_ROOT = "root"; 065 066 /** 067 * RDF property identifier <js>"class"</js>. 068 * 069 * <p> 070 * Property added to bean resources to identify the class type. 071 * 072 * <p> 073 * Added if {@link Serializer#SERIALIZER_addBeanTypeProperties} setting is enabled. 074 */ 075 public static final String RDF_juneauNs_TYPE = "_type"; 076 077 /** 078 * RDF property identifier <js>"value"</js>. 079 * 080 * <p> 081 * Property added to nodes to identify a simple value. 082 */ 083 public static final String RDF_juneauNs_VALUE = "value"; 084 085 /** 086 * RDF resource that identifies a <jk>null</jk> value. 087 */ 088 public static final String RDF_NIL = "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"; 089 090 /** 091 * RDF resource that identifies a <code>Seq</code> value. 092 */ 093 public static final String RDF_SEQ = "http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq"; 094 095 /** 096 * RDF resource that identifies a <code>Bag</code> value. 097 */ 098 public static final String RDF_BAG = "http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag"; 099}