From a9174bb40356463c19b6e5540d5806c69800ff4c Mon Sep 17 00:00:00 2001 From: Xuemin Duan Date: Mon, 11 Nov 2024 10:58:03 +0100 Subject: [PATCH] feat: support rml and ontology formats including: Turtle, N-Triples, N-Quads, Trig, Trix, RDF/XML, JSON-LD, Notation-3 --- fastapp.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fastapp.py b/fastapp.py index b39588b..7bcdbfd 100644 --- a/fastapp.py +++ b/fastapp.py @@ -105,15 +105,10 @@ async def translate(request_data: TranslationRequest): if request_data.owlData != []: for index, data in enumerate(request_data.owlData): - print("Start loading ontology") g, rdf_format = load_rdf_graph(data) - print(f"Detected RDF format: {rdf_format}") if rdf_format: - print("Here") owl_file = os.path.join(inputowl_folder, f"owl{index}.ttl") - print(f"OWL file: {owl_file}") g.serialize(destination=owl_file, format='ttl') - print("Ontology loaded") else: # unrecognized format return JSONResponse(content={"error": "Invalid Ontology format"}, status_code=400)