From 72252e1d706602545d8eaf0bcc30f611b2041d8d Mon Sep 17 00:00:00 2001 From: david Date: Mon, 5 Aug 2024 14:00:12 +1000 Subject: [PATCH] Modify default profile to exclude skos:hasTopConcept to prevent timeouts when loading ConceptSchemes. The top concepts can be obtained using the paginated endpoint `/concept-hierarchy//top-concepts`. Remove optional inclusion of concept skos:inScheme conceptScheme links for the same reason. --- prez/reference_data/profiles/ogc_records_profile.ttl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prez/reference_data/profiles/ogc_records_profile.ttl b/prez/reference_data/profiles/ogc_records_profile.ttl index c7339085..81d43f4d 100644 --- a/prez/reference_data/profiles/ogc_records_profile.ttl +++ b/prez/reference_data/profiles/ogc_records_profile.ttl @@ -143,10 +143,10 @@ prez:OGCSchemesObjectProfile altr-ext:hasDefaultResourceFormat "text/anot+turtle" ; altr-ext:constrainsClass skos:ConceptScheme ; sh:property [ - sh:minCount 0 ; - sh:path [sh:inversePath skos:inScheme ] - ] , [ sh:path shext:allPredicateValues + ] , [ + sh:maxCount 0 ; + sh:path skos:hasTopConcept ; ] ; shext:bnode-depth 2 ; .