It is hard to follow your image and understand what it is that you are
trying to achieve.
On the face of it you have two forward rules, some data (which we can't
see) and an inference model. I seems like you want to see the results of
the forward inference, without seeing the original data.
If so then use the deductions model. For example:
StmtIterator i = myInf.getDeductionsModel().listStatements();
while (i.hasNext()) {
System.out.println(" - " + i.next());
}
or:
Model deductions = myInf.getDeductionsModel();
deductions.setNsPrefix("ns", "whatever");
deductions.write(System.out, "Turtle");
[I would put the right URI in place of "whatever" but you only posted
an image so we can't cut/paste from it.]
If that doesn't show anything then your inference hasn't worked, perhaps
because the data or namespaces don't match. In which case try
simplifying both your rules and data until you can get something minimal
that works. If that still doesn't work then ask again using that minimal
example but please just put text in your email, not an image.
Dave
On 22/12/15 11:06, [email protected] wrote:
I want to know how to use the following rules and programs to get
Result A:
rules
result A
------------------------------------------------------------------------
顺颂商祺!
邢高生
*北京交通大学*
*计算机与信息技术学院
网络科学与智能系统研究所 <http://insis.bjtu.edu.cn/>*
电话:18600698021
地址:北京市海淀区上园村3号北京交通大学
邮编:100044