You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@marmotta.apache.org by "Dietmar Glachs (JIRA)" <ji...@apache.org> on 2017/09/27 09:31:00 UTC
[jira] [Created] (MARMOTTA-670) LDPath - ReversePropertySelector
with wrong code
Dietmar Glachs created MARMOTTA-670:
---------------------------------------
Summary: LDPath - ReversePropertySelector with wrong code
Key: MARMOTTA-670
URL: https://issues.apache.org/jira/browse/MARMOTTA-670
Project: Marmotta
Issue Type: Wish
Components: LDPath
Affects Versions: 3.4.0
Reporter: Dietmar Glachs
Assignee: Dietmar Glachs
Priority: Trivial
Fix For: 3.4.0
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:
{code:title=ReversePropertySelector.java - select|borderStyle=solid}
...
if(path != null && resultPaths != null) {
Collection<Node> results = rdfBackend.listSubjects(context, property);
...
return results;
} else {
return rdfBackend.listSubjects(property, context);
}
...
{code}
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}}.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)