Hi Rob,

The response remained the same even with DROP GRAPH <iri>.

Below are the sequence of requests that were issued:

Step 1:



Request

Response

POST http://localhost:8080/fuseki/oracle/update

Accept: application/sparql-results+json

Content-Type: application/sparql-update



insert data{

 graph <urn:providers:search:google>{

    <http://www.google.com>

    <http://www.google.com#tab>

    <http://www.google.com/images>

  }

}



Status 204 No Content





Step 2:



Request

Response

POST http://localhost:8080/fuseki/oracle/query

Accept: application/sparql-results+json

Content-Type: application/sparql-query



select ?g ?s ?p ?o

{

  graph ?g

  {

    ?s ?p ?o

  }

}



Status 200 OK



{

  "head": {

    "vars": [

      "g",

      "s",

      "p",

      "o"

    ]

  },

  "results": {

    "bindings": [

      {

        "g": {

          "type": "uri",

          "value": "urn:providers:search:google"

        },

        "s": {

          "type": "uri",

          "value": "http://www.google.com";

        },

        "p": {

          "type": "uri",

          "value": "http://www.google.com#tab";

        },

        "o": {

          "type": "uri",

          "value": "http://www.google.com/images";

        }

      }

    ]

  }

}





Step 3:



Request

Response

POST http://localhost:8080/fuseki/oracle/update

Accept: application/sparql-results+json

Content-Type: application/sparql-update



drop graph <urn:providers:search:google>



Status 204 No Content





Step 4:



Request

Response

POST http://localhost:8080/fuseki/oracle/query

Accept: application/sparql-results+json

Content-Type: application/sparql-query



select ?g ?s ?p ?o

{

  graph ?g

  {

    ?s ?p ?o

  }

}



Status 200 OK



{

  "head": {

    "vars": [

      "g",

      "s",

      "p",

      "o"

    ]

  },

  "results": {

    "bindings": [

      {

        "g": {

          "type": "uri",

          "value": "urn:providers:search:google"

        },

        "s": {

          "type": "uri",

          "value": "http://www.google.com";

        },

        "p": {

          "type": "uri",

          "value": "http://www.google.com#tab";

        },

        "o": {

          "type": "uri",

          "value": "http://www.google.com/images";

        }

      }

    ]

  }

}

As you can see, the graph is still available!

I have also tried the below request but the graph still remained.

Request

Response

DELETE
http://localhost:8080/fuseki/oracle/graph?graph=urn:providers:search:google



Status 204 No Content



Thanks,
Akhilesh

On Tue, Feb 2, 2016 at 7:03 PM, Rob Vesse <[email protected]> wrote:

> How do you verify that the graph is still present?
>
> Also what happens if you run DROP GRAPH <iri>?
>
> The SILENT keyword allows for an operation to fail but to ignore the
> failure and return success so if something is going wrong removing the
> SILENT keyword allows for the error to be propagated.
>
> Rob
>
> On 02/02/2016 12:59, "Bangalore Akhilesh" <[email protected]>
> wrote:
>
> >Hi All,
> >
> >I had setup Fuseki with SDB to work against Oracle.
> >
> >Today, I had observed that the command *DROP SILENT GRAPH <GRAPH IRI>*
> >returned a success code but the graph & the triples remained in the
> >database.
> >
> >Can anyone please help me out to address this problem?
> >
> >Thanks,
> >Akhilesh
>
>
>
>
>

Reply via email to