Class InsertDataQuery

    • Constructor Detail

      • InsertDataQuery

        public InsertDataQuery()
    • Method Detail

      • insertData

        public InsertDataQuery insertData​(TriplePattern... triples)
        Add triples to be inserted
        Parameters:
        triples - the triples to add to this insert data query
        Returns:
        this Insert Data query instance
      • into

        public InsertDataQuery into​(GraphName graph)
        Specify a graph to insert the data into
        Parameters:
        graph - the identifier of the graph
        Returns:
        this Insert Data query instance
      • getPrefix

        public String getPrefix()
      • addTriples

        protected T addTriples​(TriplePattern... triples)
      • setTriplesTemplate

        protected T setTriplesTemplate​(TriplesTemplate triplesTemplate)
      • graph

        public T graph​(GraphName graph)
      • getQueryActionString

        protected String getQueryActionString()
      • base

        public T base​(Iri iri)
        Set the base IRI of this query
        Parameters:
        iri - the base IRI
        Returns:
        this
      • base

        public T base​(IRI iri)
        Set the base IRI of this query
        Parameters:
        iri - the base IRI
        Returns:
        this
      • base

        public T base​(Base base)
        Set the Base clause of this query
        Parameters:
        base - the Base clause to set
        Returns:
        this
      • prefix

        public T prefix​(Prefix... prefixes)
        Add prefix declarations to this query
        Parameters:
        prefixes - the prefixes to add
        Returns:
        this
      • prefix

        public T prefix​(Namespace... namespaces)
        Add prefix declarations to this query
        Parameters:
        namespaces - the namespaces to use for prefixes
        Returns:
      • getQueryString

        public String getQueryString()
        Specified by:
        getQueryString in interface QueryElement
        Returns:
        the String representing the SPARQL syntax of this element