Uploaded image for project: 'Marmotta (Retired)'
  1. Marmotta (Retired)
  2. MARMOTTA-670

LDPath - ReversePropertySelector with wrong code

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • LDPath

    Description

      The ReversePropertySelector is not retrieving the requested subjects properly when, and only when the parameters "path" and "resultPahts" are provided.

      Code snippet as currently implemented in ReversePropertySelector:

      ReversePropertySelector.java - select
      ...
      if(path != null && resultPaths != null) {
        Collection<Node> results = rdfBackend.listSubjects(context, property);
        ...
        return results;
      } else {
          return rdfBackend.listSubjects(property, context);
      }
      ...
      

      The wrong if part of the method is only used in marmotta-search (previously lmf-search) when parsing LDPath search programs, the else functionality is frequently used when parsing LDPath queries.
      however, the calls to listSubjects should be equal in if and else.

      Attachments

        Issue Links

          Activity

            People

              dglachs Dietmar Glachs
              dglachs Dietmar Glachs
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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