diff --git a/pygeoapi-skin-dashboard/templates/collections/items/item.html b/pygeoapi-skin-dashboard/templates/collections/items/item.html
index 1b69afc..3770306 100644
--- a/pygeoapi-skin-dashboard/templates/collections/items/item.html
+++ b/pygeoapi-skin-dashboard/templates/collections/items/item.html
@@ -138,7 +138,7 @@
{% if data['properties']['datasets'] %}
- Datasets
+ Graph Results
{% for dataset in data['properties']['datasets'] %}
diff --git a/pygeoapi.config.yml b/pygeoapi.config.yml
index 17ee821..2f2656b 100644
--- a/pygeoapi.config.yml
+++ b/pygeoapi.config.yml
@@ -109,7 +109,7 @@ resources:
end: null
providers:
- type: feature
- name: PostgreSQL
+ name: pygeoapi_plugins.provider.sparql.SPARQLProvider
data: &provider-data
host: ${POSTGRES_HOST}
dbname: ${POSTGRES_DB}
@@ -120,6 +120,23 @@ resources:
table: hu02
uri_field: uri
geom_field: geom
+ sparql_provider: PostgreSQL
+ sparql_query:
+ convert: false
+ endpoint: https://graph.geoconnex.us/repositories/iow
+ prefixes:
+ hyf:
+ bind:
+ name: uri
+ variable: '?huc'
+ select: '?huc ?hucLevel (GROUP_CONCAT(?containedCatchment; SEPARATOR="|") AS ?hucs)'
+ groupby: '?huc ?hucLevel'
+ where:
+ - subject: '?containedCatchment'
+ predicate: hyf:containingCatchment
+ object: '?huc'
+ filter:
+ - 'BIND(REPLACE(STR(?containedCatchment), "^.*ref/(hu[0-9]+)/.*$", "$1") AS ?hucLevel)'
hu04:
type: collection
title: HU04
@@ -138,13 +155,30 @@ resources:
extents: *extents
providers:
- type: feature
- name: PostgreSQL
+ name: pygeoapi_plugins.provider.sparql.SPARQLProvider
data: *provider-data
id_field: huc4
title_field: name
table: hu04
uri_field: uri
geom_field: geom
+ sparql_provider: PostgreSQL
+ sparql_query:
+ convert: false
+ endpoint: https://graph.geoconnex.us/repositories/iow
+ prefixes:
+ hyf:
+ bind:
+ name: uri
+ variable: '?huc'
+ select: '?huc ?hucLevel (GROUP_CONCAT(?containedCatchment; SEPARATOR="|") AS ?hucs)'
+ groupby: '?huc ?hucLevel'
+ where:
+ - subject: '?containedCatchment'
+ predicate: hyf:containingCatchment
+ object: '?huc'
+ filter:
+ - 'BIND(REPLACE(STR(?containedCatchment), "^.*ref/(hu[0-9]+)/.*$", "$1") AS ?hucLevel)'
hu06:
type: collection
title: HU06
@@ -163,13 +197,30 @@ resources:
extents: *extents
providers:
- type: feature
- name: PostgreSQL
+ name: pygeoapi_plugins.provider.sparql.SPARQLProvider
data: *provider-data
id_field: huc6
title_field: name
table: hu06
uri_field: uri
geom_field: geom
+ sparql_provider: PostgreSQL
+ sparql_query:
+ convert: false
+ endpoint: https://graph.geoconnex.us/repositories/iow
+ prefixes:
+ hyf:
+ bind:
+ name: uri
+ variable: '?huc'
+ select: '?huc ?hucLevel (GROUP_CONCAT(?containedCatchment; SEPARATOR="|") AS ?hucs)'
+ groupby: '?huc ?hucLevel'
+ where:
+ - subject: '?containedCatchment'
+ predicate: hyf:containingCatchment
+ object: '?huc'
+ filter:
+ - 'BIND(REPLACE(STR(?containedCatchment), "^.*ref/(hu[0-9]+)/.*$", "$1") AS ?hucLevel)'
hu08:
type: collection
title: HU08
@@ -188,13 +239,30 @@ resources:
extents: *extents
providers:
- type: feature
- name: PostgreSQL
+ name: pygeoapi_plugins.provider.sparql.SPARQLProvider
data: *provider-data
id_field: huc8
title_field: name
table: hu08
uri_field: uri
geom_field: geom
+ sparql_provider: PostgreSQL
+ sparql_query:
+ convert: false
+ endpoint: https://graph.geoconnex.us/repositories/iow
+ prefixes:
+ hyf:
+ bind:
+ name: uri
+ variable: '?huc'
+ select: '?huc ?hucLevel (GROUP_CONCAT(?containedCatchment; SEPARATOR="|") AS ?hucs)'
+ groupby: '?huc ?hucLevel'
+ where:
+ - subject: '?containedCatchment'
+ predicate: hyf:containingCatchment
+ object: '?huc'
+ filter:
+ - 'BIND(REPLACE(STR(?containedCatchment), "^.*ref/(hu[0-9]+)/.*$", "$1") AS ?hucLevel)'
hu10:
type: collection
title: HU10