@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-705 a edu:Knobit ;
    rdfs:label "Recognises history kept without its constraints checked"@en ;
    dcterms:identifier "K-705",
        "Q-305" ;
    dcterms:license <https://creativecommons.org/licenses/by/4.0/> ;
    dcterms:source "Review checklist 03-dq-rules (data-quality), row 5; DDL 2014 ch. 13; this skill (06-physical.md); formerly data-modelling K-705"@en,
        "Shared-URI copy of data-quality Q-305 (Review checklist 03-dq-rules (data-quality), row 5; DDL 2014 ch. 13; this skill (06-physical.md))"@en ;
    owl:sameAs <https://bitbucket.org/reffa/ontology/id/knobit/data-modelling/07-dq-rules/05> ;
    skos:altLabel "History kept, its constraints not checked (data quality rule)"@en ;
    skos:definition "A table with validity periods or a current-row flag, on a platform where no key can express \"no two versions of one key overlap\" or \"exactly one current row per key\", and no DQ rule checks either. Point-in-time joins then return two rows or none."@en ;
    skos:prefLabel "Recognises history kept without its constraints checked"@en ;
    edu:actionVerb "Recognises"@en ;
    edu:appliesKnowledge knobit:K-356,
        knobit:K-658 ;
    edu:assessmentCriterion "Flags the deficient case and passes the acceptable one. Deficient: `dim_account` with `valid_from`/`valid_to`, unique on `(account_identifier, valid_from)` only; two overlapping versions load, and a payment on the overlap is counted twice Acceptable: Two set checks: no overlapping periods per `account_identifier`, exactly one `is_current = TRUE` per `account_identifier`; `dimension: consistency`, threshold 100 %"@en ;
    edu:assessmentMethod "skill-tests task: Loan application data quality rules on Snowflake (DQ rule anomaly 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/aiGeneratedAiEdited>,
        <https://knobit.org/def/creationMethod/aiGeneratedHumanEdited> ;
    edu:dependsOnKnobit knobit:K-623 ;
    edu:expectedResult "The missing overlap and one-current checks"@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 "versioned table on a non-enforcing platform"@en ;
    schema:creativeWorkStatus "accepted" ;
    schema:isPartOf register:data-modelling,
        register:data-quality .

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

knobit:K-356 rdfs:label "Explains rule enforcement mechanisms and platform enforcement"@en .

knobit:K-623 rdfs:label "Recognises inconsistent validity periods in a versioned table"@en .

knobit:K-658 rdfs:label "Explains history strategies and validity-period conventions"@en .

