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

Fedora fails to delete triples when two or more WHERE patterns each match multiple triples

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Fedora 4.6.1, Fedora 4.7.0, Fedora 4.7.1
    • Fix Version/s: Fedora 4.7.4
    • Component/s: None
    • Labels:
    • Environment:
      Tomcat7/postgres94
      Jetty standalone
    • Sprint:
      Sprint 2016 - 18

      Description

      Given a resource with these triples:

        <> <http://example.org/test/x> "x" .
        <> <http://example.org/test/y> "y" .

        <> <http://example.org/test/a> "1" .
        <> <http://example.org/test/a> "2" .
        <> <http://example.org/test/a> "3" .
        <> <http://example.org/test/a> "4" .

        <> <http://example.org/test/b> "1" .
        <> <http://example.org/test/b> "2" .
        <> <http://example.org/test/b> "3" .
        <> <http://example.org/test/b> "4" .

        <> <http://example.org/test/c> "1" .
        <> <http://example.org/test/c> "2" .
        <> <http://example.org/test/c> "3" .
        <> <http://example.org/test/c> "4" .

      The following SPARQL delete pattern will result in a 400 Bad Request error and the triples are not deleted.

      DELETE WHERE
      {
      <> <http://example.org/test/a> ?a .
      <> <http://example.org/test/b> ?b .
      }

      I've included two bash scripts that reproduce the results. One contains the above DELETE Sparql pattern the other uses a variant.

      This issue may be related to the problem described here: https://groups.google.com/forum/#!topic/fedora-community/oDcMOBAh9nY


        Attachments

          Activity

            People

            • Assignee:
              dbernstein Danny Bernstein
              Reporter:
              kefo Kevin Ford
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: