001/* 002 * (C) Copyright 2006-2008 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 * Contributors: 017 * Alexandre Russel 018 * 019 * $Id$ 020 */ 021 022package org.nuxeo.ecm.platform.annotations.api; 023 024import org.nuxeo.ecm.platform.relations.api.Resource; 025import org.nuxeo.ecm.platform.relations.api.impl.ResourceImpl; 026 027/** 028 * @author Alexandre Russel 029 */ 030public interface AnnotationsConstants { 031 032 String DEFAULT_BASE_URI = "urn:annotation:"; 033 034 String DEFAULT_GRAPH_NAME = "annotations"; 035 036 String CODEC_PREFIX = "nxdoc"; 037 038 String RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns"; 039 040 String A = "http://www.w3.org/2000/10/annotation-ns"; 041 042 String D = "http://purl.org/dc/elements/1.1/"; 043 044 String NX = "http://rdf.nuxeo.org/nxdoc"; 045 046 String H = "http://www.w3.org/1999/xx/http"; 047 048 String A_ANNOTATES = A + "#annotates"; 049 050 Resource a_annotates = new ResourceImpl(A_ANNOTATES); 051 052 String A_CREATED = A + "#created"; 053 054 String A_BODY = A + "#body"; 055 056 Resource aBody = new ResourceImpl(A_BODY); 057 058 String A_CONTEXT = A + "#context"; 059 060 String D_CREATOR = D + "creator"; 061 062 String D_DATE = D + "date"; 063 064 String H_BODY = H + "#body"; 065 066 String NX_VERSIONS = NX + "#versions"; 067 068 String NX_PROXIES = NX + "#proxies"; 069 070 String NX_ANNOTABLE = NX + "#annotable"; 071 072 String NX_COMPANY = NX + "#company"; 073 074 String NX_ACP = NX + "#acp"; 075 076 String NX_BODY_CONTENT = NX + "#body"; 077 078 Resource nx_body_content = new ResourceImpl(NX_BODY_CONTENT); 079 080 String RDF_ABOUT = RDF + "#about"; 081 082 String RDF_TYPE = RDF + "#type"; 083 084 String RDF_ = RDF + "#_"; 085 086 String RDF_BAG = RDF + "#Bag"; 087 088 String annotationBaseUrl = "http://localhost:8080/nuxeo/Annotations/"; 089 090 String annotationBaseUrlPropertyKey = "org.nuxeo.ecm.platform.annotations.api.annotationBaseUrl"; 091 092 enum ExtensionPoint { 093 uriResolver, urlPatternFilter, metadataMapper, permissionManager, annotabilityManager, eventListener, annotationIDGenerator, permissionMapper, interceptors 094 } 095 096}