Skip to content

Commit

Permalink
Only entail top concepts for skos:Concept
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Nov 14, 2023
1 parent de0e461 commit 468efac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/ogc_skos_profile_entailments.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@ WHERE {
$this skos:hasTopConcept ?concept .
?concept skos:topConceptOf $this .
} WHERE {
?concept skos:inScheme $this .
{ ?concept a skos:Concept ; skos:inScheme $this }
UNION
{ ?concept skos:topConceptOf $this }
UNION
{ $this skos:hasTopConcept ?concept }
FILTER NOT EXISTS { ?concept skos:broader ?broader1 }
FILTER NOT EXISTS { ?broader2 skos:narrower ?concept }
}
Expand Down

0 comments on commit 468efac

Please sign in to comment.