Interface RDFDatasetConnection

    • Method Detail

      • load

        void load​(java.lang.String graphName,
                  java.lang.String file)
        Load (add, append) RDF into a named graph in a dataset. This is SPARQL Graph Store Protocol HTTP POST or equivalent.
        Parameters:
        graphName - Graph name (null or "default" for the default graph)
        file - File of the data.
      • load

        void load​(java.lang.String file)
        Load (add, append) RDF into the default graph of a dataset. This is SPARQL Graph Store Protocol HTTP POST or equivalent.
        Parameters:
        file - File of the data.
      • load

        void load​(java.lang.String graphName,
                  Model model)
        Load (add, append) RDF into a named graph in a dataset. This is SPARQL Graph Store Protocol HTTP POST or equivalent.
        Parameters:
        graphName - Graph name (null or "default" for the default graph)
        model - Data.
      • load

        void load​(Model model)
        Load (add, append) RDF into the default graph of a dataset. This is SPARQL Graph Store Protocol HTTP POST or equivalent.
        Parameters:
        model - Data.
      • put

        void put​(java.lang.String graphName,
                 java.lang.String file)
        Set the contents of a named graph of a dataset. Any existing data is lost. This is SPARQL Graph Store Protocol HTTP PUT or equivalent.
        Parameters:
        graphName - Graph name (null or "default" for the default graph)
        file - File of the data.
      • put

        void put​(java.lang.String file)
        Set the contents of the default graph of a dataset. Any existing data is lost. This is SPARQL Graph Store Protocol HTTP PUT or equivalent.
        Parameters:
        file - File of the data.
      • put

        void put​(java.lang.String graphName,
                 Model model)
        Set the contents of a named graph of a dataset. Any existing data is lost. This is SPARQL Graph Store Protocol HTTP PUT or equivalent.
        Parameters:
        graphName - Graph name (null or "default" for the default graph)
        model - Data.
      • put

        void put​(Model model)
        Set the contents of the default graph of a dataset. Any existing data is lost. This is SPARQL Graph Store Protocol HTTP PUT or equivalent.
        Parameters:
        model - Data.
      • delete

        void delete​(java.lang.String graphName)
        Delete a graph from the dataset. Null or "default" means the default graph, which is cleared, not removed.
        Parameters:
        graphName -
      • delete

        void delete()
        Remove all data from the default graph.
      • loadDataset

        void loadDataset​(java.lang.String file)
      • loadDataset

        void loadDataset​(Dataset dataset)
      • putDataset

        void putDataset​(java.lang.String file)
      • putDataset

        void putDataset​(Dataset dataset)
      • close

        void close()
        Close this connection. Use with try-resource.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface RDFDatasetAccessConnection