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

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

There is a newer version: 2.1.1
Show newest version

{

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

	"query": [

		"prefix ln ",

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




		"from der4 a prov:WasDerivedFrom",
		" join decision.id=der4.generatedEntity",
		"from credit a prov:Entity",
		" join der4.usedEntity=credit.id",

		"from wat1 a prov:WasAttributedTo",
		" join credit.id=wat1.entity",
		"from creditAgency a prov:Agent",
		" join wat1.agent = creditAgency.id",


		"where decision[prov:type]    >= 'ln:LoanDecision'",
		"  and application[prov:type] >= 'ln:LoanApplication'",

		"  and creditAgency[prov:type]      >= 'ln:CreditReferencingAgency'",

		"group by application, decision aggregate credit, creditAgency with Seq"

	],


	"sentence": {
		"type": "clause",
		"subject": {
			"type": "noun_phrase",
			"determiner": "the",
			"features": {"number": "plural"},
			"head": "source",
			"pre-modifiers": [{
				"type":"adjective_phrase",
				"head":"external data"}]
		},
		"object": {
			"type": "coordinated_phrase",
			"conjunction": "and",
			"@iterator": {
				"type": "@iterator",
				"@variable": "credit,creditAgency",
				"@clause": "coordinates",
				"@element": {
					"type": "@funcall",
					"@object": "credit",
					"@property":  "prov:type",
					"@function": "lookup-type",
					"@arg1": "noun_phrase",
					"@arg2": "ln",
					"post-modifiers":
					[
						{
							"type":"noun_phrase",
							"head": {
								"type": "@funcall",
								"@object": "credit",
								"@field":  "id",
								"@function": "noun+localname",
								"@arg1": ""}},
						{
							"type":"adjective_phrase",
							"head":"provided",
							"post-modifiers": [
								{
									"type":"preposition_phrase",
									"preposition": "by",
									"noun": {
										"type": "@funcall",
										"@object": "creditAgency",
										"@property":  "prov:type",
										"@function": "lookup-type",
										"@arg1": "noun_phrase",
										"@arg2": "ln",
										"determiner": "the"}},
								{
									"type":"noun_phrase",
									"head": {
										"type": "@funcall",
										"@object": "creditAgency",
										"@field":  "id",
										"@function": "noun+localname",
										"@arg1": ""}},
								{
									"type": "preposition_phrase",
									"preposition": "at",
									"noun": {
										"type": "@funcall",
										"@object": "credit",
										"@property": "ln:created_at",
										"@optional": "true",
										"@function": "timestring"}}
							]
						}
					]}}
		},

		"verb": "is",

		"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/#"
	}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy