@Override public void visit(SWRLIndividualArgument iobj) { iobj.getIndividual().accept( this ); swrlIObject = new AtomIConstant( term ); }
public void visit(SWRLIndividualArgument iobj) { iobj.getIndividual().accept( this ); swrlIObject = new AtomIConstant( term ); }
private AtomIObject convertAtomIObject(ATermAppl t) { if( ATermUtils.isVar( t ) ) return new AtomIVariable( ((ATermAppl) t.getArgument( 0 )).getName() ); else if( kb.isIndividual( t ) ) return new AtomIConstant( t ); else if( ATermUtils.isAnon( t ) ) return new AtomIConstant( t ); throw new InternalReasonerException( "Unrecognized term: " + t ); }
private AtomIObject convertAtomIObject(ATermAppl t) { if( ATermUtils.isVar( t ) ) return new AtomIVariable( ((ATermAppl) t.getArgument( 0 )).getName() ); else if( kb.isIndividual( t ) ) return new AtomIConstant( t ); else if( ATermUtils.isAnon( t ) ) return new AtomIConstant( t ); throw new InternalReasonerException( "Unrecognized term: " + t ); }
public Individual set( AtomIVariable key, ATermAppl value ) { AtomIConstant constant = new AtomIConstant( value ); IndividualValueCollector collector = new IndividualValueCollector(); constant.accept( collector ); return set( key, collector.getValue() ); }
public Individual set( AtomIVariable key, ATermAppl value ) { AtomIConstant constant = new AtomIConstant( value ); IndividualValueCollector collector = new IndividualValueCollector(); constant.accept( collector ); return set( key, collector.getValue() ); }
AtomIConstant arg = new AtomIConstant( nominal ); RuleAtom atom = new IndividualPropertyAtom( p, var, arg ); atoms.add(atom);
AtomIConstant arg = new AtomIConstant( nominal ); RuleAtom atom = new IndividualPropertyAtom( p, var, arg ); atoms.add(atom);
AtomIConstant arg = new AtomIConstant( nominal ); RuleAtom atom = new IndividualPropertyAtom( p, var, arg ); atoms.add(atom);
AtomIConstant arg = new AtomIConstant( nominal ); RuleAtom atom = new IndividualPropertyAtom( p, var, arg ); atoms.add(atom);
private AtomIObject createRuleIObject(Node node) { if( hasObject( node, RDF.type.asNode(), SWRL.Variable.asNode() ) ) { return new AtomIVariable( node.getURI() ); } else { ATermAppl term = node2term( node ); if( defineIndividual( term ) ) { return new AtomIConstant( node2term( node ) ); } else { addUnsupportedFeature( "Cannot create rule individual object for node " + node ); return null; } } }