Skip to content

OnTop performance and cross joins #603

Answered by bcogrel
jyh0710 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jyh0710, it looks like you are missing a primary key/unique constraint on the id column in your table.
Because of that the self-joins cannot be eliminated and a DISTINCT is inserted to eliminate duplicates.

If you have control over your data source, please try adding a primary key.

Otherwise, you need to provide this information manually to Ontop, using either this legacy format or lenses. At the moment, these features are not supported by the Protégé plugin, so you would need to set the SPARQL endpoint using the CLI or the Docker image.

Best,
Benjamin

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@ryantanaka
Comment options

@bcogrel
Comment options

@bcogrel
Comment options

Answer selected by jyh0710
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants