1 10 package com.hp.hpl.jena.reasoner.rdfsReasoner1; 11 12 import com.hp.hpl.jena.reasoner.*; 13 14 21 public class AssertFRule extends BaseFRule { 22 23 26 public AssertFRule(String spec) { 27 super(spec); 28 } 29 30 34 void fire(TriplePattern[] body, RDFSInfGraph reasoner) { 35 for (int i = 0; i < body.length; i++) { 36 reasoner.assertTriple(body[i].asTriple()); 37 } 38 } 39 40 } 41 42 71 | Popular Tags |