[ 
https://issues.apache.org/jira/browse/RYA-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15344761#comment-15344761
 ] 

David W. Lotts edited comment on RYA-91 at 6/22/16 6:42 PM:
------------------------------------------------------------

RYA-15 is a different issue about drop -- it does not cause an error, 
especially not this error.
DROP ALL and DROP graphname should be working without throwing an error.

(EDIT: I CAN reproduce your error, see next comment)
I can not reproduce your error: 

Using the vagrant example:
http://rya-example-box:8080/web.rya/sparqlQuery.jsp
Add the data:
{code}
prefix  foaf:     <http://xmlns.com/foaf/0.1/>
INSERT DATA
{ 
graph <http://example.org/foaf/aliceFoaf>
{
_:a  foaf:name     "Alice" .
}
}
{code}
Query:
{code}
PREFIX foaf: <http://xmlns.com/foaf/0.1/>

SELECT ?x ?y ?graph
WHERE
  {
graph ?graph
{
 ?x foaf:name ?y .
}
  }  
{code}
I see Alice.
Drop it:
{code}
drop graph <http://example.org/foaf/aliceFoaf>
{code}
AliceFoaf is gone.



was (Author: dlotts):
RYA-15 is a different issue about drop -- it does not cause an error, 
especially not this error.
DROP ALL and DROP graphname should be working without throwing an error.

I can not reproduce your error:

Using the vagrant example:
http://rya-example-box:8080/web.rya/sparqlQuery.jsp
Add the data:
{code}
prefix  foaf:     <http://xmlns.com/foaf/0.1/>
INSERT DATA
{ 
graph <http://example.org/foaf/aliceFoaf>
{
_:a  foaf:name     "Alice" .
}
}
{code}
Query:
{code}
PREFIX foaf: <http://xmlns.com/foaf/0.1/>

SELECT ?x ?y ?graph
WHERE
  {
graph ?graph
{
 ?x foaf:name ?y .
}
  }  
{code}
I see Alice.
Drop it:
{code}
drop graph <http://example.org/foaf/aliceFoaf>
{code}
AliceFoaf is gone.


> DROP NAMED graph throw exception
> --------------------------------
>
>                 Key: RYA-91
>                 URL: https://issues.apache.org/jira/browse/RYA-91
>             Project: Rya
>          Issue Type: Bug
>            Reporter: Kiet Ly
>
> DROP NAMED
> 16/06/15 19:50:29 WARN rdftriplestore.RdfCloudTripleStoreConnection: Rolling 
> back transaction due to connection close
> java.lang.Throwable
>         at 
> org.openrdf.sail.helpers.SailConnectionBase.close(SailConnectionBase.java:242)
>         at 
> org.openrdf.repository.sail.SailRepositoryConnection.close(SailRepositoryConnection.java:129)
>         at 
> mvm.cloud.rdf.web.sail.RdfController.queryRdf(RdfController.java:167)
>         at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to