Update paths
This commit is contained in:
parent
129abe7d93
commit
04adf8edcd
4
main.py
4
main.py
|
@ -107,7 +107,7 @@ def sakey_output(file: str, threshold: int) -> tuple[list[list[str]], list[list[
|
||||||
"""
|
"""
|
||||||
Prints the SAKEY output for the given dataset file.
|
Prints the SAKEY output for the given dataset file.
|
||||||
"""
|
"""
|
||||||
process = subprocess.Popen(['java', '-jar', 'material/sakey.jar', file, str(threshold)], stdout=subprocess.PIPE)
|
process = subprocess.Popen(['java', '-jar', 'sakey.jar', file, str(threshold)], stdout=subprocess.PIPE)
|
||||||
process.wait()
|
process.wait()
|
||||||
|
|
||||||
if process.returncode != 0:
|
if process.returncode != 0:
|
||||||
|
@ -185,7 +185,7 @@ def process(classname: str, threshold: int, limit: int = 1000, recursion: int =
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
# Parse DBPedia ontology
|
# Parse DBPedia ontology
|
||||||
with open('datasets/dbpedia.owl') as f:
|
with open('dbpedia.owl') as f:
|
||||||
ontology = BeautifulSoup(f, 'xml')
|
ontology = BeautifulSoup(f, 'xml')
|
||||||
|
|
||||||
for e in ontology.find_all('ns0:range'):
|
for e in ontology.find_all('ns0:range'):
|
||||||
|
|
Loading…
Reference in New Issue