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

nlg.templates.loan.counterfactual1a.json Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version

{

	"select": {"decision":       {"@type": "prov:Entity"}},

	"query": [

		"prefix ln ",
		"prefix sk ",
		"prefix pl ",
		"prefix pd ",


		"select * from application a prov:Entity",
		"from wdf a prov:WasDerivedFrom",
		" join application.id=wdf.usedEntity",
		"from cfapp a prov:Entity",
		" join wdf.generatedEntity=cfapp.id",
		"from wdf2 a prov:WasDerivedFrom",
		" join cfapp.id=wdf2.usedEntity",
		"from decision a prov:Entity",
		" join wdf2.generatedEntity=decision.id",

		"where application[prov:type] >= 'ln:LoanApplication'",
		"  and cfapp[prov:type]       >= 'ln:LoanApplication'",
		"  and cfapp[prov:type]       >= 'pl:CounterFactualInput'",
		"  and decision[prov:type]    >= 'ln:HumanDecision'",
		"   or decision[prov:type]    >= 'ln:AutomatedDecision'  ",
		"  and decision[prov:type]    >= 'pl:CounterFactualOutput'   ",
		"  and wdf[prov:type]         >= 'pl:CounterFactualDerivation'",

		"group by application aggregate wdf,cfapp,decision with Seq"



	],



	"sentence": {
		"type": "clause",

		"subject": {
			"type": "noun_phrase",
			"head": "we"},

		"verb": "simulate alternative loan applications for all possible values ",


		"complements": [

			{
				"type": "preposition_phrase",
				"preposition": "of",
				"noun": {
					"type": "coordinated_phrase",
					"conjunction": "and",
					"@iterator": {
						"type": "@iterator",
						"@until": "1",
						"@variable": "wdf",
						"@clause": "coordinates",
						"@element": {
							"type": "noun_phrase",
							"head": {
								"type": "@funcall",
								"@object": "wdf",
								"@property":  "pl:cf_field",
								"@function": "identity"}
						}
					}
				}

			},

			{
				"type": "noun_phrase",
				"head": ", i.e., "
			},

			{
				"type": "coordinated_phrase",
				"conjunction": "and",
				"@iterator": {
					"type": "@iterator",
					"@variable": "wdf",
					"@clause": "coordinates",
					"@element": {
						"type": "noun_phrase",
						"head": {
							"type": "@funcall",
							"@object": "wdf",
							"@property":  "pl:cf_value",
							"@function": "identity"
						}
					}
				}
			}

		],

		"features" : {"tense": "past"}


	},

	"context": {
		"ex": "http://example.org/#",
		"foaf": "http://xmlns.com/foaf/0.1/",
		"ln": "https://plead-project.org/ns/loan#",
		"pd": "https://pandas.pydata.org/#",
		"pl": "https://plead-project.org/ns/plead#"

	}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy