[ 
https://issues.apache.org/jira/browse/JENA-1191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Osma Suominen reopened JENA-1191:
---------------------------------

Now loading to a speficic graph using the --graph parameter gives a 
NullPointerException:

{noformat}
$ sdbload --sdb=sdb-loadtest.ttl --graph=http://example.org/ loadtest.ttl 
java.lang.NullPointerException
        at sdb.sdbload.loadOne(sdbload.java:138)
        at sdb.sdbload.execCmd(sdbload.java:101)
        at sdb.cmd.CmdArgsDB.exec(CmdArgsDB.java:67)
        at jena.cmd.CmdMain.mainMethod(CmdMain.java:93)
        at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
        at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
        at sdb.sdbload.main(sdbload.java:68)
{noformat}

Without the --graph parameter, loading is successful:
{noformat}
$ sdbload --sdb=sdb-loadtest.ttl loadtest.ttl 
$
{noformat}

loadtest.ttl contains just a single triple. It also happens at least with 
RDF/XML files (that's how I noticed the problem) so the syntax doesn't matter 
here.
{noformat}
@prefix ex: <http://example.org/>.
ex:s ex:p ex:o .
{noformat}

> Enhance sdbload to cover quad formats, trigger the bulk loader, and print 
> progress.
> -----------------------------------------------------------------------------------
>
>                 Key: JENA-1191
>                 URL: https://issues.apache.org/jira/browse/JENA-1191
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: SDB
>    Affects Versions: Jena 3.1.0
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>             Fix For: Jena 3.1.1
>
>




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

Reply via email to