Class BagItROManifest
- java.lang.Object
-
- org.apache.taverna.robundle.manifest.Manifest
-
- uk.org.esciencelab.researchobjectservice.serialization.BagItROManifest
-
public class BagItROManifest extends org.apache.taverna.robundle.manifest.ManifestA modification of the ROBundle Manifest "bean", that allows writing the JSON-LD manifest to the appropriate directory in accordance with https://w3id.org/ro/bagit
-
-
Constructor Summary
Constructors Constructor Description BagItROManifest(java.nio.file.Path root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URIrelativeToBundleRoot(java.net.URI uri)java.nio.file.PathwriteAsJsonLD()java.nio.file.PathwriteAsJsonLD(java.io.OutputStream out)Write the manifest to the given output stream.-
Methods inherited from class org.apache.taverna.robundle.manifest.Manifest
getAggregates, getAggregation, getAggregation, getAnnotations, getAuthoredBy, getAuthoredOn, getBaseURI, getBundle, getContext, getCreatedBy, getCreatedOn, getGraph, getHistory, getId, getManifest, guessMediaType, now, populateFromBundle, setAggregates, setAnnotations, setAuthoredBy, setAuthoredOn, setBundle, setCreatedBy, setCreatedOn, setGraph, setHistory, setId, setManifest, withSlash, writeAsCombineManifest, writeAsODFManifest
-
-
-
-
Method Detail
-
writeAsJsonLD
public java.nio.file.Path writeAsJsonLD() throws java.io.IOException- Overrides:
writeAsJsonLDin classorg.apache.taverna.robundle.manifest.Manifest- Throws:
java.io.IOException
-
writeAsJsonLD
public java.nio.file.Path writeAsJsonLD(java.io.OutputStream out) throws java.io.IOExceptionWrite the manifest to the given output stream.- Parameters:
out- The stream to write to.- Returns:
- The path to the manifest file.
- Throws:
java.io.IOException
-
relativeToBundleRoot
public java.net.URI relativeToBundleRoot(java.net.URI uri)
- Overrides:
relativeToBundleRootin classorg.apache.taverna.robundle.manifest.Manifest
-
-