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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

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

@Jean-KOUAGOU
Copy link
Collaborator Author

Jean-KOUAGOU commented Dec 11, 2024 via email

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