document
  prefix app <https://explain.openprovenance.org/creditscoring/>
  prefix uuid <urn:uuid:>
  prefix pl <http://openprovenance.org/ns/plead#>
  prefix cs <http://openprovenance.org/ns/creditscoring#>
  prefix csd <https://explain.openprovenance.org/creditscoring/ns#>
  
  wasGeneratedBy(app:decisions/2002, uuid:3a95270f-2e23-44ab-ae22-640ab8f44492, -)
  agent(app:the_bank, [prov:type='pl:DataController', prov:type='cs:RetailBank', prov:type='prov:Organization', prov:label="Some bank"])
  activity(uuid:3a95270f-2e23-44ab-ae22-640ab8f44492, 2026-11-27T15:44:03.893000+00:00, 2026-11-27T15:44:42.962000+00:00, [prov:type='pl:MachineLedActivity', prov:type='cs:AssessingCreditApplication'])
  wasAssociatedWith(uuid:3a95270f-2e23-44ab-ae22-640ab8f44492, app:the_bank, -)
  wasDerivedFrom(app:decisions/2002, app:applications/655, -, -, -)
  used(uuid:3a95270f-2e23-44ab-ae22-640ab8f44492, app:applications/655, -)
  wasAttributedTo(app:decisions/2002, app:the_bank)
  entity(app:applications/655)
  entity(app:decisions/2002, [pl:created_at="2026-11-27T15:44:42.962377" %% xsd:dateTime, cs:result='cs:rejected', prov:type='pl:RejectionDecision', prov:type='pl:Decision', prov:type='pl:AutomatedDecision', prov:type='cs:CreditDecision', pl:reason='cs:low_credit_score'])
  wasGeneratedBy(app:recommendations/2002, uuid:d08cc02d-31f4-45b7-a249-dfb4f9585039, -)
  agent(app:the_bank)
  agent(app:machines/one, [prov:type='prov:SoftwareAgent'])
  activity(uuid:d08cc02d-31f4-45b7-a249-dfb4f9585039, 2026-11-27T15:44:03.893000+00:00, 2026-11-27T15:44:42.962000+00:00, [prov:type='pl:MachineLedActivity', prov:type='cs:AutomatedAssessingCreditApplication'])
  actedOnBehalfOf(app:machines/one, app:the_bank, uuid:d08cc02d-31f4-45b7-a249-dfb4f9585039)
  wasAssociatedWith(uuid:d08cc02d-31f4-45b7-a249-dfb4f9585039, app:machines/one, app:models/creditcard_assessment)
  wasDerivedFrom(app:recommendations/2002, app:records/6327, -, -, -)
  wasDerivedFrom(app:recommendations/2002, app:creditreports/2002, -, -, -)
  wasDerivedFrom(app:recommendations/2002, app:applications/655, -, -, -)
  used(uuid:d08cc02d-31f4-45b7-a249-dfb4f9585039, app:creditreports/2002, -)
  used(uuid:d08cc02d-31f4-45b7-a249-dfb4f9585039, app:applications/655, -)
  used(uuid:d08cc02d-31f4-45b7-a249-dfb4f9585039, app:records/6327, -)
  wasAttributedTo(app:recommendations/2002, app:machines/one)
  entity(app:applications/655)
  entity(app:models/creditcard_assessment)
  entity(app:recommendations/2002, [pl:created_at="2026-11-27T15:44:42.962377" %% xsd:dateTime, prov:type='pl:AutomatedRecommendation', prov:type='cs:AutomatedRecommendation', cs:credit_score_threshold=739, pl:reason='cs:low_credit_score', cs:recommendation='cs:rejected'])
  entity(app:creditreports/2002)
  entity(app:records/6327)
  wasDerivedFrom(app:decisions/2002, app:recommendations/2002, -, -, -)
  entity(app:recommendations/2002)
  entity(app:decisions/2002)
  agent(app:applicants/655, [prov:type='pl:DataSubject', prov:type='prov:Person', prov:type='cs:Applicant', prov:label="Jake Brown"])
  wasAttributedTo(app:applications/655, app:applicants/655)
  entity(app:applications/655, [cs:attr_annual_income=31000, pl:created_at="2026-11-27T15:44:03.893249" %% xsd:dateTime, cs:attr_prev_address="086 Natalie crest, Scottton, WR0 1WL", cs:attr_address="Studio 8, Victoria courts, Iainside, SN0 5BJ", prov:type='pl:Data', prov:type='pl:SubjectData', prov:type='cs:CreditCardApplication', prov:type='pl:Request', cs:attr_dob="1966-02-17" %% xsd:date, cs:attr_emp_title="Banker", cs:attr_home_ownership=3, cs:attr_phone_number="(0118)4960077", cs:attr_email_address="qlewis@example.org", cs:attr_applicant_name="Jake Brown", cs:attr_emp_length=37])
  wasDerivedFrom(app:applications/655/id, app:applications/655, -, -, -)
  entity(app:applications/655)
  entity(app:applications/655/id, [cs:attr_prev_address="086 Natalie crest, Scottton, WR0 1WL", cs:attr_address="Studio 8, Victoria courts, Iainside, SN0 5BJ", prov:type='pl:Data', prov:type='pl:SubjectData', prov:type='cs:PersonIdentifier', cs:attr_dob="1966-02-17" %% xsd:date, cs:attr_applicant_name="Jake Brown"])
  agent(app:providers/1, [prov:type='pl:DataProvider', prov:type='cs:CreditReferencingAgency', prov:label="Credit Referencing Agency"])
  wasGeneratedBy(app:creditreports/2002, uuid:2dc328df-8323-4cc7-b01b-fc35cca94757, -)
  activity(uuid:2dc328df-8323-4cc7-b01b-fc35cca94757, 2026-11-27T15:44:42.953000+00:00, 2026-11-27T15:44:42.953000+00:00, [prov:type='cs:SearchingCreditHistory'])
  wasAssociatedWith(uuid:2dc328df-8323-4cc7-b01b-fc35cca94757, app:providers/1, -)
  wasDerivedFrom(app:creditreports/2002, app:applications/655/id, -, -, -)
  used(uuid:2dc328df-8323-4cc7-b01b-fc35cca94757, app:applications/655/id, -)
  wasAttributedTo(app:creditreports/2002, app:providers/1)
  entity(app:creditreports/2002, [pl:created_at="2026-11-27T15:44:42.953416" %% xsd:dateTime, prov:type='pl:Data', prov:type='pl:ExternalData', prov:type='cs:CreditHistory', cs:credit_score=94])
  entity(app:applications/655/id)
  wasDerivedFrom(app:creditreports/2002, app:records/6326, -, -, -)
  wasDerivedFrom(app:creditreports/2002, app:records/6327, -, -, -)
  wasDerivedFrom(app:creditreports/2002, app:records/6325, -, -, -)
  agent(app:providers/2, [prov:type='cs:DataProvider', prov:type='cs:ElectoralAuthority', prov:label="The Electoral Commission"])
  wasAttributedTo(app:records/6325, app:providers/2)
  entity(app:records/6325, [pl:created_at="2026-11-24T00:00:00" %% xsd:dateTime, cs:attr_address="Studio 8, Victoria courts, Iainside, SN0 5BJ", prov:type='pl:Data', prov:type='pl:ExternalData', prov:type='cs:IdentityRecord', prov:type='cs:ElectoralRegisterEntry', cs:attr_from_date="2024-06-17" %% xsd:date])
  agent(app:providers/11, [prov:type='cs:DataProvider', prov:type='cs:UtilityCompany', prov:label="Sky"])
  wasAttributedTo(app:records/6326, app:providers/11)
  entity(app:records/6326, [pl:created_at="2026-11-27T15:44:42.959697" %% xsd:dateTime, cs:attr_prev_address="086 Natalie crest, Scottton, WR0 1WL", cs:attr_first_confirmed="2026-11-04" %% xsd:date, cs:attr_address="Studio 8, Victoria courts, Iainside, SN0 5BJ", prov:type='pl:Data', prov:type='pl:ExternalData', prov:type='cs:LinkedAddressRecord', cs:attr_last_confirmed="2026-01-02" %% xsd:date])
  agent(app:providers/15, [prov:type='cs:DataProvider', prov:type='cs:FinancialInstitution', prov:label="A Bank"])
  wasAttributedTo(app:records/6327, app:providers/15)
  entity(app:records/6327, [pl:created_at="2026-11-27T15:44:42.961269" %% xsd:dateTime, cs:attr_payment_amount="0.0" %% xsd:float, cs:attr_month="Apr-2026", prov:type='pl:Data', prov:type='pl:ExternalData', prov:type='csd:MissedPayment', prov:type='cs:CreditRecord', cs:attr_credit_limit="1200.0" %% xsd:float, cs:attr_account="Everyday Creditcard", cs:attr_balance="488.75" %% xsd:float])
endDocument