Class RepositoryHelper


  • public class RepositoryHelper
    extends Object
    Utility class (straight from OPMToolbox)
    • Constructor Detail

      • RepositoryHelper

        public RepositoryHelper()
    • Method Detail

      • setPrefixes

        public void setPrefixes​(org.openrdf.rio.RDFHandler serialiser,
                                Map<String,​String> prefixes)
                         throws org.openrdf.rio.RDFHandlerException
        Throws:
        org.openrdf.rio.RDFHandlerException
      • dumpToRDF

        public void dumpToRDF​(String file,
                              org.openrdf.repository.contextaware.ContextAwareRepository manager,
                              org.openrdf.rio.RDFFormat format,
                              Namespace namespace)
      • dumpToRDF

        public void dumpToRDF​(Writer writer,
                              org.openrdf.repository.contextaware.ContextAwareRepository manager,
                              org.openrdf.rio.RDFFormat format,
                              Namespace namespace)
      • readFromRDF

        public void readFromRDF​(File file,
                                String uri,
                                org.openrdf.repository.contextaware.ContextAwareRepository manager,
                                org.openrdf.rio.RDFFormat format)
                         throws Exception
        Throws:
        Exception