fix: create schema description from URIs and str w/out rdflib warnings (#8025)

- Description: fix to avoid rdflib warnings when concatenating URIs and
strings to create the text snippet for the knowledge graph's schema.
@marioscrock pointed this out in a comment related to #7165
- Issue: None, but the problem was mentioned as a comment in #7165
- Dependencies: None
- Tag maintainer: Related to memory -> @hwchase17, maybe @baskaryan as
it is a fix
This commit is contained in:
felixocker 2023-07-21 00:55:19 +02:00 committed by GitHub
parent 7239d57a53
commit 9226fda58b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,7 +225,7 @@ class RdfGraph:
def _res_to_str(self, res: rdflib.query.ResultRow, var: str) -> str:
return (
"<"
+ res[var]
+ str(res[var])
+ "> ("
+ self._get_local_name(res[var])
+ ", "