Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding rdf:type ?type to my query slows it down a lot #112

Open
pheyvaer opened this issue Jun 12, 2023 · 1 comment
Open

Adding rdf:type ?type to my query slows it down a lot #112

pheyvaer opened this issue Jun 12, 2023 · 1 comment

Comments

@pheyvaer
Copy link

pheyvaer commented Jun 12, 2023

Issue type:

  • 🐌 Performance issue

Description:

I have this query

PREFIX schema: <http://schema.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT DISTINCT * WHERE {
    ?s schema:contributor <https://data.knows.idlab.ugent.be/project/solidlab>.
  
  OPTIONAL {
    ?s schema:name ?name; rdf:type ?type
  }
}

which takes long to execute, at least more than 500s.
When I remove the rdf:type ?type from the OPTIONAL it takes around 21s.

PREFIX schema: <http://schema.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT DISTINCT * WHERE {
    ?s schema:contributor <https://data.knows.idlab.ugent.be/project/solidlab>.
  
  OPTIONAL {
    ?s schema:name ?name
  }
}

I used the online client.


Environment:

I used an online client.

@rubensworks
Copy link
Member

Some notes from mattermost:

That's a consequence of the cMatch semantics for determining whether or not to follow links to other pods.

This one is faster: https://comunica.github.io/comunica-feature-link-traversal-web-clients/builds/solid-single-pod/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants