@Override public Set<ATermAppl> getObjects(final KnowledgeBase kb, final ATermAppl ind) { return kb.getAllSames(ind); } });
@Override public Set<ATermAppl> getSubjects(final KnowledgeBase kb, final ATermAppl ind) { return kb.getAllSames(ind); } });
@Override public Set<ATermAppl> getObjects(final KnowledgeBase kb, final ATermAppl ind) { return kb.getAllSames(ind); } });
@Override public Set<ATermAppl> getSubjects(final KnowledgeBase kb, final ATermAppl ind) { return kb.getAllSames(ind); } });
@Override public Set<ATermAppl> getObjects(final KnowledgeBase kb, final ATermAppl ind) { return kb.getAllSames(ind); } });
@Override public Set<ATermAppl> getSubjects(final KnowledgeBase kb, final ATermAppl ind) { return kb.getAllSames(ind); } });
@Override public Iterator<ATermAppl> getObjects(final KnowledgeBase kb, final ATermAppl subj) { return kb.getAllSames(subj).iterator(); }
@Override public Iterator<ATermAppl> getObjects(final KnowledgeBase kb, final ATermAppl subj) { return kb.getAllSames(subj).iterator(); }
@Override public Iterator<ATermAppl> getObjects(final KnowledgeBase kb, final ATermAppl subj) { return kb.getAllSames(subj).iterator(); }
private NodeSet<OWLNamedIndividual> getIndividualNodeSetBySameAs(final Collection<ATermAppl> individuals) { final Set<Node<OWLNamedIndividual>> instances = new HashSet<>(); final Set<ATermAppl> seen = new HashSet<>(); for (final ATermAppl ind : individuals) if (!seen.contains(ind)) { final Set<ATermAppl> equiv = _kb.getAllSames(ind); instances.add(toIndividualNode(equiv)); seen.addAll(equiv); } return new OWLNamedIndividualNodeSet(instances); }
private NodeSet<OWLNamedIndividual> getIndividualNodeSetBySameAs(final Collection<ATermAppl> individuals) { final Set<Node<OWLNamedIndividual>> instances = new HashSet<>(); final Set<ATermAppl> seen = new HashSet<>(); for (final ATermAppl ind : individuals) if (!seen.contains(ind)) { final Set<ATermAppl> equiv = _kb.getAllSames(ind); instances.add(toIndividualNode(equiv)); seen.addAll(equiv); } return new OWLNamedIndividualNodeSet(instances); }
private NodeSet<OWLNamedIndividual> getIndividualNodeSetBySameAs(final Collection<ATermAppl> individuals) { final Set<Node<OWLNamedIndividual>> instances = new HashSet<>(); final Set<ATermAppl> seen = new HashSet<>(); for (final ATermAppl ind : individuals) if (!seen.contains(ind)) { final Set<ATermAppl> equiv = _kb.getAllSames(ind); instances.add(toIndividualNode(equiv)); seen.addAll(equiv); } return new OWLNamedIndividualNodeSet(instances); }
private NodeSet<OWLNamedIndividual> getIndividualNodeSetByName(final Collection<ATermAppl> individuals) { final Set<Node<OWLNamedIndividual>> instances = new HashSet<>(); for (final ATermAppl ind : individuals) for (final ATermAppl equiv : _kb.getAllSames(ind)) instances.add(toIndividualNode(equiv)); return new OWLNamedIndividualNodeSet(instances); }
private NodeSet<OWLNamedIndividual> getIndividualNodeSetByName(final Collection<ATermAppl> individuals) { final Set<Node<OWLNamedIndividual>> instances = new HashSet<>(); for (final ATermAppl ind : individuals) for (final ATermAppl equiv : _kb.getAllSames(ind)) instances.add(toIndividualNode(equiv)); return new OWLNamedIndividualNodeSet(instances); }
private NodeSet<OWLNamedIndividual> getIndividualNodeSetByName(final Collection<ATermAppl> individuals) { final Set<Node<OWLNamedIndividual>> instances = new HashSet<>(); for (final ATermAppl ind : individuals) for (final ATermAppl equiv : _kb.getAllSames(ind)) instances.add(toIndividualNode(equiv)); return new OWLNamedIndividualNodeSet(instances); }
@Override public Node<OWLNamedIndividual> getSameIndividuals(final OWLNamedIndividual ind) throws InconsistentOntologyException, FreshEntitiesException, ReasonerInterruptedException, TimeOutException { refreshCheck(); try { return toIndividualNode(_kb.getAllSames(term(ind))); } catch (final PelletRuntimeException e) { throw convert(e); } }
@Override public Node<OWLNamedIndividual> getSameIndividuals(final OWLNamedIndividual ind) throws InconsistentOntologyException, FreshEntitiesException, ReasonerInterruptedException, TimeOutException { refreshCheck(); try { return toIndividualNode(_kb.getAllSames(term(ind))); } catch (final PelletRuntimeException e) { throw convert(e); } }
@Override public Node<OWLNamedIndividual> getSameIndividuals(final OWLNamedIndividual ind) throws InconsistentOntologyException, FreshEntitiesException, ReasonerInterruptedException, TimeOutException { refreshCheck(); try { return toIndividualNode(_kb.getAllSames(term(ind))); } catch (final PelletRuntimeException e) { throw convert(e); } }
dependents = Collections.singleton(known); else dependents = _kb.getAllSames(known);
dependents = Collections.singleton(known); else dependents = _kb.getAllSames(known);