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/1993, uuid:e1a7f35d-612e-46a8-bb5f-476047445740, -)
  agent(app:the_bank, [prov:type='pl:DataController', prov:type='cs:RetailBank', prov:type='prov:Organization', prov:label="Some bank"])
  activity(uuid:e1a7f35d-612e-46a8-bb5f-476047445740, 2026-11-26T14:13:52.999000+00:00, 2026-11-26T14:14:07.885000+00:00, [prov:type='pl:MachineLedActivity', prov:type='cs:AssessingCreditApplication'])
  wasDerivedFrom(app:decisions/1993, app:applications/654, -, -, -)
  wasAssociatedWith(uuid:e1a7f35d-612e-46a8-bb5f-476047445740, app:the_bank, -)
  wasAttributedTo(app:decisions/1993, app:the_bank)
  used(uuid:e1a7f35d-612e-46a8-bb5f-476047445740, app:applications/654, -)
  entity(app:applications/654)
  entity(app:decisions/1993, [pl:created_at="2026-11-26T14:14:07.885691" %% 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/1993, uuid:f1a722bb-92c1-4978-bda6-baa6102369a4, -)
  agent(app:the_bank)
  agent(app:machines/one, [prov:type='prov:SoftwareAgent'])
  actedOnBehalfOf(app:machines/one, app:the_bank, uuid:f1a722bb-92c1-4978-bda6-baa6102369a4)
  activity(uuid:f1a722bb-92c1-4978-bda6-baa6102369a4, 2026-11-26T14:13:52.999000+00:00, 2026-11-26T14:14:07.885000+00:00, [prov:type='pl:MachineLedActivity', prov:type='cs:AutomatedAssessingCreditApplication'])
  wasDerivedFrom(app:recommendations/1993, app:creditreports/1993, -, -, -)
  wasDerivedFrom(app:recommendations/1993, app:records/6304, -, -, -)
  wasDerivedFrom(app:recommendations/1993, app:applications/654, -, -, -)
  wasAssociatedWith(uuid:f1a722bb-92c1-4978-bda6-baa6102369a4, app:machines/one, app:models/creditcard_assessment)
  used(uuid:f1a722bb-92c1-4978-bda6-baa6102369a4, app:creditreports/1993, -)
  used(uuid:f1a722bb-92c1-4978-bda6-baa6102369a4, app:records/6304, -)
  used(uuid:f1a722bb-92c1-4978-bda6-baa6102369a4, app:applications/654, -)
  wasAttributedTo(app:recommendations/1993, app:machines/one)
  entity(app:records/6304)
  entity(app:models/creditcard_assessment)
  entity(app:applications/654)
  entity(app:recommendations/1993, [pl:created_at="2026-11-26T14:14:07.885691" %% 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/1993)
  wasDerivedFrom(app:decisions/1993, app:recommendations/1993, -, -, -)
  entity(app:recommendations/1993)
  entity(app:decisions/1993)
  agent(app:applicants/654, [prov:type='pl:DataSubject', prov:type='prov:Person', prov:type='cs:Applicant', prov:label="Kerry Warren"])
  wasAttributedTo(app:applications/654, app:applicants/654)
  entity(app:applications/654, [cs:attr_annual_income=77000, pl:created_at="2026-11-26T14:13:52.999525" %% xsd:dateTime, cs:attr_prev_address="Flat 51, Ryan stream, Markbury, TA6 6NE", cs:attr_address="Studio 20, O'Connor cove, Charlieshire, W8W 5PP", prov:type='pl:Data', prov:type='pl:SubjectData', prov:type='cs:CreditCardApplication', prov:type='pl:Request', cs:attr_dob="1984-03-01" %% xsd:date, cs:attr_emp_title="Education administrator", cs:attr_home_ownership=4, cs:attr_phone_number="+44(0)151 4960854", cs:attr_email_address="valerieprice@example.net", cs:attr_applicant_name="Kerry Warren", cs:attr_emp_length=24])
  wasDerivedFrom(app:applications/654/id, app:applications/654, -, -, -)
  entity(app:applications/654/id, [cs:attr_prev_address="Flat 51, Ryan stream, Markbury, TA6 6NE", cs:attr_address="Studio 20, O'Connor cove, Charlieshire, W8W 5PP", prov:type='pl:Data', prov:type='pl:SubjectData', prov:type='cs:PersonIdentifier', cs:attr_dob="1984-03-01" %% xsd:date, cs:attr_applicant_name="Kerry Warren"])
  entity(app:applications/654)
  agent(app:providers/1, [prov:type='pl:DataProvider', prov:type='cs:CreditReferencingAgency', prov:label="Credit Referencing Agency"])
  wasGeneratedBy(app:creditreports/1993, uuid:f5e496cd-d031-4d6f-8b66-8a3265c142bd, -)
  activity(uuid:f5e496cd-d031-4d6f-8b66-8a3265c142bd, 2026-11-26T14:14:07.876000+00:00, 2026-11-26T14:14:07.876000+00:00, [prov:type='cs:SearchingCreditHistory'])
  wasDerivedFrom(app:creditreports/1993, app:applications/654/id, -, -, -)
  wasAssociatedWith(uuid:f5e496cd-d031-4d6f-8b66-8a3265c142bd, app:providers/1, -)
  wasAttributedTo(app:creditreports/1993, app:providers/1)
  used(uuid:f5e496cd-d031-4d6f-8b66-8a3265c142bd, app:applications/654/id, -)
  entity(app:applications/654/id)
  entity(app:creditreports/1993, [pl:created_at="2026-11-26T14:14:07.876301" %% xsd:dateTime, prov:type='pl:Data', prov:type='pl:ExternalData', prov:type='cs:CreditHistory', cs:credit_score=223])
  wasDerivedFrom(app:creditreports/1993, app:records/6303, -, -, -)
  wasDerivedFrom(app:creditreports/1993, app:records/6304, -, -, -)
  wasDerivedFrom(app:creditreports/1993, app:records/6302, -, -, -)
  agent(app:providers/2, [prov:type='cs:DataProvider', prov:type='cs:ElectoralAuthority', prov:label="The Electoral Commission"])
  wasAttributedTo(app:records/6302, app:providers/2)
  entity(app:records/6302, [pl:created_at="2026-10-30T00:00:00" %% xsd:dateTime, cs:attr_address="Studio 20, O'Connor cove, Charlieshire, W8W 5PP", prov:type='pl:Data', prov:type='pl:ExternalData', prov:type='cs:IdentityRecord', prov:type='cs:ElectoralRegisterEntry', cs:attr_from_date="2026-06-03" %% xsd:date])
  agent(app:providers/9, [prov:type='cs:DataProvider', prov:type='cs:UtilityCompany', prov:label="GiffGaff"])
  wasAttributedTo(app:records/6303, app:providers/9)
  entity(app:records/6303, [pl:created_at="2026-11-26T14:14:07.882851" %% xsd:dateTime, cs:attr_prev_address="Flat 51, Ryan stream, Markbury, TA6 6NE", cs:attr_first_confirmed="2026-11-14" %% xsd:date, cs:attr_address="Studio 20, O'Connor cove, Charlieshire, W8W 5PP", prov:type='pl:Data', prov:type='pl:ExternalData', prov:type='cs:LinkedAddressRecord', cs:attr_last_confirmed="2026-01-03" %% xsd:date])
  agent(app:providers/14, [prov:type='cs:DataProvider', prov:type='cs:FinancialInstitution', prov:label="A Credit Card Company"])
  wasAttributedTo(app:records/6304, app:providers/14)
  entity(app:records/6304, [pl:created_at="2026-11-26T14:14:07.884532" %% xsd:dateTime, cs:attr_payment_amount="18.2" %% xsd:float, cs:attr_month="Sep-2026", prov:type='pl:Data', prov:type='pl:ExternalData', prov:type='csd:LatePayment', prov:type='cs:CreditRecord', cs:attr_credit_limit="1600.0" %% xsd:float, cs:attr_account="Everyday Creditcard", cs:attr_balance="792.56" %% xsd:float])
endDocument