list_uri_prefixes: Bugfix

This commit is contained in:
Tom Wiesing 2022-09-21 16:06:58 +02:00
parent 3be5e85ef7
commit 0872ca1335
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View file

@ -23,6 +23,9 @@ function list_prefixes() {
}
function getTriplestorePrefixes($engine, &$prefixes) {
// some adapters don't support a query method!
if (!method_exists($engine, 'directQuery')) return NULL;
$results = $engine->directQuery('
select distinct ?base where {
{

View file

@ -12,5 +12,5 @@ urn:
http://d-nb.info/gnd/
http://erlangen-crm.org/
http://id.gnm.de/ont/
http://zotero.org/
http://www.zotero.org/
https://api.zotero.org/