@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-817 a edu:Knobit ;
    rdfs:label "Recognises a length taken from sample data"@en ;
    dcterms:identifier "K-817" ;
    dcterms:license <https://creativecommons.org/licenses/by/4.0/> ;
    dcterms:source "Review checklist 05-ddl, row 17; ISO 13616; this skill"@en ;
    owl:sameAs <https://bitbucket.org/reffa/ontology/id/knobit/data-modelling/08-ddl/17> ;
    skos:altLabel "Length taken from the sample, not the domain (generated DDL)"@en ;
    skos:definition "A `VARCHAR`/`CHAR` sized from the data that happened to be loaded in development. An IBAN is up to 34 characters, a BIC is 8 or 11, a SEPA party name is 70. Too short truncates on some engines and errors on others, and a truncated IBAN is a payment to nobody."@en ;
    skos:prefLabel "Recognises a length taken from sample data"@en ;
    edu:actionVerb "Recognises"@en ;
    edu:appliesKnowledge knobit:K-562 ;
    edu:assessmentCriterion "Flags the deficient case and passes the acceptable one. Deficient: `dim_account.account_number VARCHAR(20)` on a mart that will also hold non-Estonian accounts: correct for every Estonian IBAN and 14 characters short of a Maltese one Acceptable: Either `VARCHAR(34)` from the standard with the 20-character Estonian form as a DQ rule scoped to Estonian IBANs, or `VARCHAR(20)` with the Estonia-only scope written in the column `comment` and in the rule. What is not acceptable is a length nobody chose"@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:dependsOnKnobit knobit:K-617 ;
    edu:expectedResult "The column and the length its domain standard sets"@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 "VARCHAR or CHAR length"@en ;
    schema:creativeWorkStatus "accepted" ;
    schema:isPartOf register:data-modelling .

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

knobit:K-562 rdfs:label "Explains attribute domains"@en .

knobit:K-617 rdfs:label "Recognises a physical domain differing from the logical domain"@en .

