Class TDBLoader


  • public class TDBLoader
    extends java.lang.Object
    Public interface to the loader functionality. The bulk loader is not transactional.
    • Constructor Summary

      Constructors 
      Constructor Description
      TDBLoader()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getChecking()  
      boolean getGenerateStats()  
      boolean getShowProgress()  
      static void load​(org.apache.jena.tdb.store.DatasetGraphTDB dataset, java.io.InputStream input, Lang lang, boolean showProgress, boolean generateStats)
      Load a dataset from an input stream which must be in N-Quads form
      static void load​(org.apache.jena.tdb.store.DatasetGraphTDB dataset, java.lang.String url)
      Load the contents of URL into a dataset.
      static void load​(org.apache.jena.tdb.store.DatasetGraphTDB dataset, java.lang.String url, boolean showProgress)
      Load the contents of URL into a dataset.
      static void load​(org.apache.jena.tdb.store.DatasetGraphTDB dataset, java.util.List<java.lang.String> urls)
      Load the contents of URL into a dataset.
      static void load​(org.apache.jena.tdb.store.DatasetGraphTDB dataset, java.util.List<java.lang.String> urls, boolean showProgress, boolean generateStats)
      Load the contents of URL into a dataset.
      static void load​(org.apache.jena.tdb.store.GraphTDB graph, java.lang.String url)
      Load the contents of URL into a graph
      static void load​(org.apache.jena.tdb.store.GraphTDB graph, java.lang.String url, boolean showProgress)
      Load the contents of URL into a graph
      static void load​(org.apache.jena.tdb.store.GraphTDB graph, java.util.List<java.lang.String> urls)
      Load the contents of URL into a graph
      static void load​(org.apache.jena.tdb.store.GraphTDB graph, java.util.List<java.lang.String> urls, boolean showProgress)
      Load the contents of URL into a graph
      void loadDataset​(org.apache.jena.tdb.store.DatasetGraphTDB dataset, java.io.InputStream input, Lang lang)
      Load a dataset from an input stream
      void loadDataset​(org.apache.jena.tdb.store.DatasetGraphTDB dataset, java.lang.String url)
      Load a dataset from a URL - assumes URL names a quads format
      void loadDataset​(org.apache.jena.tdb.store.DatasetGraphTDB dataset, java.util.List<java.lang.String> urls)
      Load a dataset from a list of URL - assumes the URLs name quads format documents
      void loadGraph​(org.apache.jena.tdb.store.GraphTDB graph, java.io.InputStream in)
      Load a graph from a list of URL - assumes the URLs name triples format documents
      void loadGraph​(org.apache.jena.tdb.store.GraphTDB graph, java.lang.String url)
      Load a graph from a URL - assumes URL names a triples format document
      void loadGraph​(org.apache.jena.tdb.store.GraphTDB graph, java.util.List<java.lang.String> urls)
      Load a graph from a list of URL - assumes the URLs name triples format documents
      static void loadModel​(Model model, java.lang.String url)
      Load the contents of URL into a model - may not be as efficient as bulk loading into a TDB graph
      static void loadModel​(Model model, java.lang.String url, boolean showProgress)
      Load the contents of URL into a model - may not be as efficient as bulk loading into a TDB graph
      static void loadModel​(Model model, java.util.List<java.lang.String> urls, boolean showProgress)
      Load the contents of a list of URLs into a model - may not be as efficient as bulk loading into a TDB graph
      void setChecking​(boolean checking)  
      void setGenerateStats​(boolean generateStats)  
      void setShowProgress​(boolean showProgress)  
      • Methods inherited from class java.lang.Object

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

      • TDBLoader

        public TDBLoader()
    • Method Detail

      • load

        public static void load​(org.apache.jena.tdb.store.DatasetGraphTDB dataset,
                                java.lang.String url)
        Load the contents of URL into a dataset.
      • load

        public static void load​(org.apache.jena.tdb.store.DatasetGraphTDB dataset,
                                java.lang.String url,
                                boolean showProgress)
        Load the contents of URL into a dataset.
      • load

        public static void load​(org.apache.jena.tdb.store.DatasetGraphTDB dataset,
                                java.util.List<java.lang.String> urls)
        Load the contents of URL into a dataset.
      • load

        public static void load​(org.apache.jena.tdb.store.DatasetGraphTDB dataset,
                                java.util.List<java.lang.String> urls,
                                boolean showProgress,
                                boolean generateStats)
        Load the contents of URL into a dataset.
      • load

        public static void load​(org.apache.jena.tdb.store.DatasetGraphTDB dataset,
                                java.io.InputStream input,
                                Lang lang,
                                boolean showProgress,
                                boolean generateStats)
        Load a dataset from an input stream which must be in N-Quads form
      • load

        public static void load​(org.apache.jena.tdb.store.GraphTDB graph,
                                java.lang.String url)
        Load the contents of URL into a graph
      • load

        public static void load​(org.apache.jena.tdb.store.GraphTDB graph,
                                java.lang.String url,
                                boolean showProgress)
        Load the contents of URL into a graph
      • load

        public static void load​(org.apache.jena.tdb.store.GraphTDB graph,
                                java.util.List<java.lang.String> urls)
        Load the contents of URL into a graph
      • load

        public static void load​(org.apache.jena.tdb.store.GraphTDB graph,
                                java.util.List<java.lang.String> urls,
                                boolean showProgress)
        Load the contents of URL into a graph
      • loadModel

        public static void loadModel​(Model model,
                                     java.lang.String url)
        Load the contents of URL into a model - may not be as efficient as bulk loading into a TDB graph
      • loadModel

        public static void loadModel​(Model model,
                                     java.lang.String url,
                                     boolean showProgress)
        Load the contents of URL into a model - may not be as efficient as bulk loading into a TDB graph
      • loadModel

        public static void loadModel​(Model model,
                                     java.util.List<java.lang.String> urls,
                                     boolean showProgress)
        Load the contents of a list of URLs into a model - may not be as efficient as bulk loading into a TDB graph
      • loadGraph

        public void loadGraph​(org.apache.jena.tdb.store.GraphTDB graph,
                              java.lang.String url)
        Load a graph from a URL - assumes URL names a triples format document
      • loadGraph

        public void loadGraph​(org.apache.jena.tdb.store.GraphTDB graph,
                              java.util.List<java.lang.String> urls)
        Load a graph from a list of URL - assumes the URLs name triples format documents
      • loadGraph

        public void loadGraph​(org.apache.jena.tdb.store.GraphTDB graph,
                              java.io.InputStream in)
        Load a graph from a list of URL - assumes the URLs name triples format documents
      • loadDataset

        public void loadDataset​(org.apache.jena.tdb.store.DatasetGraphTDB dataset,
                                java.lang.String url)
        Load a dataset from a URL - assumes URL names a quads format
      • loadDataset

        public void loadDataset​(org.apache.jena.tdb.store.DatasetGraphTDB dataset,
                                java.util.List<java.lang.String> urls)
        Load a dataset from a list of URL - assumes the URLs name quads format documents
      • loadDataset

        public void loadDataset​(org.apache.jena.tdb.store.DatasetGraphTDB dataset,
                                java.io.InputStream input,
                                Lang lang)
        Load a dataset from an input stream
      • getChecking

        public boolean getChecking()
      • setChecking

        public void setChecking​(boolean checking)
      • getShowProgress

        public boolean getShowProgress()
      • setShowProgress

        public final void setShowProgress​(boolean showProgress)
      • getGenerateStats

        public final boolean getGenerateStats()
      • setGenerateStats

        public final void setGenerateStats​(boolean generateStats)