|
Hi:
First, I load the wine owl file:
path = './data/wine.owl'
onto = get_ontology(path).load()
all_triples = onto.get_triples(None, None, None)
print(list(all_triples))
Then, I get the result as follows:
[('4S', '6', '19'), ('4S', 'D', '"An example OWL ontology"'), ('4T', '6', '19'), ('4S', '1H', '4T'), ('4S', '1a', '4U'), ...]
But, what I want is like this:
[('wine', 'hasColor', 'red'), ...]
Can you help me with getting the result as I want?
Thank you very much!
Best Wishes!
|