Package org.mindswap.pellet

Examples of org.mindswap.pellet.DependencySet


    /**
     * {@inheritDoc}
     */
    @Override
      public DependencySet getDepends(boolean doExplanation) {
      DependencySet ds = DependencySet.INDEPENDENT;
     
      for (ListToken t = this; t != null; t = t.next) {         
              ds = ds.union(t.wme.getDepends(), doExplanation );
      }   
     
      return ds;
    }
View Full Code Here


    /**
     * {@inheritDoc}
     */
    @Override
      public DependencySet getDepends(boolean doExplanation) {
      DependencySet ds = DependencySet.INDEPENDENT;
     
      for (WME wme : wmes) {         
              ds = ds.union(wme.getDepends(), doExplanation );
      }   
     
      return ds;
    }
View Full Code Here

   
    if (!(arg instanceof Individual)) {
      throw new IllegalArgumentException();
    }
   
    DependencySet depends = arg.getDepends(predicate);
   
      return (depends == null)
        ? IteratorUtils.<WME>emptyIterator()
        : IteratorUtils.<WME>singletonIterator(WME.createType((Individual) arg, predicate, depends));
View Full Code Here

  public Iterator<WME> getMatches() {
    Iterator<Individual> inds = (name == null) ? abox.getIndIterator() : IteratorUtils.singletonIterator(initNode());
    return new NestedIterator<Individual, WME>(inds) {
      @Override
            public Iterator<WME> getInnerIterator(Individual ind) {
        DependencySet depends = ind.getDepends(predicate);
       
          return (depends == null)
            ? IteratorUtils.<WME>emptyIterator()
            : IteratorUtils.<WME>singletonIterator(WME.createType(ind, predicate, depends));
            }
View Full Code Here

TOP

Related Classes of org.mindswap.pellet.DependencySet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.