-
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
Merge TripleStoreKnowledgeBase and TripleStore #497
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,8 +40,7 @@ def test_local_triplestore_family_tdl(self): | |
break | ||
""" | ||
def test_remote_triplestore_dbpedia_tdl(self): | ||
""" | ||
url = "http://dice-dbpedia.cs.upb.de:9080/sparql" | ||
url = "https://dbpedia.data.dice-research.org/sparql" | ||
kb = TripleStore(url=url) | ||
# Check whether there is a connection | ||
num_object_properties = len([i for i in kb.get_object_properties()]) | ||
|
@@ -53,12 +52,16 @@ def test_remote_triplestore_dbpedia_tdl(self): | |
typed_neg = set(map(OWLNamedIndividual, map(IRI.create, examples["negative_examples"]))) | ||
lp = PosNegLPStandard(pos=typed_pos, neg=typed_neg) | ||
h = model.fit(learning_problem=lp).best_hypotheses() | ||
print(h) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need to print |
||
assert h | ||
assert DLSyntaxObjectRenderer().render(h) | ||
save_owl_class_expressions(h) | ||
sparql = Owl2SparqlConverter().as_query("?x", h) | ||
assert sparql | ||
else: | ||
pass | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pass is problematic. This is not a really test |
||
""" | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove No need these three lines. |
||
if __name__ == "__main__": | ||
test_triplestore = TestTriplestore() | ||
test_triplestore.test_remote_triplestore_dbpedia_tdl() | ||
|
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.
This is incorrect. We cannot have TripleStoreOntology, TripleStoreReasoner, and TripleStoreReasonerOntology, can we ?