Skip to content

Commit

Permalink
Treat skos:narrower and skos:broader as annotation properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
recalcitrantsupplant committed Jun 16, 2023
1 parent 4b22d5e commit 8bcd0f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions prez/reference_data/profiles/vocprez_default_profiles.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -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 ,
Expand Down Expand Up @@ -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 ;
Expand Down
2 changes: 1 addition & 1 deletion prez/sparql/objects_listings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8bcd0f1

Please sign in to comment.