@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix edu: <https://knobit.org/def/> .
@prefix knobit: <https://knobit.org/id/knobit/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix register: <https://knobit.org/id/register/> .
@prefix schema: <https://schema.org/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

knobit:K-807 a edu:Knobit ;
    rdfs:label "`-- NOT ENFORCED` read as a guarantee (generated DDL)"@en ;
    dcterms:identifier "K-807" ;
    dcterms:license <https://creativecommons.org/licenses/by/4.0/> ;
    dcterms:source "Review checklist 05-ddl, row 7; this skill (08-ddl.md); ISO 9075"@en ;
    owl:sameAs <https://bitbucket.org/reffa/ontology/id/knobit/data-modelling/08-ddl/07> ;
    skos:definition "On Snowflake and Databricks every primary key, unique constraint and foreign key is documentation: the syntax is accepted and nothing is checked. Look for a key the design quietly relies on with no DQ rule behind it, and for a load that assumes referential integrity it will not get."@en ;
    skos:prefLabel "`-- NOT ENFORCED` read as a guarantee (generated DDL)"@en ;
    edu:actionVerb "Recognises"@en ;
    edu:assessmentCriterion "Flags the deficient case and passes the acceptable one. Deficient: Snowflake target; `uk_dim_account_nk` emitted `-- NOT ENFORCED` with no `uniqueness` DQ rule. A rerun of the nightly load inserts a second current version of every account, and every payment joins twice Acceptable: The constraint kept — the optimiser and the BI layer read it — and a `uniqueness` DQ rule naming it in `backs`, plus an unknown-member row so an unmatched `account_key` is visible rather than orphaned (`DQR-017`, `DQR-018`)"@en ;
    edu:assessmentMethod "skill-tests task: Generated DDL review, Postgres and Snowflake (DDL review skills)"@en ;
    edu:conformsToProfile <https://oppekava.edu.ee/a/Knobitite_kirjeldamise_ja_seostamise_reeglid#LCG-KNOBIT-0.1> ;
    edu:contextFunction <https://knobit.org/def/contextFunction/resultEvaluation> ;
    edu:creationMethod <https://knobit.org/def/creationMethod/aiGeneratedHumanEdited> ;
    edu:expectedResult "A finding that names the defective generated DDL element and the defect"@en ;
    edu:graphRelevance <https://knobit.org/def/graphRelevance/learnerState>,
        <https://knobit.org/def/graphRelevance/taskSelection> ;
    edu:knobitType <https://knobit.org/def/knobitType/skill> ;
    edu:targetObject "generated DDL"@en ;
    schema:creativeWorkStatus "superseded" ;
    schema:isPartOf register:data-modelling ;
    schema:supersededBy knobit:K-313 .

edu:Knobit rdfs:label "Knobit"@en,
        "Knobit"@et .

knobit:K-313 rdfs:label "Recognises a declared constraint the target platform does not enforce"@en .

