nlg.templates.plead.cs.plead.cs-3b.json Maven / Gradle / Ivy
{
"select": {
"decision": {
"@type": "prov:Entity"
},
"request": {
"@type": "prov:Entity"
},
"officer": {
"@type": "prov:Agent"
},
"reviewing": {
"@type": "prov:Activity"
},
"assoc": {
"@type": "prov:WasAssociatedWith"
},
"der1": {
"@type": "prov:WasDerivedFrom"
}
},
"query": [
"prefix cs ",
"prefix pl ",
"prefix app ",
"",
"select * from decision a prov:Entity",
"",
"from der1 a prov:WasDerivedFrom",
"join decision.id = der1.generatedEntity",
"",
"from recommendation a prov:Entity",
"join der1.usedEntity = recommendation.id",
"",
"from der2 a prov:WasDerivedFrom",
"join recommendation.id = der2.generatedEntity",
"",
"from credit_history a prov:Entity",
"join der2.usedEntity = credit_history.id",
"",
"from wat1 a prov:WasAttributedTo",
"join credit_history.id = wat1.entity",
"",
"from cra a prov:Agent",
"join wat1.agent = cra.id",
"",
"where decision[prov:type] >= 'pl:Decision'",
"and recommendation[prov:type] >= 'pl:AutomatedRecommendation'",
"and credit_history[prov:type] >= 'cs:CreditHistory'",
"and cra[prov:type] >= 'cs:CreditReferencingAgency'"
],
"sentence": {
"type": "paragraph",
"items": [
{
"type": "clause",
"subject": "##company",
"verb": "made",
"object": {
"type": "noun_phrase",
"determiner": "this",
"head": "decision"
},
"complements": [
{
"type": "preposition_phrase",
"preposition": "with",
"noun": {
"type": "noun_phrase",
"determiner": "a",
"head": "scoring system",
"pre-modifiers": [
{
"type": "adjective_phrase",
"head": "automated"
}
],
"modifiers": [
{
"type": "clause",
"subject": "that",
"verb": "take",
"object": {
"type": "coordinated_phrase",
"conjunction": "as well as",
"coordinates": [
{
"type": "noun_phrase",
"determiner": "the",
"head": "information",
"post-modifiers": [
{
"type": "verb_phrase",
"head": "provided",
"features": {
"type": "features",
"tense": "past"
},
"post-modifiers": [
{
"type": "preposition_phrase",
"preposition": "in",
"noun": {
"type": "noun_phrase",
"head": "application",
"specifier": "##borrower-possessive"
}
}
]
}
]
},
{
"type": "noun_phrase",
"determiner": "a",
"head": "credit score",
"post-modifiers": [
{
"type": "verb_phrase",
"head": "produced",
"features": {
"type": "features",
"tense": "past"
},
"post-modifiers": [
{
"type": "preposition_phrase",
"preposition": "by",
"noun": {
"type": "@funcall",
"@object": "cra",
"@property": "prov:type",
"@function": "lookup-type",
"@arg1": "noun_phrase",
"@arg2": "cs",
"post-modifiers": [
{
"type": "adjective_phrase",
"head": {
"type": "@funcall",
"@object": "cra",
"@field": "id",
"@function": "noun+localname",
"@arg1": ""
},
"features": {
"markup_element": "span",
"markup_attributes": {
"type": "@funcall",
"@object": "cra",
"@function": "markup-for-id",
"@field": "id",
"@arg1": "provelement"
}
}
}
],
"features": {
"head_markup_element": "span",
"head_markup_attributes": {
"type": "@funcall",
"@object": "cra",
"@function": "markup-for-id",
"@field": "id",
"@arg1": "provelement"
}
}
}
}
]
}
]
}
]
},
"indirect_object": {
"type": "preposition_phrase",
"preposition": "into",
"noun": "account"
},
"complementiser": "that"
}
]
}
}
],
"features": {
"type": "features",
"tense": "past"
}
}
],
"properties": {}
},
"context": {
"ex": "http://example.org/#",
"app": "https://explain.openprovenance.org/creditscoring/",
"pl": "http://openprovenance.org/ns/plead#",
"cs": "http://openprovenance.org/ns/creditscoring#"
}
}