You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@marmotta.apache.org by "Jakob Frank (JIRA)" <ji...@apache.org> on 2018/06/18 19:32:08 UTC
[jira] [Closed] (MARMOTTA-670) LDPath - ReversePropertySelector
with wrong code
[ https://issues.apache.org/jira/browse/MARMOTTA-670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jakob Frank closed MARMOTTA-670.
--------------------------------
Marmotta 3.4.0 released: https://s.apache.org/oBw2
> 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
(v7.6.3#76005)