Yes, but will recreate the issue since it is a piece of code which should bei changed anyways.
Best Dietmar Sergio Fernández <[email protected]> schrieb am Di., 6. Juni 2017, 12:22: > Dietmar, if there was no actual issue at the ned, it's better to solve it > as "Not An Issue" rather than delete it from Jira. > > On Thu, Jun 1, 2017 at 6:32 PM, Dietmar Glachs (JIRA) <[email protected]> > wrote: > > > > > [ https://issues.apache.org/jira/browse/MARMOTTA-664?page= > > com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] > > > > Dietmar Glachs deleted MARMOTTA-664: > > ------------------------------------ > > > > > > > LDPath - ReversePropertySelector not working > > > --------------------------------------------- > > > > > > Key: MARMOTTA-664 > > > URL: > https://issues.apache.org/jira/browse/MARMOTTA-664 > > > Project: Marmotta > > > Issue Type: Bug > > > Reporter: Dietmar Glachs > > > Assignee: Dietmar Glachs > > > Priority: Minor > > > > > > The LDPath ReversePropertySelector is not working properly. > > > the method receives the current node in the *context* parameter, but > > passes this node as the property to the subsequent call to > > _rdfBackend.listSubjects(context, property)_! > > > {code} > > > if(path != null && resultPaths != null) { > > > Collection<Node> results = rdfBackend.listSubjects(context, > > property); > > > for(Node n :results) { > > > resultPaths.put(n, new ImmutableList.Builder<Node>(). > > addAll(path).add(context).add(n).build()); > > > } > > > return results; > > > } else { > > > return rdfBackend.listSubjects(property, context); > > > } > > > {code} > > > The rdfBackend-interface however expects the property as the first > > argument. > > > {code} > > > Collection<Node> listSubjects(Node property, Node object); > > > {code} > > > The call to listSubjects with _changed_ attributes is only called when > > both *path* and *resultPaths* are _null_. > > > when having a statement like the following > > > {code} > > > provider_name = ^cac:Item / ^cac:GoodsItem / rdfs:label ::xsd:string; > > > {code} > > > the path is initialized with the context node, and the resultPaths is > an > > emply list - e.g. both not null. and the *wrong* line is executed ... > > > > > > > > -- > > This message was sent by Atlassian JIRA > > (v6.3.15#6346) > > >
