I have created a template as following
declareUpdate();
var tde = require("/MarkLogic/tde.xqy");
var LocationView = xdmp.toJSON(
{
"template":{
"rows":[
{
"schemaName":"Location",
"viewName":"Location",
"columns":[
{
"name":"City",
"scalarType":"string",
"val":"City"
}
]
}
]
}
}
);
tde.templateInsert("Location.json", LocationView);
Now is it possible to create a semantic relation using this template so that if I do semantic query i can fetch the data related to this schema from marklogic? If yes then how?