You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (Created) (JIRA)" <ji...@apache.org> on 2011/11/03 09:19:32 UTC

[jira] [Created] (JENA-154) TDB does not manage the scope of a variable in GRAPH ?g correctly.

TDB does not manage the scope of a variable in GRAPH ?g correctly.
------------------------------------------------------------------

                 Key: JENA-154
                 URL: https://issues.apache.org/jira/browse/JENA-154
             Project: Jena
          Issue Type: Bug
          Components: ARQ, TDB
            Reporter: Andy Seaborne




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (JENA-154) TDB does not manage the scope of a variable in GRAPH ?g correctly.

Posted by "Andy Seaborne (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne updated JENA-154:
-------------------------------

    Attachment:     (was: ReportJena154_GraphVarScope.java)
    
> TDB does not manage the scope of a variable in GRAPH ?g correctly.
> ------------------------------------------------------------------
>
>                 Key: JENA-154
>                 URL: https://issues.apache.org/jira/browse/JENA-154
>             Project: Jena
>          Issue Type: Bug
>          Components: ARQ, TDB
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-154) TDB does not manage the scope of a variable in GRAPH ?g correctly.

Posted by "Andy Seaborne (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143065#comment-13143065 ] 

Andy Seaborne commented on JENA-154:
------------------------------------

Stage 1 : ARQ's default execution was getting the wrong answers.

Fix to ARQ applied into SVN for this.

The problem is that use of ?g in GRAPH ?g (mention in FILTER or bind in a pattern) should.

Use of ?g elsewhere earlier is detected by the optimizer and a non-flow based join done.  But the case of first use in GRAPH ?g was not considered. ?g was being bound and then the sub-pattern executed.

Instead a lightweight stream join is done after sub-pattern is evaluated.  As this works well for the common case of not having ?g used inside the subpattern, it is now the default execution pattern.  The optimizer scope tracking does not need to be modified.

Stage 2: investigate TDB usage (quad usage) because that shows erroneous behavior as well. 
                
> TDB does not manage the scope of a variable in GRAPH ?g correctly.
> ------------------------------------------------------------------
>
>                 Key: JENA-154
>                 URL: https://issues.apache.org/jira/browse/JENA-154
>             Project: Jena
>          Issue Type: Bug
>          Components: ARQ, TDB
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>         Attachments: ReportJena154_GraphVarScope.java
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-154) TDB does not manage the scope of a variable in GRAPH ?g correctly.

Posted by "Andy Seaborne (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13144663#comment-13144663 ] 

Andy Seaborne commented on JENA-154:
------------------------------------

Stage 3 - fix for quad transformation.


                
> TDB does not manage the scope of a variable in GRAPH ?g correctly.
> ------------------------------------------------------------------
>
>                 Key: JENA-154
>                 URL: https://issues.apache.org/jira/browse/JENA-154
>             Project: Jena
>          Issue Type: Bug
>          Components: ARQ, TDB
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>         Attachments: ReportJena154_GraphVarScope.java
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (JENA-154) TDB does not manage the scope of a variable in GRAPH ?g correctly.

Posted by "Andy Seaborne (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne reassigned JENA-154:
----------------------------------

    Assignee: Andy Seaborne
    
> TDB does not manage the scope of a variable in GRAPH ?g correctly.
> ------------------------------------------------------------------
>
>                 Key: JENA-154
>                 URL: https://issues.apache.org/jira/browse/JENA-154
>             Project: Jena
>          Issue Type: Bug
>          Components: ARQ, TDB
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>         Attachments: ReportJena154_GraphVarScope.java
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (JENA-154) TDB does not manage the scope of a variable in GRAPH ?g correctly.

Posted by "Andy Seaborne (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne updated JENA-154:
-------------------------------

    Attachment: ReportJena154_GraphVarScope.java
    
> TDB does not manage the scope of a variable in GRAPH ?g correctly.
> ------------------------------------------------------------------
>
>                 Key: JENA-154
>                 URL: https://issues.apache.org/jira/browse/JENA-154
>             Project: Jena
>          Issue Type: Bug
>          Components: ARQ, TDB
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>         Attachments: ReportJena154_GraphVarScope.java
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (JENA-154) TDB does not manage the scope of a variable in GRAPH ?g correctly.

Posted by "Andy Seaborne (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne closed JENA-154.
------------------------------

    
> TDB does not manage the scope of a variable in GRAPH ?g correctly.
> ------------------------------------------------------------------
>
>                 Key: JENA-154
>                 URL: https://issues.apache.org/jira/browse/JENA-154
>             Project: Jena
>          Issue Type: Bug
>          Components: ARQ, TDB
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>         Attachments: ReportJena154_GraphVarScope.java
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (JENA-154) TDB does not manage the scope of a variable in GRAPH ?g correctly.

Posted by "Andy Seaborne (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne updated JENA-154:
-------------------------------

    Attachment: ReportJena154_GraphVarScope.java

Illustrative examples of plain and TDB usage.
                
> TDB does not manage the scope of a variable in GRAPH ?g correctly.
> ------------------------------------------------------------------
>
>                 Key: JENA-154
>                 URL: https://issues.apache.org/jira/browse/JENA-154
>             Project: Jena
>          Issue Type: Bug
>          Components: ARQ, TDB
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>         Attachments: ReportJena154_GraphVarScope.java
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (JENA-154) TDB does not manage the scope of a variable in GRAPH ?g correctly.

Posted by "Andy Seaborne (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne resolved JENA-154.
--------------------------------

    Resolution: Fixed

Fix applied to SVN that addresses the problem properly, including nesting GRAPH and use FILTER (or the GRAPH variable in a triple inside the pattern).

This is a application-visible change but it is now SPARQL-compliant.

Fortunately, ARQ was getting the right answers in some common cases of FILTER-after-GRAPH even though it was for the wrong reasons.

                
> TDB does not manage the scope of a variable in GRAPH ?g correctly.
> ------------------------------------------------------------------
>
>                 Key: JENA-154
>                 URL: https://issues.apache.org/jira/browse/JENA-154
>             Project: Jena
>          Issue Type: Bug
>          Components: ARQ, TDB
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>         Attachments: ReportJena154_GraphVarScope.java
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira