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

Class expression learning on DBpedia #506

Merged
merged 5 commits into from
Dec 13, 2024
Merged

Class expression learning on DBpedia #506

merged 5 commits into from
Dec 13, 2024

Conversation

Jean-KOUAGOU
Copy link
Collaborator

  • I have added a script in examples to benchmark Drill and TDL on DBpedia

  • I have also slightly modified the query_results function in TripleStore so multiple attempts are made in case the endpoint does not respond. This has proven useful during benchmarking

@Jean-KOUAGOU Jean-KOUAGOU requested a review from Demirrr December 10, 2024 15:00
@Demirrr
Copy link
Member

Demirrr commented Dec 10, 2024

Thank you all looks good!

Could you please report the average runtimes and f1 scores in https://github.com/dice-group/Ontolearn?tab=readme-ov-file#benchmark-results?
Please also indicate that these results are related to the training performance, not generalization

@github-actions github-actions bot temporarily deployed to pull request December 10, 2024 15:07 Inactive
@Jean-KOUAGOU
Copy link
Collaborator Author

Jean-KOUAGOU commented Dec 10, 2024 via email

Copy link
Member

@Demirrr Demirrr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. DBpedia example script does not contain any explanation. We should give an effort to explain the examples for the users see this example
  2. query_results only sends the sparql query to triple store and return it back. No need additional functionalities, e.g. sending sparql multiple times or returning potentially None.
  3. The result of dbpedia script should be reported in the README benchmark results section

@@ -0,0 +1,149 @@
"""$ python examples/retrieval_eval.py --path_kg "https://dbpedia.data.dice-research.org/sparql"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please explain the script ?

return self.g.query(sparql_query=sparql)
trials = 0
response = None
while True:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need this while loop. If the connection is not in place or timeout is not specified for the request, then we should throw error instead of returning None. Therefore, please remove your changes.

@Jean-KOUAGOU
Copy link
Collaborator Author

Jean-KOUAGOU commented Dec 11, 2024 via email

… script, revert triple_store file removing multiple attempts to query
@github-actions github-actions bot temporarily deployed to pull request December 11, 2024 13:36 Inactive
Copy link
Member

@Demirrr Demirrr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As previously stated, please add your results in
benchmark-results section
not under Learning OWL Class Expressions over DBpedia
https://github.com/dice-group/Ontolearn/tree/cel_on_dbpedia?tab=readme-ov-file#benchmark-results

@github-actions github-actions bot temporarily deployed to pull request December 11, 2024 14:34 Inactive
@Jean-KOUAGOU
Copy link
Collaborator Author

Jean-KOUAGOU commented Dec 11, 2024 via email

@Demirrr Demirrr self-requested a review December 13, 2024 07:59
Copy link
Member

@Demirrr Demirrr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!

@Demirrr Demirrr merged commit 3a1b063 into develop Dec 13, 2024
4 checks passed
@Demirrr Demirrr deleted the cel_on_dbpedia branch December 13, 2024 08:07
@github-actions github-actions bot temporarily deployed to pull request December 13, 2024 08:08 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants