diff --git a/prez/services/link_generation.py b/prez/services/link_generation.py index 75ffcd4c..61d477b2 100755 --- a/prez/services/link_generation.py +++ b/prez/services/link_generation.py @@ -78,6 +78,10 @@ async def _link_generation( URIRef("http://example.org/ns#Search"), URIRef("http://example.org/ns#TopConcepts"), URIRef("http://example.org/ns#Narrowers"), + URIRef("http://example.org/ns#QueryablesGlobal"), + URIRef("http://example.org/ns#QueryablesLocal"), + URIRef("http://example.org/ns#Feature"), # creation of these links is hardcoded in the OGC Features API + URIRef("http://example.org/ns#FeatureCollections"), # creation of these links is hardcoded in the OGC Features API ] ] # run queries for available nodeshapes to get link components diff --git a/test_data/issue_286.ttl b/test_data/issue_286.ttl new file mode 100644 index 00000000..d66f8056 --- /dev/null +++ b/test_data/issue_286.ttl @@ -0,0 +1,23 @@ +PREFIX dcat: +PREFIX dcterms: +PREFIX ex: +PREFIX geo: +PREFIX rdfs: +PREFIX sdo: +PREFIX sosa: + +ex:cat a dcat:Catalog; + rdfs:label "a catalog"; + dcterms:hasPart ex:res . + +ex:res a dcat:Resource; + rdfs:label "a resource"; + sosa:isFeatureOfInterestOf [ a sosa:Observation; + sosa:hasResult [ a sosa:Result; + rdfs:label "a result"; + sdo:value ex:feat + ] + ] . + +ex:feat a geo:Feature; + rdfs:label "a feature" . \ No newline at end of file diff --git a/tests/test_issue_286.py b/tests/test_issue_286.py new file mode 100755 index 00000000..0c05ce81 --- /dev/null +++ b/tests/test_issue_286.py @@ -0,0 +1,3 @@ +def test_issue(client): + r = client.get(f"/catalogs/ex:cat/collections/ex:res") + assert r.status_code == 200