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

nlg.templates.baking.baking-generation2.json Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version

{

    "select": {"gen": {"@type": "prov:WasGeneratedBy"},
	       "act": {"@type": "prov:Activity"},
	       "waw": {"@type": "prov:WasAssociatedWith"}},



    "query": [
	"prefix ex ",
	"select * from  gen a prov:WasGeneratedBy",
	"from act a prov:Activity",
	"join gen.activity = act.id",
	"from waw a prov:WasAssociatedWith",
	"join act.id = waw.activity",
	"where act[prov:type] >= 'ex:Baking' "],

    

    "sentence": {
	"type": "clause",
	"object":  {"type": "noun_phrase",
		    "head": {"type": "@funcall",
			     "@object": "gen",
			     "@field":  "entity",
			     "@function": "localname"},
		    "features": {"number": {"type": "@funcall",
					    "@object": "gen",
					    "@field": "entity",
					    "@function": "pluralp"}}},
	"verb": "bake",
	"modifiers": [{"type": "preposition_phrase",
		       "preposition": "by",
		       "noun": {"type": "@funcall",
				"@object": "waw",
				"@field": "agent",
				"@optional": "true",				
				"@function": "localname"}},
		      {"type": "preposition_phrase",
		       "preposition": "at",
		       "noun": {"type": "@funcall",
				"@object": "gen",
				"@field": "time",
				"@optional": "true",				
				"@function": "timestring"}}],	
	"features" : {"tense": "past",
		      "passive": "true"}

    },

    "context": {
	"ex": "http://example.org/#"
    }
    
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy