Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-1232 RDR metaticket
  3. BLZG-1169

Support RDR inlining for positions other than the Subject.

    Details

    • Type: Sub-task
    • Status: In Progress
    • Resolution: Unresolved
    • Affects Version/s: BIGDATA_RELEASE_1_5_0
    • Fix Version/s: None
    • Component/s: Bigdata RDF Database
    • Labels:
      None

      Description

      Per [1], we do not automatically handle all cases of reified statement models => RDR inlining.

      I just found the code in BlazeGraph that supports converting RDF reification into RDR.  StatementBuffer.java:1425-1490.  Its looking for this syntax:
      
        _:sid rdf:type Statement .
        _:sid rdf:subject <S> .
        _:sid rdf:predicate <P> .
        _:sid rdf:object <O> .
      
      And it transforms it into the S P O triple, dropping the provided triples.  This is consistent with the view that RDR is a storage level thing so long as the query parser does this backwards.
      
      There is some commented out code (lines 440 to 705) that looks to try to handle the case for other non-/rdf:(subject|predicate|object)/ predicates but I'm reasonably sure it isn't complete and doesn't look like its compatible with the implementation in lines 1425-1490.  And I'm pretty sure it won't work on full dumps without some more work around flush handling.
      

      [1] https://phabricator.wikimedia.org/T90952

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            bryanthompson bryanthompson
            Reporter:
            bryanthompson bryanthompson
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: