[
https://issues.apache.org/jira/browse/RYA-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15345025#comment-15345025
]
David W. Lotts commented on RYA-92:
-----------------------------------
I think it is not supposed to work this way, but an insert will create a named
graph if it didn't exist.
[From the SPARQL
spec|https://www.w3.org/TR/2013/REC-sparql11-update-20130321/#insertData] :
bq. {code}
INSERT DATA { GRAPH <g> {} } ...
{code}does not create <g>. If a user intends to just create a graph, then the
graph management operations (CREATE/LOAD) may be used prior to any insertion
operations.
However, this created mygraph :
{code:sql}
prefix foaf: <http://xmlns.com/foaf/0.1/>
INSERT DATA
{
graph <http://example.org/foaf/mygraph>
{
_:a foaf:name "Alice" .
}
}
{code}
> CREATE GRAPH throw null pointer exception
> -----------------------------------------
>
> Key: RYA-92
> URL: https://issues.apache.org/jira/browse/RYA-92
> Project: Rya
> Issue Type: Bug
> Environment: rya develop + accumulo 1.6.5
> Reporter: Kiet Ly
>
> Is name graph supported?
> PREFIX d: <http://learningsparql.com/ns/data#>
> CREATE GRAPH d:g3
> java.lang.NullPointerException
> at
> info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68)
> at
> org.openrdf.sail.helpers.SailBaseIteration.hasNext(SailBaseIteration.java:61)
> at
> org.openrdf.repository.sail.helpers.SailUpdateExecutor.executeCreate(SailUpdateExecutor.java:194)
> at
> org.openrdf.repository.sail.helpers.SailUpdateExecutor.executeUpdate(SailUpdateExecutor.java:141)
> at org.openrdf.repository.sail.SailUpdate.execute(SailUpdate.java:91)
> at
> mvm.cloud.rdf.web.sail.RdfController.performUpdate(RdfController.java:266)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)