Mercurial > hg > LGDataverses
annotate DVN-web/src/main/java/org/swordapp/server/UriRegistry.java @ 7:6750dab0f86e
Adding developer guide.
author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
---|---|
date | Tue, 26 May 2015 14:05:03 +0200 |
parents | 2ae72563a29d |
children |
rev | line source |
---|---|
2
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
1 package org.swordapp.server; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
2 |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
3 import javax.xml.namespace.QName; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
4 |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
5 public class UriRegistry |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
6 { |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
7 // Namespace prefixes |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
8 public static String SWORD_PREFIX = "sword"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
9 public static String ORE_PREFIX = "ore"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
10 public static String APP_PREFIX = "app"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
11 public static String DC_PREFIX = "dcterms"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
12 public static String ATOM_PREFIX = "atom"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
13 |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
14 // Namespaces |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
15 public static String SWORD_TERMS_NAMESPACE = "http://purl.org/net/sword/terms/"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
16 public static String APP_NAMESPACE = "http://www.w3.org/2007/app"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
17 public static String DC_NAMESPACE = "http://purl.org/dc/terms/"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
18 public static String ORE_NAMESPACE = "http://www.openarchives.org/ore/terms/"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
19 public static String ATOM_NAMESPACE = "http://www.w3.org/2005/Atom"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
20 |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
21 // QNames for Extension Elements |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
22 public static QName SWORD_VERSION = new QName(SWORD_TERMS_NAMESPACE, "version"); |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
23 public static QName SWORD_MAX_UPLOAD_SIZE = new QName(SWORD_TERMS_NAMESPACE, "maxUploadSize"); |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
24 public static QName SWORD_COLLECTION_POLICY = new QName(SWORD_TERMS_NAMESPACE, "collectionPolicy"); |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
25 public static QName SWORD_MEDIATION = new QName(SWORD_TERMS_NAMESPACE, "mediation"); |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
26 public static QName SWORD_TREATMENT = new QName(SWORD_TERMS_NAMESPACE, "treatment"); |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
27 public static QName SWORD_ACCEPT_PACKAGING = new QName(SWORD_TERMS_NAMESPACE, "acceptPackaging"); |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
28 public static QName SWORD_SERVICE = new QName(SWORD_TERMS_NAMESPACE, "service"); |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
29 public static QName SWORD_PACKAGING = new QName(SWORD_TERMS_NAMESPACE, "packaging"); |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
30 public static QName SWORD_VERBOSE_DESCRIPTION = new QName(SWORD_TERMS_NAMESPACE, "verboseDescription"); |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
31 public static QName APP_ACCEPT = new QName(APP_NAMESPACE, "accept"); |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
32 public static QName DC_ABSTRACT = new QName(DC_NAMESPACE, "abstract"); |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
33 |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
34 // URIs for the statement |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
35 public static String SWORD_DEPOSITED_BY = SWORD_TERMS_NAMESPACE + "depositedBy"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
36 public static String SWORD_DEPOSITED_ON_BEHALF_OF = SWORD_TERMS_NAMESPACE + "depositedOnBehalfOf"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
37 public static String SWORD_DEPOSITED_ON = SWORD_TERMS_NAMESPACE + "depositedOn"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
38 public static String SWORD_ORIGINAL_DEPOSIT = SWORD_TERMS_NAMESPACE + "originalDeposit"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
39 public static String SWORD_STATE_DESCRIPTION = SWORD_TERMS_NAMESPACE + "stateDescription"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
40 public static String SWORD_STATE = SWORD_TERMS_NAMESPACE + "state"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
41 |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
42 // rel values |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
43 public static String REL_STATEMENT = "http://purl.org/net/sword/terms/statement"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
44 public static String REL_SWORD_EDIT = "http://purl.org/net/sword/terms/add"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
45 public static String REL_ORIGINAL_DEPOSIT = "http://purl.org/net/sword/terms/originalDeposit"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
46 public static String REL_DERIVED_RESOURCE = "http://purl.org/net/sword/terms/derivedResource"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
47 |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
48 // Package Formats |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
49 public static String PACKAGE_SIMPLE_ZIP = "http://purl.org/net/sword/package/SimpleZip"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
50 public static String PACKAGE_BINARY = "http://purl.org/net/sword/package/Binary"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
51 |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
52 // Error Codes |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
53 public static String ERROR_BAD_REQUEST = "http://purl.org/net/sword/error/ErrorBadRequest"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
54 public static String ERROR_CONTENT = "http://purl.org/net/sword/error/ErrorContent"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
55 public static String ERROR_CHECKSUM_MISMATCH = "http://purl.org/net/sword/error/ErrorChecksumMismatch"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
56 public static String ERROR_TARGET_OWNER_UNKNOWN = "http://purl.org/net/sword/error/TargetOwnerUnknown"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
57 public static String ERROR_MEDIATION_NOT_ALLOWED = "http://purl.org/net/sword/error/MediationNotAllowed"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
58 public static String ERROR_METHOD_NOT_ALLOWED = "http://purl.org/net/sword/error/MethodNotAllowed"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
59 public static String ERROR_MAX_UPLOAD_SIZE_EXCEEDED = "http://purl.org/net/sword/error/MaxUploadSizeExceeded"; |
2ae72563a29d
Commit of the project with the correct structure.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff
changeset
|
60 } |