@Override @Nullable public SWRLDArgument translate(IRI firstObject) { return dataFactory.getSWRLVariable(firstObject); }
@Override @Nullable public SWRLDArgument translate(IRI firstObject) { return dataFactory.getSWRLVariable(firstObject); }
public SWRLVariable getOWLObject() throws OWLXMLParserException { if(iri != null) { return getOWLDataFactory().getSWRLVariable(iri); } return null; } }
protected SWRLVariable getFreshVariable() { SWRLVariable variable=m_factory.getSWRLVariable(IRI.create("internal:swrl#", "v"+m_newVariableIndex)); m_newVariableIndex++; return variable; } }
protected SWRLVariable getFreshVariable() { SWRLVariable variable=m_factory.getSWRLVariable(IRI.create("internal:swrl#"+m_newVariableIndex)); m_newVariableIndex++; return variable; } }
private SWRLVariable parseDVariable() { IRI var = parseVariable(); return df.getSWRLVariable(var); }
public void visit(SWRLVariable variable) { variable.getIRI().accept(this); IRI iri = (IRI) obj; obj = dataFactory.getSWRLVariable(iri); }
@Override public void visit(SWRLVariable node) { obj = df.getSWRLVariable(dup(node.getIRI())); }
@Override public SWRLVariable visit(SWRLVariable node) { return df.getSWRLVariable(t(node.getIRI())); }
@SuppressWarnings("unchecked") @Override public <T> T adapt(RuleAtom ruleAtom) throws RuleAtomCallExeption { org.apache.stanbol.rules.manager.atoms.VariableAtom tmp = (org.apache.stanbol.rules.manager.atoms.VariableAtom) ruleAtom; URI uri = tmp.getURI(); return (T) new ArgumentSWRLAtom((SWRLIArgument) OWLManager.getOWLDataFactory().getSWRLVariable( IRI.create(uri.toString())), uri.toString()); }
@SuppressWarnings("unchecked") @Override public <T> T adapt(RuleAtom ruleAtom) throws RuleAtomCallExeption { org.apache.stanbol.rules.manager.atoms.StringVariableAtom tmp = (org.apache.stanbol.rules.manager.atoms.StringVariableAtom) ruleAtom; URI uri = tmp.getURI(); return (T) new ArgumentSWRLAtom((SWRLDArgument) OWLManager.getOWLDataFactory().getSWRLVariable( IRI.create(uri.toString())), uri.toString()); }
@Override public Object visit(SWRLVariable node) { return visit(node, () -> df.getSWRLVariable(t(node.getIRI()))); }
private SWRLIArgument parseToAtomIObject(final ATermAppl t) { if (ATermUtils.isVar(t)) return _factory.getSWRLVariable(IRI.create(((ATermAppl) t.getArgument(0)).getName())); if (_kb.isIndividual(t)) return _factory.getSWRLIndividualArgument(_conceptConverter.convertIndividual(t)); throw new InternalReasonerException("Unrecognized term: " + t); }
private SWRLDArgument parseToAtomDObject(ATermAppl t) { if( ATermUtils.isVar( t ) ) { return factory.getSWRLVariable( IRI.create( ((ATermAppl) t.getArgument( 0 )).getName() ) ); } else if( ATermUtils.isLiteral( t ) ) { return factory.getSWRLLiteralArgument( (OWLLiteral) conceptConverter.convert( t ) ); } throw new InternalReasonerException( "Unrecognized term: " + t ); } }
private SWRLDArgument parseToAtomDObject(final ATermAppl t) { if (ATermUtils.isVar(t)) return _factory.getSWRLVariable(IRI.create(((ATermAppl) t.getArgument(0)).getName())); else if (ATermUtils.isLiteral(t)) return _factory.getSWRLLiteralArgument((OWLLiteral) _conceptConverter.convert(t)); throw new InternalReasonerException("Unrecognized term: " + t); } }
private SWRLIArgument parseToAtomIObject(ATermAppl t) { if( ATermUtils.isVar( t ) ) { return factory.getSWRLVariable( IRI.create( ((ATermAppl) t.getArgument( 0 )).getName() ) ); } if( kb.isIndividual( t ) ) { return factory.getSWRLIndividualArgument(conceptConverter.convertIndividual(t)); } throw new InternalReasonerException( "Unrecognized term: " + t ); }
private SWRLDArgument parseToAtomDObject(ATermAppl t) { if( ATermUtils.isVar( t ) ) { return factory.getSWRLVariable( IRI.create( ((ATermAppl) t.getArgument( 0 )).getName() ) ); } else if( ATermUtils.isLiteral( t ) ) { return factory.getSWRLLiteralArgument( (OWLLiteral) conceptConverter.convert( t ) ); } throw new InternalReasonerException( "Unrecognized term: " + t ); } }
private SWRLIArgument parseToAtomIObject(ATermAppl t) { if( ATermUtils.isVar( t ) ) { return factory.getSWRLVariable( IRI.create( ((ATermAppl) t.getArgument( 0 )).getName() ) ); } if( kb.isIndividual( t ) ) { return factory.getSWRLIndividualArgument(conceptConverter.convertIndividual(t)); } throw new InternalReasonerException( "Unrecognized term: " + t ); }
private SWRLIArgument parseToAtomIObject(final ATermAppl t) { if (ATermUtils.isVar(t)) return _factory.getSWRLVariable(IRI.create(((ATermAppl) t.getArgument(0)).getName())); if (_kb.isIndividual(t)) return _factory.getSWRLIndividualArgument(_conceptConverter.convertIndividual(t)); throw new InternalReasonerException("Unrecognized term: " + t); }
private SWRLDArgument parseToAtomDObject(final ATermAppl t) { if (ATermUtils.isVar(t)) return _factory.getSWRLVariable(IRI.create(((ATermAppl) t.getArgument(0)).getName())); else if (ATermUtils.isLiteral(t)) return _factory.getSWRLLiteralArgument((OWLLiteral) _conceptConverter.convert(t)); throw new InternalReasonerException("Unrecognized term: " + t); } }