Codota Logo
DescendantEngine
Code IndexAdd Codota to your IDE (free)

How to use
DescendantEngine
in
slib.graph.algo.extraction.rvf

Best Java code snippets using slib.graph.algo.extraction.rvf.DescendantEngine (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: com.github.sharispe/slib-graph-algo

/**
 * @param graph
 */
public InstanceAccessor_RDF_TYPE(G graph) {
  this.graph = graph;
  this.descendantsEngine = new DescendantEngine(graph);
}
origin: com.github.sharispe/slib-graph-algo

/**
 * Compute the set of exclusive descendants of a class. Exclusive process:
 * the focused vertex will NOT be included in the set of descendants.
 *
 * @param v the vertex of interest
 * @return the exclusive set of descendants of the concept (empty set if
 * any).
 */
public Set<URI> getDescendantsExc(URI v) {
  return getRV(v);
}

origin: com.github.sharispe/slib-sml

/**
 *
 * @return @throws SLIB_Ex_Critic
 *
 */
public Map<URI, Integer> getnbPathLeadingToAllVertex() throws SLIB_Ex_Critic {
  if (cache.nbPathLeadingToAllVertices == null) {
    cache.nbPathLeadingToAllVertices = descGetter.computeNbPathLeadingToAllVertices();
  }
  return Collections.unmodifiableMap(cache.nbPathLeadingToAllVertices);
}
origin: com.github.sharispe/slib-graph-algo

DescendantEngine descEngine = new DescendantEngine(g);
Set<URI> descsInclusive = descEngine.getDescendantsInc(rootURI);
origin: com.github.sharispe/slib-sml

private void computeLeaves() {
  classesLeaves = new HashSet<URI>();
  WalkConstraint wc = descGetter.getWalkConstraint();
  for (URI v : classes) {
    if (graph.getV(v, wc).isEmpty()) {
      classesLeaves.add(v);
    }
  }
}
origin: com.github.sharispe/slib-graph-algo

/**
 * Compute the set of exclusive descendants of all vertices contained in the
 * graph. Exclusive process: the focused vertex will NOT be included in the
 * set of ancestors.
 *
 * @return a map containing the exclusive set of descendants of each vertex
 * concept (empty set if any).
 * @throws SLIB_Ex_Critic
 */
public Map<URI, Set<URI>> getAllDescendantsExc() throws SLIB_Ex_Critic {
  return getAllRV();
}

origin: sharispe/slib

  @Override
  public Set<URI> getInstances(URI v) {


    Set<URI> instances = new HashSet<URI>();

    instances.addAll(getDirectInstances(v));
    for (URI d : descendantsEngine.getDescendantsExc(v)) {
      instances.addAll(getDirectInstances(d));
    }
    return instances;
  }
}
origin: com.github.sharispe/slib-sml

/**
 * Compute the inclusive descendants for all classes.
 *
 * @throws SLIB_Ex_Critic
 */
private void computeAllclassesDescendants() throws SLIB_Ex_Critic {
  cache.descendantsInc = descGetter.getAllDescendantsInc();
}
origin: sharispe/slib

  /**
   * Compute the set of inclusive descendants of all vertices contained in the
   * graph. Exclusive process: the focused vertex will be included in the
   * set of ancestors.
   *
   * @return a map containing the inclusive set of descendants of each vertex
   * concept.
   * @throws SLIB_Ex_Critic
   */
  public Map<URI, Set<URI>> getAllDescendantsInc() throws SLIB_Ex_Critic {
    
    return getAllRVInc();
  }
}
origin: com.github.sharispe/slib-sml

/**
 * Compute for each class x the classes which are leaves which are subsumed
 * by x. Inclusive i.e. a leaf will contain itself in it set of reachable
 * leaves. The result is cached for fast access.
 *
 *
 * @return the subsumed leaves for each classes
 */
public synchronized Map<URI, Set<URI>> getReachableLeaves() {
  if (cache.reachableLeaves.isEmpty()) {
    Map<URI, Set<URI>> leaves = descGetter.getTerminalVertices();
    /* according to the documentation of the method used above, 
     if there are classes which are isolated (which do not establish rdfs:subClassOf in this case),
     the algorithm will not process them and them will not be associated to an entry in the returned map.
     We therefore add this classes in the result map.
     */
    for (URI c : classes) {
      if (!leaves.containsKey(c)) {
        Set<URI> s = new HashSet<URI>();
        s.add(c);
        leaves.put(c, s);
      }
    }
    cache.reachableLeaves = leaves;
  }
  return Collections.unmodifiableMap(cache.reachableLeaves);
}
origin: sharispe/slib

