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

Attempting to delete non-existent properties short-circuits SPARQL update query.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Answered
    • Affects Version/s: Fedora 4.2.0
    • Fix Version/s: Fedora 4.5.1
    • Component/s: f4-core
    • Labels:
      None
    • Environment:
      ubuntu 14.04
      fcrepo 4.2.0
    • Roadmap Theme:
      Services: CRUD
    • Sprint:
      Sprint 2015 - 9, Sprint 2015 - 10, Sprint 2015 - 11

      Description

      When issuing SPARQL updates, deletion of non-existent properties prevents the rest of the query from executing.

      For example, if you have a container with dc:title, and attempt to issue a delete query on dc:title and dc:author, the missing dc:author stops the query from deleting the dc:title.

      Example SPARQL update queries to issue on a new resource to test:

      PREFIX dc: <http://purl.org/dc/elements/1.1/>

      INSERT DATA

      { <> dc:title "Stuff" . }

      Followed by

      PREFIX dc: <http://purl.org/dc/elements/1.1/>

      DELETE WHERE

      { <> dc:title ?o0 . <> dc:author ?o1 . }

      ;

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                whikloj Jared Whiklo
                Reporter:
                daniel-dgi Daniel Lamb [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: