Class DatasetUtils


  • public class DatasetUtils
    extends java.lang.Object
    Internal Dataset factory + graph equivalents.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Dataset addInGraphs​(Dataset ds, java.util.List<java.lang.String> uriList, java.util.List<java.lang.String> namedSourceList)
      Add graphs into an existing Dataset
      static Dataset addInGraphs​(Dataset ds, java.util.List<java.lang.String> uriList, java.util.List<java.lang.String> namedSourceList, java.lang.String baseURI)
      Add graphs into a Dataset
      static void addInGraphs​(DatasetGraph dsg, java.util.List<java.lang.String> uriList, java.util.List<java.lang.String> namedSourceList)
      Add graphs into a DatasetGraph
      static void addInGraphs​(DatasetGraph dsg, java.util.List<java.lang.String> uriList, java.util.List<java.lang.String> namedSourceList, java.lang.String baseURI)
      Add graphs into a DatasetGraph
      static Dataset createDataset​(java.lang.String uri, java.util.List<java.lang.String> namedSourceList)
      Create a general purpose, in-memory dataset, and load data into the default graph and also some named graphs.
      static Dataset createDataset​(java.lang.String uri, java.util.List<java.lang.String> namedSourceList, java.lang.String baseURI)
      Create a general purpose, in-memory dataset, and load data into the default graph and also some named graphs.
      static Dataset createDataset​(java.util.List<java.lang.String> uriList, java.util.List<java.lang.String> namedSourceList)
      Create a general purpose, in-memory dataset, and load some data
      static Dataset createDataset​(java.util.List<java.lang.String> uriList, java.util.List<java.lang.String> namedSourceList, java.lang.String baseURI)
      Create a general purpose, in-memory dataset, and load data.
      static Dataset createDataset​(DatasetDescription datasetDesc)
      Create a general purpose, in-memory dataset, and load data.
      static Dataset createDataset​(DatasetDescription datasetDesc, java.lang.String baseURI)
      Create a general purpose, in-memory dataset, and load data.
      static DatasetGraph createDatasetGraph​(java.lang.String uri, java.util.List<java.lang.String> namedSourceList, java.lang.String baseURI)  
      static DatasetGraph createDatasetGraph​(java.util.List<java.lang.String> uriList, java.util.List<java.lang.String> namedSourceList, java.lang.String baseURI)  
      static DatasetGraph createDatasetGraph​(DatasetDescription datasetDesc)
      Create a general purpose, in-memory dataset, and load data.
      static DatasetGraph createDatasetGraph​(DatasetDescription datasetDesc, java.lang.String baseURI)
      Create a general purpose, in-memory dataset, and load data.
      • Methods inherited from class java.lang.Object

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

      • createDataset

        public static Dataset createDataset​(java.lang.String uri,
                                            java.util.List<java.lang.String> namedSourceList)
        Create a general purpose, in-memory dataset, and load data into the default graph and also some named graphs.
        Parameters:
        uri - Default graph
        namedSourceList - Named graphs
        Returns:
        Dataset
      • createDataset

        public static Dataset createDataset​(java.lang.String uri,
                                            java.util.List<java.lang.String> namedSourceList,
                                            java.lang.String baseURI)
        Create a general purpose, in-memory dataset, and load data into the default graph and also some named graphs.
        Parameters:
        uri - Default graph
        namedSourceList - Named graphs
        baseURI -
        Returns:
        Dataset
      • createDataset

        public static Dataset createDataset​(java.util.List<java.lang.String> uriList,
                                            java.util.List<java.lang.String> namedSourceList)
        Create a general purpose, in-memory dataset, and load some data
        Parameters:
        uriList - RDF for the default graph
        namedSourceList - Named graphs.
        Returns:
        Dataset
      • createDataset

        public static Dataset createDataset​(DatasetDescription datasetDesc)
        Create a general purpose, in-memory dataset, and load data.
        Parameters:
        datasetDesc -
        Returns:
        Dataset
      • createDataset

        public static Dataset createDataset​(DatasetDescription datasetDesc,
                                            java.lang.String baseURI)
        Create a general purpose, in-memory dataset, and load data.
        Parameters:
        datasetDesc -
        Returns:
        Dataset
      • createDataset

        public static Dataset createDataset​(java.util.List<java.lang.String> uriList,
                                            java.util.List<java.lang.String> namedSourceList,
                                            java.lang.String baseURI)
        Create a general purpose, in-memory dataset, and load data.
        Parameters:
        uriList - Default graph
        namedSourceList - Named graphs
        baseURI -
        Returns:
        Dataset
      • addInGraphs

        public static Dataset addInGraphs​(Dataset ds,
                                          java.util.List<java.lang.String> uriList,
                                          java.util.List<java.lang.String> namedSourceList)
        Add graphs into an existing Dataset
      • addInGraphs

        public static Dataset addInGraphs​(Dataset ds,
                                          java.util.List<java.lang.String> uriList,
                                          java.util.List<java.lang.String> namedSourceList,
                                          java.lang.String baseURI)
        Add graphs into a Dataset
        Parameters:
        ds -
        uriList - Default graph
        namedSourceList - Named graphs
        baseURI -
        Returns:
        Dataset, as passed in.
      • createDatasetGraph

        public static DatasetGraph createDatasetGraph​(DatasetDescription datasetDesc)
        Create a general purpose, in-memory dataset, and load data.
        Parameters:
        datasetDesc -
        Returns:
        Dataset
      • createDatasetGraph

        public static DatasetGraph createDatasetGraph​(DatasetDescription datasetDesc,
                                                      java.lang.String baseURI)
        Create a general purpose, in-memory dataset, and load data.
        Parameters:
        datasetDesc -
        baseURI -
        Returns:
        Dataset
      • createDatasetGraph

        public static DatasetGraph createDatasetGraph​(java.lang.String uri,
                                                      java.util.List<java.lang.String> namedSourceList,
                                                      java.lang.String baseURI)
      • createDatasetGraph

        public static DatasetGraph createDatasetGraph​(java.util.List<java.lang.String> uriList,
                                                      java.util.List<java.lang.String> namedSourceList,
                                                      java.lang.String baseURI)
      • addInGraphs

        public static void addInGraphs​(DatasetGraph dsg,
                                       java.util.List<java.lang.String> uriList,
                                       java.util.List<java.lang.String> namedSourceList)
        Add graphs into a DatasetGraph
        Parameters:
        dsg -
        uriList - Default graph
        namedSourceList - Named graphs
      • addInGraphs

        public static void addInGraphs​(DatasetGraph dsg,
                                       java.util.List<java.lang.String> uriList,
                                       java.util.List<java.lang.String> namedSourceList,
                                       java.lang.String baseURI)
        Add graphs into a DatasetGraph
        Parameters:
        dsg -
        uriList - Default graph
        namedSourceList - Named graphs
        baseURI -