问题
I am new to mallet and currently working on Sparql query optimization using template based model. For this i wanted to create a template model from RDf graph. The three templates which i want to create is class, attribute and relation. i have come across this tool called mallet which can help me to create a template. but still i am not getting an idea how can i do so using ACRF.Template in grmm.Can someone please give me guidelines about the template creation using mallet.

My Use case: 1) I want a Bayesian Network model using Template(Predefine Class is available in Mallet). 2) fire a sparql query on that Model.
Can any one help me reach my goal?
来源:https://stackoverflow.com/questions/22113228/how-can-we-create-custom-template-using-grmm-inbuilt-class-in-mallet