[
https://issues.apache.org/jira/browse/MARMOTTA-670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16274871#comment-16274871
]
ASF subversion and git services commented on MARMOTTA-670:
----------------------------------------------------------
Commit e196bf4504411fa53cd0561037ac1247abe20000 in marmotta's branch
refs/heads/develop from dglachs
[ https://git-wip-us.apache.org/repos/asf?p=marmotta.git;h=e196bf4 ]
MARMOTTA-670: corrected call to rdfBackend.listSubjects
> 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
> Labels: easyfix
> Fix For: 3.4.0
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> 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)