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

SHACL alternative paths get turned into nested structures unnecessarily

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Jena 3.17.0
    • None
    • SHACL
    • None

    Description

      SHACLC parsing

      shape ex:shape2 {
       targetNode = :WhatEver .
       ex:A|ex:B|ex:C datatype=xsd:integer .
      }
      

      produces

      sh:path [ sh:alternativePath ( [ sh:alternativePath ( ex:A ex:B ) ] ex:C  )
      

      which evaluates correctly but it could be sh:alternativePath ( ex:A ex:B ex:C ).

      Printing SHACLC (and SPARQL) paths (PathWriter) puts in () over-cautiously to get (ex:A|ex:B)|ex:C.

      Attachments

        Activity

          People

            Unassigned Unassigned
            andy Andy Seaborne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: