@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-612 a edu:Knobit ;
    rdfs:label "Recognises an undeclared foreign key"@en ;
    dcterms:identifier "K-612" ;
    dcterms:license <https://creativecommons.org/licenses/by/4.0/> ;
    dcterms:source "Review checklist 04-physical, row 12; Karwin, Keyless Entry; Codd 1979 §2.1; E&N 5.2, 6.2; S&W 11.6"@en ;
    owl:sameAs <https://bitbucket.org/reffa/ontology/id/knobit/data-modelling/06-physical/12> ;
    skos:altLabel "Undeclared foreign key (physical model)"@en ;
    skos:definition "A logical relationship implemented as a column with no foreign key, usually \"for load speed\" or \"the ETL checks it\". Rows referencing nothing load, and so do deletions that leave them. A specific form of row 14."@en ;
    skos:prefLabel "Recognises an undeclared foreign key"@en ;
    edu:actionVerb "Recognises"@en ;
    edu:appliesKnowledge knobit:K-653 ;
    edu:assessmentCriterion "Flags the deficient case and passes the acceptable one. Deficient: `payment.account_id` with no foreign key; an account is purged and its payments point nowhere Acceptable: A `foreign_keys` entry for every logical relationship, citing it in `logical_relationship`; where the platform does not enforce it, see row 15 (`PHY-007` checks the declared ones; a missing one is review only: compare each `LR-` with the foreign keys citing it)"@en ;
    edu:assessmentMethod "skill-tests task: Loan application physical model on Snowflake (physical design 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/aiGeneratedHumanEdited> ;
    edu:expectedResult "The column and the foreign key to declare"@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 "relationship column without foreign key"@en ;
    schema:creativeWorkStatus "accepted" ;
    schema:isPartOf register:data-modelling .

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

knobit:K-653 rdfs:label "Explains referential integrity and referential actions"@en .

