Server.Java icon indicating copy to clipboard operation
Server.Java copied to clipboard

HDT-based TPF algorithm incorrect if a requested triple pattern contains a variable multiple times

Open hartig opened this issue 9 years ago • 0 comments

The algorithm that generates TPF responses using the HDT backend is incorrect for cases in which the requested triple pattern contains a specific variable multiple times. For instance, suppose the client requests triple pattern (?x, foaf:knows, ?x) with variable ?x explicitly mentioned in the HTTP request (using both, the subject parameter and the object parameter). In response to this request, the existing algorithm would return all triples (from the dataset) that have foaf:knows in the predicate position; hence, the algorithm ignores the additional constraint that subject and object must be equivalent.

@RubenVerborgh you may also want to check whether the Javascript-based LDF server has a similar issue

hartig avatar Dec 25 '15 16:12 hartig