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

Improve performance of importing labels #92

Open
saumier opened this issue Oct 3, 2023 · 0 comments
Open

Improve performance of importing labels #92

saumier opened this issue Oct 3, 2023 · 0 comments

Comments

@saumier
Copy link
Member

saumier commented Oct 3, 2023

There are 2 SPARQLs that load missing labels for objects, qualifiers and references. Currently the labels are all dumped into the default graph. The SPARQLs are very slow. The "load labels" launches seperate SPARQLs for objects and for qualifiers/references. They took 20 minutes for 3 productions + tertiary nodes.

I propose saving labels in a named graph that is shared, and optimizing the SPARQL by removing some filters and adding more performant filters to minimize the calls to Wikidata.

For example improving the removal of entities with existing labels in the default graph (or other named graph) before doing a federated SPARQL to Wikidata:

  filter not exists {
          graph <http://www.ontotext.com/explicit> {
              ?o rdfs:label ?b .
          }
      }
@saumier saumier converted this from a draft issue Oct 3, 2023
@saumier saumier removed the status in Culture In-Time Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant