01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.repository.http.config;
07:
08: import org.openrdf.model.URI;
09: import org.openrdf.model.ValueFactory;
10: import org.openrdf.model.impl.ValueFactoryImpl;
11: import org.openrdf.repository.http.HTTPRepository;
12:
13: /**
14: * Defines constants for the HTTPRepository schema which is used by
15: * {@link HTTPRepositoryFactory}s to initialize {@link HTTPRepository}s.
16: *
17: * @author Arjohn Kampman
18: */
19: public class HTTPRepositorySchema {
20:
21: /** The HTTPRepository schema namespace (<tt>http://www.openrdf.org/config/repository/http#</tt>). */
22: public static final String NAMESPACE = "http://www.openrdf.org/config/repository/http#";
23:
24: /** <tt>http://www.openrdf.org/config/repository/http#repositoryURL</tt> */
25: public final static URI REPOSITORYURL;
26:
27: /** <tt>http://www.openrdf.org/config/repository/http#username</tt> */
28: public final static URI USERNAME;
29:
30: /** <tt>http://www.openrdf.org/config/repository/http#password</tt> */
31: public final static URI PASSWORD;
32:
33: static {
34: ValueFactory factory = ValueFactoryImpl.getInstance();
35: REPOSITORYURL = factory.createURI(NAMESPACE, "repositoryURL");
36: USERNAME = factory.createURI(NAMESPACE, "username");
37: PASSWORD = factory.createURI(NAMESPACE, "password");
38: }
39: }
|