DescendantEngine descEngine = new DescendantEngine(g);
Set<URI> descsInclusive = descEngine.getDescendantsInc(rootURI);
origin: com.github.sharispe/slib-sml

/**
 * Give access to a view of the minimal depth of all classes. The result is
 * stored by the engine.
 *
 * @return a resultStack containing the maximal depths for all classes
 * @throws SLIB_Ex_Critic
 */
public Map<URI, Integer> getMinDepths() throws SLIB_Ex_Critic {
  if (cache.minDepths == null) {
    DepthAnalyserAG dephtAnalyser = new DepthAnalyserAG(graph, descGetter.getWalkConstraint());
    cache.minDepths = dephtAnalyser.getVMinDepths();
  }
  return Collections.unmodifiableMap(cache.minDepths);
}
origin: sharispe/slib

/**
 * Compute the set of exclusive descendants of all vertices contained in the
 * graph. Exclusive process: the focused vertex will NOT be included in the
 * set of ancestors.
 *
 * @return a map containing the exclusive set of descendants of each vertex
 * concept (empty set if any).
 * @throws SLIB_Ex_Critic
 */
public Map<URI, Set<URI>> getAllDescendantsExc() throws SLIB_Ex_Critic {
  return getAllRV();
}

origin: com.github.sharispe/slib-graph-algo

  @Override
  public Set<URI> getInstances(URI v) {


    Set<URI> instances = new HashSet<URI>();

    instances.addAll(getDirectInstances(v));
    for (URI d : descendantsEngine.getDescendantsExc(v)) {
      instances.addAll(getDirectInstances(d));
    }
    return instances;
  }
}
origin: com.github.sharispe/slib-graph-algo

DescendantEngine descEngine = new DescendantEngine(g);
Set<URI> descsInclusive = descEngine.getDescendantsInc(rootURI);
origin: sharispe/slib

/**
 * Compute the set of exclusive descendants of a class. Exclusive process:
 * the focused vertex will NOT be included in the set of descendants.
 *
 * @param v the vertex of interest
 * @return the exclusive set of descendants of the concept (empty set if
 * any).
 */
public Set<URI> getDescendantsExc(URI v) {
  return getRV(v);
}

origin: sharispe/slib

/**
 * @param graph
 */
public InstanceAccessor_RDF_TYPE(G graph) {
  this.graph = graph;
  this.descendantsEngine = new DescendantEngine(graph);
}
origin: com.github.sharispe/slib-sml

/**
 * Give access to a view of the maximal depth of all classes. The result is
 * stored by the engine.
 *
 * @return a resultStack containing the maximal depths for all classes
 * @throws SLIB_Ex_Critic
 */
public Map<URI, Integer> getMaxDepths() throws SLIB_Ex_Critic {
  if (cache.maxDepths == null) {
    DepthAnalyserAG dephtAnalyser = new DepthAnalyserAG(graph, descGetter.getWalkConstraint());
    cache.maxDepths = dephtAnalyser.getVMaxDepths();
  }
  return Collections.unmodifiableMap(cache.maxDepths);
}
origin: com.github.sharispe/slib-graph-algo

  /**
   * Compute the set of inclusive descendants of all vertices contained in the
   * graph. Exclusive process: the focused vertex will be included in the
   * set of ancestors.
   *
   * @return a map containing the inclusive set of descendants of each vertex
   * concept.
   * @throws SLIB_Ex_Critic
   */
  public Map<URI, Set<URI>> getAllDescendantsInc() throws SLIB_Ex_Critic {
    Map<URI, Set<URI>> allDescs = getAllRV();
    for (URI v : allDescs.keySet()) {
      allDescs.get(v).add(v);
    }
    return allDescs;
  }
}
origin: sharispe/slib

DescendantEngine descEngine = new DescendantEngine(g);
Set<URI> descsInclusive = descEngine.getDescendantsInc(rootURI);
slib.graph.algo.extraction.rvfDescendantEngine

Most used methods

  • <init>
  • getRV
  • computeNbPathLeadingToAllVertices
  • getAllDescendantsInc
    Compute the set of inclusive descendants of all vertices contained in the graph. Exclusive process:
  • getAllRV
  • getAllRVInc
  • getDescendantsExc
    Compute the set of exclusive descendants of a class. Exclusive process: the focused vertex will NOT
  • getDescendantsInc
    Compute the set of inclusive descendants of a class. The focused vertex will be included in the set
  • getTerminalVertices
  • getWalkConstraint

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now