From 0de1d4ad3e9b5aa1038bd4a282c7fd6aa89d0f2e Mon Sep 17 00:00:00 2001 From: Edmond Chuc Date: Mon, 8 Aug 2022 02:01:17 +0000 Subject: [PATCH 1/2] Fix calling nrm.internal_resource.get_from_list() not specifying the SPARQL endpoint --- src/linkeddata_api/vocab_viewer/nrm/resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linkeddata_api/vocab_viewer/nrm/resource.py b/src/linkeddata_api/vocab_viewer/nrm/resource.py index 584ecc6..0976b41 100644 --- a/src/linkeddata_api/vocab_viewer/nrm/resource.py +++ b/src/linkeddata_api/vocab_viewer/nrm/resource.py @@ -140,7 +140,7 @@ def get(uri: str, sparql_endpoint: str) -> nrm.schema.Resource: label = nrm.label.get(uri, sparql_endpoint) or uri - uri_internal_index = nrm.internal_resource.get_from_list(uri_values) + uri_internal_index = nrm.internal_resource.get_from_list(uri_values, sparql_endpoint) if not uri_internal_index.get(uri): raise nrm.exceptions.SPARQLNotFoundError( From 8c8ce0eac5aee28602cad7bd90adcd2de9f05509 Mon Sep 17 00:00:00 2001 From: Edmond Chuc Date: Mon, 8 Aug 2022 02:01:54 +0000 Subject: [PATCH 2/2] Remove dev value --- src/linkeddata_api/vocab_viewer/nrm/internal_resource.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/linkeddata_api/vocab_viewer/nrm/internal_resource.py b/src/linkeddata_api/vocab_viewer/nrm/internal_resource.py index 424eb18..32c89eb 100644 --- a/src/linkeddata_api/vocab_viewer/nrm/internal_resource.py +++ b/src/linkeddata_api/vocab_viewer/nrm/internal_resource.py @@ -10,7 +10,6 @@ def _get_from_list_query(uris: list[str]) -> str: SELECT distinct ?uri ?internal WHERE { VALUES (?uri) { - () {% for uri in uris %} (<{{ uri }}>) {% endfor %}