public static SWRLRule rule(IRI uri, boolean anonymous, Set<? extends SWRLAtom> antecendent, Set<? extends SWRLAtom> consequent) { if( anonymous ) return OWL.factory.getSWRLRule( antecendent, consequent ); return OWL.factory.getSWRLRule( uri, antecendent, consequent ); }
public static SWRLRule rule(IRI uri, boolean anonymous, Set<? extends SWRLAtom> antecendent, Set<? extends SWRLAtom> consequent) { if( anonymous ) { return OWL.factory.getSWRLRule( antecendent, consequent ); } return OWL.factory.getSWRLRule(antecendent, consequent); }
public static SWRLRule rule(Set<? extends SWRLAtom> antecendent, Set<? extends SWRLAtom> consequent) { return OWL.factory.getSWRLRule( antecendent, consequent ); }
public static SWRLRule rule(IRI uri, Set<? extends SWRLAtom> antecendent, Set<? extends SWRLAtom> consequent) { return OWL.factory.getSWRLRule( uri, antecendent, consequent ); }
public static SWRLRule rule(String uri, boolean anonymous, Set<? extends SWRLAtom> antecendent, Set<? extends SWRLAtom> consequent) { if( anonymous ) return OWL.factory.getSWRLRule( antecendent, consequent ); return OWL.factory.getSWRLRule( IRI.create( uri ), antecendent, consequent ); }
public static SWRLRule rule(final IRI uri, final Set<? extends SWRLAtom> antecendent, final Set<? extends SWRLAtom> consequent) { if (null == uri) return OWL._factory.getSWRLRule(antecendent, consequent); return OWL._factory.getSWRLRule(antecendent, consequent, Collections.singleton(labelAnnotation(uri))); }
public static SWRLRule rule(final IRI uri, final boolean anonymous, final Set<? extends SWRLAtom> antecendent, final Set<? extends SWRLAtom> consequent) { if (anonymous) return OWL._factory.getSWRLRule(antecendent, consequent); return OWL._factory.getSWRLRule(antecendent, consequent, Collections.singleton(labelAnnotation(uri))); }
public static SWRLRule rule(final IRI uri, final boolean anonymous, final Set<? extends SWRLAtom> antecendent, final Set<? extends SWRLAtom> consequent) { if (anonymous) return OWL._factory.getSWRLRule(antecendent, consequent); return OWL._factory.getSWRLRule(antecendent, consequent, Collections.singleton(labelAnnotation(uri))); }
public static SWRLRule rule(final IRI uri, final Set<? extends SWRLAtom> antecendent, final Set<? extends SWRLAtom> consequent) { if (null == uri) return OWL._factory.getSWRLRule(antecendent, consequent); return OWL._factory.getSWRLRule(antecendent, consequent, Collections.singleton(labelAnnotation(uri))); }
public static SWRLRule rule(final String label, final boolean anonymous, final Set<? extends SWRLAtom> antecendent, final Set<? extends SWRLAtom> consequent) { if (anonymous) return OWL._factory.getSWRLRule(antecendent, consequent); return OWL._factory.getSWRLRule(antecendent, consequent, Collections.singleton(labelAnnotation(label))); }
protected SWRLRule getRule(IRI remappedNode, Set<OWLAnnotation> annotations, Set<SWRLAtom> consequent, Set<SWRLAtom> antecedent) { if (!consumer.isAnonymousNode(remappedNode)) { return consumer.getDataFactory().getSWRLRule(antecedent, consequent, annotations); } return consumer.getDataFactory().getSWRLRule(antecedent, consequent, annotations); } }
protected SWRLRule getRule(IRI remappedNode, Set<OWLAnnotation> annotations, Set<SWRLAtom> consequent, Set<SWRLAtom> antecedent) { if (!consumer.isAnonymousNode(remappedNode)) { return consumer.getDataFactory().getSWRLRule(antecedent, consequent, annotations); } return consumer.getDataFactory().getSWRLRule(antecedent, consequent, annotations); } }
protected SWRLRule getRule(IRI remappedNode, Set<OWLAnnotation> annotations, Set<SWRLAtom> consequent, Set<SWRLAtom> antecedent) { if (!consumer.isAnonymousNode(remappedNode)) { return consumer.getDataFactory().getSWRLRule(antecedent, consequent, annotations); } return consumer.getDataFactory().getSWRLRule(antecedent, consequent, annotations); } }
protected SWRLRule getRule(IRI remappedNode, Set<OWLAnnotation> annotations, Set<SWRLAtom> consequent, Set<SWRLAtom> antecedent) { if (!consumer.isAnonymousNode(remappedNode)) { return consumer.getDataFactory().getSWRLRule(antecedent, consequent, annotations); } return consumer.getDataFactory().getSWRLRule(antecedent, consequent, annotations); } }
@Override public void visit(SWRLRule rule) { obj = df .getSWRLRule(asList(rule.body().map(this::dup)), asList(rule.head().map(this::dup))); }
@Override public void visit(SWRLRule rule) { obj = df .getSWRLRule(asList(rule.body().map(this::dup)), asList(rule.head().map(this::dup))); }
@Override public void visit(SWRLRule rule) { obj = df .getSWRLRule(asList(rule.body().map(this::dup)), asList(rule.head().map(this::dup))); }
public SWRLRule getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return getOWLDataFactory().getSWRLRule(getBody(), getHead()); }
@Override public Object visit(SWRLRule axiom) { return visitAxiom(axiom, () -> df.getSWRLRule(t(axiom.body()), t(axiom.head()), t(axiom.annotations()))); }
@Override public Object visit(SWRLRule axiom) { return visitAxiom(axiom, () -> df.getSWRLRule(t(axiom.body()), t(axiom.head()), t(axiom.annotations()))); }