001/*
002 * (C) Copyright 2006-2008 Nuxeo SAS (http://nuxeo.com/) and contributors.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the GNU Lesser General Public License
006 * (LGPL) version 2.1 which accompanies this distribution, and is available at
007 * http://www.gnu.org/licenses/lgpl.html
008 *
009 * This library is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012 * Lesser General Public License for more details.
013 *
014 * Contributors:
015 *     Alexandre Russel
016 *
017 * $Id$
018 */
019
020package org.nuxeo.ecm.platform.annotations.api;
021
022import org.nuxeo.ecm.platform.relations.api.Resource;
023import org.nuxeo.ecm.platform.relations.api.impl.ResourceImpl;
024
025/**
026 * @author Alexandre Russel
027 */
028public interface AnnotationsConstants {
029
030    String DEFAULT_BASE_URI = "urn:annotation:";
031
032    String DEFAULT_GRAPH_NAME = "annotations";
033
034    String CODEC_PREFIX = "nxdoc";
035
036    String RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns";
037
038    String A = "http://www.w3.org/2000/10/annotation-ns";
039
040    String D = "http://purl.org/dc/elements/1.1/";
041
042    String NX = "http://rdf.nuxeo.org/nxdoc";
043
044    String H = "http://www.w3.org/1999/xx/http";
045
046    String A_ANNOTATES = A + "#annotates";
047
048    Resource a_annotates = new ResourceImpl(A_ANNOTATES);
049
050    String A_CREATED = A + "#created";
051
052    String A_BODY = A + "#body";
053
054    Resource aBody = new ResourceImpl(A_BODY);
055
056    String A_CONTEXT = A + "#context";
057
058    String D_CREATOR = D + "creator";
059
060    String D_DATE = D + "date";
061
062    String H_BODY = H + "#body";
063
064    String NX_VERSIONS = NX + "#versions";
065
066    String NX_PROXIES = NX + "#proxies";
067
068    String NX_ANNOTABLE = NX + "#annotable";
069
070    String NX_COMPANY = NX + "#company";
071
072    String NX_ACP = NX + "#acp";
073
074    String NX_BODY_CONTENT = NX + "#body";
075
076    Resource nx_body_content = new ResourceImpl(NX_BODY_CONTENT);
077
078    String RDF_ABOUT = RDF + "#about";
079
080    String RDF_TYPE = RDF + "#type";
081
082    String RDF_ = RDF + "#_";
083
084    String RDF_BAG = RDF + "#Bag";
085
086    String annotationBaseUrl = "http://localhost:8080/nuxeo/Annotations/";
087
088    String annotationBaseUrlPropertyKey = "org.nuxeo.ecm.platform.annotations.api.annotationBaseUrl";
089
090    enum ExtensionPoint {
091        uriResolver, urlPatternFilter, metadataMapper, permissionManager, annotabilityManager, eventListener, annotationIDGenerator, permissionMapper, interceptors
092    }
093
094}