From 8bcd0f15c32efafca15f54e3eb5fa5976e1c4a9f Mon Sep 17 00:00:00 2001 From: david Date: Fri, 16 Jun 2023 15:20:52 +1000 Subject: [PATCH] Treat skos:narrower and skos:broader as annotation properties. --- prez/reference_data/profiles/vocprez_default_profiles.ttl | 7 +------ prez/sparql/objects_listings.py | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/prez/reference_data/profiles/vocprez_default_profiles.ttl b/prez/reference_data/profiles/vocprez_default_profiles.ttl index e7adf7fa..763f45dd 100644 --- a/prez/reference_data/profiles/vocprez_default_profiles.ttl +++ b/prez/reference_data/profiles/vocprez_default_profiles.ttl @@ -69,7 +69,7 @@ prez:VocPrezProfile dcterms:identifier "vocpub"^^xsd:token ; dcterms:title "VocPub" ; altr-ext:hasLabelPredicate skos:prefLabel ; - altr-ext:otherAnnotationProps schema:color ; + altr-ext:otherAnnotationProps schema:color , skos:broader , skos:narrower ; altr-ext:constrainsClass skos:ConceptScheme , skos:Concept , @@ -97,11 +97,6 @@ prez:VocPrezProfile sh:targetClass skos:ConceptScheme ; altr-ext:inboundChildren skos:inScheme ; ] ; - altr-ext:hasNodeShape [ - a sh:NodeShape ; - sh:targetClass skos:ConceptScheme ; - altr-ext:relativeProperties skos:broader , skos:narrower ; - ] ; altr-ext:hasNodeShape [ a sh:NodeShape ; sh:targetClass skos:Concept ; diff --git a/prez/sparql/objects_listings.py b/prez/sparql/objects_listings.py index b76e07bb..787519b5 100644 --- a/prez/sparql/objects_listings.py +++ b/prez/sparql/objects_listings.py @@ -600,7 +600,7 @@ def get_listing_predicates(profile, selected_class): """ shape_bns = get_relevant_shape_bns_for_profile(selected_class, profile) if not shape_bns: - return [], [], [], [], [] + return [], [], [], [] inbound_children = [ i[2] for i in profiles_graph_cache.triples_choices(