From c86e115da675c61f5e1f7c7ae2f99b3b98916a88 Mon Sep 17 00:00:00 2001 From: Timo Date: Mon, 13 Jan 2025 02:21:31 +0100 Subject: [PATCH] fixes --- src/sparqlunicorn_ontdoc/doc/graphutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sparqlunicorn_ontdoc/doc/graphutils.py b/src/sparqlunicorn_ontdoc/doc/graphutils.py index dce97ea..823e111 100644 --- a/src/sparqlunicorn_ontdoc/doc/graphutils.py +++ b/src/sparqlunicorn_ontdoc/doc/graphutils.py @@ -4,7 +4,7 @@ from doc.docconfig import DocConfig import json from collections import defaultdict -from export.data.vowlexporter import OWL2VOWL +from export.data.vowlexporter import VOWLExporter class GraphUtils: @@ -139,7 +139,7 @@ def getPropertyRelations(graph, outpath,typeproperty,createVOWL): predicates[pred]["to"] = list(predicates[pred]["to"]) predicatecounter += 1 predicatelength += len(str(pred)) - OWL2VOWL.convertOWL2MiniVOWL(graph, outpath, "minivowl_result.js", predicates) + VOWLExporter.convertOWL2MiniVOWL(graph, outpath, "minivowl_result.js", predicates) with open(outpath + "proprelations.js", 'w', encoding='utf-8') as f: f.write("var proprelations=" + json.dumps(predicates)) f.close()