-
Notifications
You must be signed in to change notification settings - Fork 9
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
base: develop
Are you sure you want to change the base?
Conversation
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? |
Sure I will report results
…On Tue, Dec 10, 2024, 16:07 Caglar Demir ***@***.***> wrote:
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
—
Reply to this email directly, view it on GitHub
<#506 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK4X4EXQTCESZEN5WZMTVVT2E37THAVCNFSM6AAAAABTLLVYCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZRHE2DONRVGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- DBpedia example script does not contain any explanation. We should give an effort to explain the examples for the users see this example
- 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.
- 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" |
There was a problem hiding this comment.
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 ?
ontolearn/triple_store.py
Outdated
return self.g.query(sparql_query=sparql) | ||
trials = 0 | ||
response = None | ||
while True: |
There was a problem hiding this comment.
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.
Sure, I will fix requested changes
…On Wed, Dec 11, 2024, 09:43 Caglar Demir ***@***.***> wrote:
***@***.**** requested changes on this pull request.
1. DBpedia example script does not contain any explanation. We should
give an effort to explain the examples for the users see this example
<https://github.com/dice-group/Ontolearn/blob/79c58e8c5fd58793f16079d4bfb03d578bc14d19/examples/retrieval_eval.py#L1>
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
------------------------------
In examples/owl_class_expresion_learning_dbpedia.py
<#506 (comment)>:
> @@ -0,0 +1,149 @@
+"""$ python examples/retrieval_eval.py --path_kg "https://dbpedia.data.dice-research.org/sparql"
Could you please explain the script ?
------------------------------
In ontolearn/triple_store.py
<#506 (comment)>:
> @@ -1195,4 +1195,16 @@ def query(self, sparql: str):
yield from self.g.query(sparql_query=sparql)
def query_results(self, sparql: str):
- return self.g.query(sparql_query=sparql)
+ trials = 0
+ response = None
+ while True:
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.
—
Reply to this email directly, view it on GitHub
<#506 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK4X4EQWGJ6R6A65FIVRUPT2E73KDAVCNFSM6AAAAABTLLVYCGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDIOJUG43TQMRZGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
… script, revert triple_store file removing multiple attempts to query
There was a problem hiding this 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
It is done now, in the recent commit
…On Wed, Dec 11, 2024, 15:01 Caglar Demir ***@***.***> wrote:
***@***.**** requested changes on this pull request.
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
—
Reply to this email directly, view it on GitHub
<#506 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK4X4ERRC657ENJ62UN3XNT2FBATZAVCNFSM6AAAAABTLLVYCGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDIOJVG42TONZQGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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