From b9db3dd09be5b7b69e6c5f0191c652e5794690aa Mon Sep 17 00:00:00 2001 From: Caitlin2694 <21324675@student.uwa.edu.au> Date: Thu, 27 Jul 2023 03:14:56 +0800 Subject: [PATCH] Fix "missing key op" RDFGraph OWL serialization (#8276) Replace this comment with: - Description: Fix "missing key op" error in RDFGraph OWL Serialization - Issue: #8263 - Dependencies: None - Tag maintainer: @baskaryan --- libs/langchain/langchain/graphs/rdf_graph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/langchain/langchain/graphs/rdf_graph.py b/libs/langchain/langchain/graphs/rdf_graph.py index a8393d602e2..50251371470 100644 --- a/libs/langchain/langchain/graphs/rdf_graph.py +++ b/libs/langchain/langchain/graphs/rdf_graph.py @@ -261,8 +261,8 @@ class RdfGraph: self.schema = _rdf_s_schema(clss, rels) elif self.standard == "owl": clss = self.query(cls_query_owl) - ops = self.query(cls_query_owl) - dps = self.query(cls_query_owl) + ops = self.query(op_query_owl) + dps = self.query(dp_query_owl) self.schema = ( f"In the following, each IRI is followed by the local name and " f"optionally its description in parentheses. \n"