Skip to content

FedX federation fails with query evaluation exception when evaluating zero length property path #4990

@aschwarte10

Description

@aschwarte10

Current Behavior

We found that the FedX query engine currently fails with the following exception when the query contains a zero length path (e.g. ?myClass rdfs:subClassOf* ?parentClass)

The exact exception message is:

Federation Strategy does not support org.openrdf.query.algebra.evaluation.TripleSource#getStatements. If you encounter this exception, please report it.

This is because the federation engine falls back to the DefaultEvaluationStrategy implementation for property paths, which in case of zero-path is not tailored to the use in federation.

Note that path with length minimum 1 (i.e. the + operator) are working fine.

Expected Behavior

The federation engine should support correct semantics of zero-length path

Steps To Reproduce

Can be reproduced with a query like (assuming data being present)

SELECT * WHERE {
    ?subClass (rdfs:subClassOf*) ?myClass

Version

4.3.x

Are you interested in contributing a solution yourself?

Yes

Anything else?

We would like to see this addressed in 4.3.x and eventually in in the 5.0 release

Metadata

Metadata

Assignees

Labels

🐞 bugissue is a bug📦 fedxfedx: optimized federated query support

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions