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

Shapes with class-based targets (sh:targetClass) are not applied to subclass instances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Jena 3.14.0
    • SHACL
    • None

    Description

      Shapes with class-based targets (sh:targetClass) should target subclass instances. See https://www.w3.org/TR/shacl/#targetClass. Currently it is not the case.
      The bug is caused by wrong checks in ValidationProc.getFocusNodes/isFocusNode.
      The attached test illustrates the issue.

      Attachments

        1. TargetsTest.java
          2 kB
          Pavel Mikhailovskii

        Activity

          People

            andy Andy Seaborne
            strangepleasures Pavel Mikhailovskii
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1.5h
                1.5h