Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-1234

Triples removed from triplestore index when a related resource is created

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Fedora 4.0.0
    • Fix Version/s: Fedora 4.1.0
    • Component/s: f4-message-consumer
    • Labels:
      None
    • Sprint:
      Sprint 29

      Description

      See: https://www.pivotaltracker.com/story/show/83268844

      Issue occurs when the following sequence is followed:
      * Create a node at /parent
      * Add rdf:type indexing:indexable to the /parent node
      * Create a child node at /parent/child
      * Add rdf:type indexing:indexable to the /parent/child node
      (now the triplestore has entries for both /parent and /parent/child)
      * Update some property on /parent (e.g. dc:title)
      (now the triples for /parent/child are gone)

      For this, I used the updated message-consumer.

      If you look at https://github.com/fcrepo4/fcrepo-message-consumer/blob/master/fcrepo-message-consumer-core/src/main/java/org/fcrepo/indexer/sparql/SparqlIndexer.java#L122
      You will see that when /parent is updated, if any triples have an object with a URI that starts with the /parent URI, that, too, is added to DELETE statement.

        Attachments

          Activity

            People

            • Assignee:
              lsitu Longshou Situ
              Reporter:
              scossu Stefano Cossu
              Reviewer:
              Andrew Woods
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: