Page History
...
To enable DSpace's SWORD server, just make sure the [dspace]/webapps/sword/
web application is available from your Servlet Container (usually Tomcat).
Configuring SWORD Server
Configuration File: |
| ||
---|---|---|---|
Property: |
| ||
Example Value: |
| ||
Informational Note: | The property key tell the SWORD METS implementation which package ingester to use to install deposited content. This should refer to one of the classes configured for:
The value of sword.mets-ingester.package-ingester tells the system which named plugin for this interface should be used to ingest SWORD METS packages. | ||
Properties: |
| ||
Example Value: |
| ||
Informational Note: | Define the metadata types which can be accepted/handled by SWORD during ingest of a package. Currently, EPDCX (EPrints DC XML) is the recommended default metadata format, but others are supported. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | Define the stylesheet which will be used by the self-named XSLTIngestionCrosswalk class when asked to load the SWORD configuration (as specified above). This will use the specified stylesheet to crosswalk the incoming SWAP metadata to the DIM format for ingestion. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | The base URL of the SWORD deposit. This is the URL from which DSpace will construct the deposit location URLs for collections. The default is | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | The base URL of the SWORD service document. This is the URL from which DSpace will construct the service document location URLs for the site, and for individual collections. The default is | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | The base URL of the SWORD media links. This is the URL which DSpace will use to construct the media link URLs for items which are deposited via sword. The default is | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | The URL which identifies the SWORD software which provides the sword interface. This is the URL which DSpace will use to fill out the atom:generator element of its atom documents. The default is: {{ http://www.dspace.org/ns/sword/1.3.1}}. If you have modified your SWORD software, you should change this URI to identify your own version. If you are using the standard 'dspace-sword' module you will not, in general, need to change this setting. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | The metadata field in which to store the updated date for items deposited via SWORD. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | The metadata field in which to store the value of the slug header if it is supplied. | ||
Properties: |
| ||
Example Value: |
| ||
Informational Note: | The accept packaging properties, along with their associated quality values where appropriate. This is a Global Setting; these will be used on all DSpace collections | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | A comma separated list of MIME types that SWORD will accept. | ||
Properties: |
| ||
Example Value: |
| ||
Informational Note: | Collection Specific settings: these will be used on the collections with the given handles. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | Should the server offer up items in collections as sword deposit targets. This will be effected by placing a URI in the collection description which will list all the allowed items for the depositing user in that collection on request. NOTE: this will require an implementation of deposit onto items, which will not be forthcoming for a short while. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | Should the server offer as the default the list of all Communities to a Service Document request. If false, the server will offer the list of all collections, which is the default and recommended behavior at this stage. NOTE: a service document for Communities will not offer any viable deposit targets, and the client will need to request the list of Collections in the target before deposit can continue. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | The maximum upload size of a package through the sword interface, in bytes. This will be the combined size of all the files, the metadata and any manifest data. It is NOT the same as the maximum size set for an individual file upload through the user interface. If not set, or set to 0, the sword service will default to no limit. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | Whether or not DSpace should store a copy of the original sword deposit package. NOTE: this will cause the deposit process to run slightly slower, and will accelerate the rate at which the repository consumes disk space. BUT, it will also mean that the deposited packages are recoverable in their original form. It is strongly recommended, therefore, to leave this option turned on. When set to "true", this requires that the configuration option | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | The bundle name that SWORD should store incoming packages under if sword.keep-original-package is set to true. The default is "SWORD" if not value is set | ||
Properties: |
| ||
Example Value: |
| ||
Informational Note: | In the event of package ingest failure, provide an option to store the package on the file system. The default is false. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | Should the server identify the sword version in a deposit response. It is recommended to leave this unchanged. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | Should mediated deposit via sword be supported. If enabled, this will allow users to deposit content packages on behalf of other users. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | Should the sword server enable restore-mode when ingesting new packages. If this is enabled the item will be treated as a previously deleted item from the repository. If the item had previously been assigned a handle then that same handle will be restored to activity. If that item had not been previously assign a handle, then a new handle will be assigned. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | Configure the plugins to process incoming packages. The form of this configuration is as per the Plugin Manager's Named Plugin documentation: |
Deposit to SWORD Server
If you'd like to deposit content to your repository via the installed SWORD Server, you'll need to select a SWORD Client to do so.
- A variety of SWORDv1 Clients (in various languages/tools) are available off of http://swordapp.org/sword-v1/
- The DSpace XMLUI also comes with an optional SWORDv1 Client which can be enabled to deposit content from one DSpace to another.
- An example SWORDv1 ZIP package is available in the DSpace Codebase at: https://github.com/DSpace/DSpace/tree/dspace-5_x/dspace-sword/example
Finally, it's also possible to simply deposit a valid SWORD Zip package via common Linux commandline tools (e.g. curl). For example:
Code Block # Deposit a SWORD Zip package named "sword-package.zip" into a DSpace Collection (handle 123456789/2) as user "test@dspace.org" # (Please note that you WILL need to obviously modify the Collection location, user/password and name of the SWORD package) curl -i --data-binary "@sword-package.zip" -H "Content-Disposition: filename=sword-package.zip" -H "Content-Type: application/zip" -H "X-Packaging:http://purl.org/net/sword-types/METSDSpaceSIP" -u test@dspace.org:[password] http://[dspace.url]/sword/deposit/123456789/2 # Template 'curl' command: #curl -i --data-binary "@[zip-package-name]" -H "Content-Disposition:filename=[zip-package-name]" -H "Content-Type:application/zip" -H "X-Packaging:http://purl.org/net/sword-types/METSDSpaceSIP" -u [user]:[password] http://[dspace.url]/sword/deposit/[collection-handle]
QDC Crosswalk and qdc.properties
When you ingest
Loaded ingester: org.dspace.sword.SWORDMETSIngester;
Using package manifest format: METS;
Loaded package ingester: org.dspace.content.packager.DSpaceMETSIngester;
Know that it is driven by https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-api/src/main/java/org/dspace/content/crosswalk/QDCCrosswalk.java#L188
Leveraging config found in: https://github.com/DSpace/DSpace/blob/master/dspace/config/crosswalks/QDC.properties