Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-2301

Allow to activate/deactivate shapes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • SHACL
    • None

    Description

      I have a use case in which I need to toggle a shape's 'deactivated` flag programatically.

      The current workaround I'm using is to extract the shape's subgraph, set the flag in the extracted graph, and then parse it again. If there is a simpler workaround, I'll be happy to use that.

      Otherwise, here are my suggestions (for Shape.java):

      • Make the `deactivated` flag non-final and add a setter.
      • Provide a way to clone a shape and change the flag underway.

      Cheers!

      Attachments

        Activity

          People

            Unassigned Unassigned
            fkleedorfer Florian Kleedorfer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: