@Override public void visit(SWRLLiteralArgument cons) { cons.getLiteral().accept( this ); swrlDObject = new AtomDConstant( term ); }
public void visit(SWRLLiteralArgument cons) { cons.getLiteral().accept( this ); swrlDObject = new AtomDConstant( term ); }
public Literal set( AtomDVariable key, ATermAppl value ) { AtomDConstant constant = new AtomDConstant( value ); DataValueCollector collector = new DataValueCollector(); constant.accept( collector ); return set( key, collector.getValue() ); }
public Literal set( AtomDVariable key, ATermAppl value ) { AtomDConstant constant = new AtomDConstant( value ); DataValueCollector collector = new DataValueCollector(); constant.accept( collector ); return set( key, collector.getValue() ); }
private AtomDObject createRuleDObject(Node node) { if( !node.isLiteral() ) { ATermAppl name = node2term( node ); if( !ATermUtils.isPrimitive( name ) ) { addUnsupportedFeature( "Cannot create rule data variable out of " + node ); return null; } return new AtomDVariable( name.toString() ); } else { return new AtomDConstant( node2term( node ) ); } }
if( builtin != null ) { ATermAppl value = (ATermAppl) facetRestriction.getArgument( 1 ); atoms.add( new BuiltInAtom( builtin, var, new AtomDConstant( value ) ) );
if( builtin != null ) { ATermAppl value = (ATermAppl) facetRestriction.getArgument( 1 ); atoms.add( new BuiltInAtom( builtin, var, new AtomDConstant( value ) ) );
if( builtin != null ) { ATermAppl value = (ATermAppl) facetRestriction.getArgument( 1 ); atoms.add( new BuiltInAtom( builtin, var, new AtomDConstant( value ) ) );
private AtomDObject convertAtomDObject(ATermAppl t) { if( ATermUtils.isVar( t ) ) return new AtomDVariable( ((ATermAppl) t.getArgument( 0 )).getName() ); else if( ATermUtils.isLiteral( t ) ) return new AtomDConstant( t ); throw new InternalReasonerException( "Unrecognized term: " + t ); }
if( builtin != null ) { ATermAppl value = (ATermAppl) facetRestriction.getArgument( 1 ); atoms.add( new BuiltInAtom( builtin, var, new AtomDConstant( value ) ) );
private AtomDObject convertAtomDObject(ATermAppl t) { if( ATermUtils.isVar( t ) ) return new AtomDVariable( ((ATermAppl) t.getArgument( 0 )).getName() ); else if( ATermUtils.isLiteral( t ) ) return new AtomDConstant( t ); throw new InternalReasonerException( "Unrecognized term: " + t ); }
ATermAppl nominal = (ATermAppl) filler.getArgument( 0 ); if( kb.isDatatypeProperty( p ) ) { AtomDConstant arg = new AtomDConstant( nominal ); RuleAtom atom = new DatavaluedPropertyAtom( p, var, arg ); atoms.add(atom);
ATermAppl nominal = (ATermAppl) filler.getArgument( 0 ); if( kb.isDatatypeProperty( p ) ) { AtomDConstant arg = new AtomDConstant( nominal ); RuleAtom atom = new DatavaluedPropertyAtom( p, var, arg ); atoms.add(atom);
ATermAppl nominal = (ATermAppl) filler.getArgument( 0 ); if( kb.isDatatypeProperty( p ) ) { AtomDConstant arg = new AtomDConstant( nominal ); RuleAtom atom = new DatavaluedPropertyAtom( p, var, arg ); atoms.add(atom);
ATermAppl nominal = (ATermAppl) filler.getArgument( 0 ); if( kb.isDatatypeProperty( p ) ) { AtomDConstant arg = new AtomDConstant( nominal ); RuleAtom atom = new DatavaluedPropertyAtom( p, var, arg ); atoms.add(atom);