All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nlg.templates.plead.cs.plead.cs-4b.json Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
{
  "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": {
          "type": "noun_phrase",
          "determiner": "the",
          "head": "system",
          "post-modifiers": [
            {
              "type": "adjective_phrase",
              "head": "also"
            }
          ]
        },
        "verb": {
          "type": "verb_phrase",
          "head": "take",
          "post-modifiers": [
            {
              "type": "preposition_phrase",
              "preposition": "into",
              "noun": "account"
            }
          ]
        },
        "object": {
          "type": "noun_phrase",
          "head": "information",
          "post-modifiers": [
            {
              "type": "preposition_phrase",
              "preposition": "in",
              "noun": {
                "type": "@funcall",
                "@object": "credit_history",
                "@property": "prov:type",
                "@function": "lookup-type",
                "@arg1": "noun_phrase",
                "@arg2": "cs",
                "post-modifiers": [
                  {
                    "type": "adjective_phrase",
                    "head": {
                      "type": "@funcall",
                      "@object": "credit_history",
                      "@field": "id",
                      "@function": "noun+localname",
                      "@arg1": ""
                    },
                    "features": {
                      "markup_element": "span",
                      "markup_attributes": {
                        "type": "@funcall",
                        "@object": "credit_history",
                        "@function": "markup-for-id",
                        "@field": "id",
                        "@arg1": "provelement"
                      }
                    }
                  },
                  {
                    "type": "verb_phrase",
                    "head": "provide",
                    "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"
                            }
                          }
                        }
                      }
                    ]
                  }
                ],
                "features": {
                  "head_markup_element": "span",
                  "head_markup_attributes": {
                    "type": "@funcall",
                    "@object": "credit_history",
                    "@function": "markup-for-id",
                    "@field": "id",
                    "@arg1": "provelement"
                  }
                }
              }
            }
          ],
          "modifiers": [
            {
              "type": "preposition_phrase",
              "preposition": "about",
              "noun": "##borrower"
            }
          ]
        },
        "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#"
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy