From 51efd29ffae96241e4cb9235feba356f4c61f0d5 Mon Sep 17 00:00:00 2001 From: oliviahobai <119642653+oliviahobai@users.noreply.github.com> Date: Tue, 3 Sep 2024 18:24:41 -0400 Subject: [PATCH] Update no-orphaned-subclasses.sparql Based on the updates provided by @swartik, thank you. Tell me if there are any remaining edits that need to be made. --- .github/deployment/sparql/no-orphaned-subclasses.sparql | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/deployment/sparql/no-orphaned-subclasses.sparql b/.github/deployment/sparql/no-orphaned-subclasses.sparql index a327d96..07c185c 100644 --- a/.github/deployment/sparql/no-orphaned-subclasses.sparql +++ b/.github/deployment/sparql/no-orphaned-subclasses.sparql @@ -1,15 +1,12 @@ # Title: # No Orphaned Subclasses # Constraint Description: -# All classes must have some parent class. The only result otherwise should be “entity”. +# All CCO classes must have a superclass. # Severity: -# Warning +# Error # Author: # github.com/swartik -Severity: - (select "Warning" or "Error") - PREFIX owl: PREFIX rdfs: @@ -18,4 +15,5 @@ WHERE { ?cls a owl:Class FILTER isIRI(?cls) FILTER NOT EXISTS { ?cls rdfs:subClassOf ?supercls } + FILTER (?cls != ) }