File | Date | Author | Commit |
---|---|---|---|
.settings | 2014-05-09 | Rudolf Mayer | [0463d6] eclipse settings |
WEB-INF | 2014-05-27 | Johannes Binder | [6c1155] Startup issue fix |
src | 2014-05-26 | Johannes Binder | [089ff0] Use virtual packages of the original model to n... |
test | 2014-05-26 | Johannes Binder | [089ff0] Use virtual packages of the original model to n... |
.classpath | 2014-05-09 | Rudolf Mayer | [7fdbd7] eclipse settings |
.gitignore | 2014-01-13 | Johannes Binder | [36cbed] Add Maven support |
.project | 2014-05-09 | Rudolf Mayer | [7fdbd7] eclipse settings |
README.md | 2014-05-26 | Johannes Binder | [a95dc7] Merge branch 'master' |
build.xml | 2014-01-13 | Johannes Binder | [55c1a6] Refactor the logic out of the service |
license_header.txt | 2014-01-13 | Johannes Binder | [36cbed] Add Maven support |
pom.xml | 2014-05-26 | Johannes Binder | [089ff0] Use virtual packages of the original model to n... |
updateDeps.sh | 2014-04-14 | Johannes Binder | [810fc2] Library update |
Read Me
PreservationIdentifier-Server
A webservice that for a given system context model and a set of resources under risk generates alternative system context models
where resources under risk are replaced by other (compatible) resources.
At the moment the only supported resources are tools.
Usage
There are three ways to publish this webservice
- in a tomcat. all you need to do is copy/symlink the project root into your tomcat/webapps folder
- using the java endpoint, by running PreservationIdentifierServer (e.g. by ant PreservationIdentifierServer)
you can modify the service URL by passing a CLI argument with the URL - use "mvn clean tomcat:redeploy" to deploy on the official server
The webservice is hosted on: http://kronos.ifs.tuwien.ac.at:8080/pi/preservationIdentifier and can be invoked from there.
Dependencies
- JDK >= 1.7
- Maven >= 2
Supported individuals
The affectedResource can be specified as IRI or fragment. The fragment or label of this individual needs to match
to individuals of the kblib, which can be checked in http://kronos.ifs.tuwien.ac.at:8080/kbserver/.
- individuals of type SystemSoftware that are defined in the passed ontology or in direct imports thereof
- individuals of type File that are defined in a TIMBUS compliant way, i.e. specifying an objectCharacteristics property,
which specifies a Format that in turn specifies a FormatRegistry that contains the Pronom ID of the format
FAQ
-
Alternatives are not returned for every risk.
Only individuals of type SystemSoftware that are defined in the passed ontology or in direct imports thereof are considered.
Risks are silently skipped if the individual could not be found. -
The knowledgebase is unavailable.
Have a look at the kbgen project to rebuild the knowledgebase or obtain a copy.
-
The query runs forever and stops eventually with an exception.
Make sure that no self-signed certificates are imported in the ontology that is passed.
If there are such:- download the certificate (e.g. in firefox)
- create a keystore:
keytool -import -file [cacert.pem] -alias [alias] -keystore [keystore.ts] -storepass [password] - load the keystore:
System.setProperty("javax.net.ssl.trustStore", "/tmp/pi/keystore.ts");