You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/12/21 11:00:01 UTC

[jira] [Commented] (JENA-1451) DatasetFactory.createGeneral() never contains default graph

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

ASF GitHub Bot commented on JENA-1451:
--------------------------------------

GitHub user afs opened a pull request:

    https://github.com/apache/jena/pull/333

    JENA-1451: "contains" for special graphs

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/afs/jena contains-special-graphs

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/jena/pull/333.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #333
    
----
commit 178b03cbe81c11e0123b0ded0fd17402896257a2
Author: Andy Seaborne <an...@...>
Date:   2017-12-21T10:53:20Z

    JENA-1451: "contains" for special graphs

----


> DatasetFactory.createGeneral() never contains default graph
> -----------------------------------------------------------
>
>                 Key: JENA-1451
>                 URL: https://issues.apache.org/jira/browse/JENA-1451
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: ARQ
>    Affects Versions: Jena 3.6.0
>            Reporter: Adam Jacobs
>            Priority: Minor
>
> See: http://mail-archives.apache.org/mod_mbox/jena-dev/201712.mbox/<0a67c2ce-f414-3eae-51dc-226768d4facd%40apache.org>   
>         Model m1 = ModelFactory.createDefaultModel();
>         m1.add(m1.createResource(), m1.createProperty("foo"), m1.createResource());
>         Dataset memory = DatasetFactory.create();
>         Dataset general = DatasetFactory.createGeneral();
>         memory.getDefaultModel().add(m1);
>         general.getDefaultModel().add(m1);
>         //Memory model contains default graph. General model does not.
>         System.out.println(memory.containsNamedModel(Quad.defaultGraphIRI.getURI()));  //true
>         System.out.println(general.containsNamedModel(Quad.defaultGraphIRI.getURI()));  //false



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)