[ 
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)

Reply via email to