Class BagItROManifest


  • public class BagItROManifest
    extends org.apache.taverna.robundle.manifest.Manifest
    A 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.taverna.robundle.manifest.Manifest

        org.apache.taverna.robundle.manifest.Manifest.FileTimeMixin, org.apache.taverna.robundle.manifest.Manifest.PathMixin
    • 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.URI relativeToBundleRoot​(java.net.URI uri)  
      java.nio.file.Path writeAsJsonLD()  
      java.nio.file.Path writeAsJsonLD​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BagItROManifest

        public BagItROManifest​(java.nio.file.Path root)
        Parameters:
        root - An absolute path to the root of the RO metadata folder within the BagIt bag. Should be something like "/tmp/bag1251515151/metadata"
    • Method Detail

      • writeAsJsonLD

        public java.nio.file.Path writeAsJsonLD()
                                         throws java.io.IOException
        Overrides:
        writeAsJsonLD in class org.apache.taverna.robundle.manifest.Manifest
        Throws:
        java.io.IOException
      • writeAsJsonLD

        public java.nio.file.Path writeAsJsonLD​(java.io.OutputStream out)
                                         throws java.io.IOException
        Write 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:
        relativeToBundleRoot in class org.apache.taverna.robundle.manifest.Manifest