Tabnine Logo
ValidatorDAG.containsTaxonomicDagWithUniqueRoot
Code IndexAdd Tabnine to your IDE (free)

How to use
containsTaxonomicDagWithUniqueRoot
method
in
slib.graph.algo.validator.dag.ValidatorDAG

Best Java code snippets using slib.graph.algo.validator.dag.ValidatorDAG.containsTaxonomicDagWithUniqueRoot (Showing top 8 results out of 315)

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

  /**
   * Root the underlying taxonomic DAG of the specified graph.
   *
   * @param g 
   * @param rootUri 
   * @return the URI of the root
   * @throws SLIB_Ex_Critic 
   */
  public static URI rootUnderlyingTaxonomicDAG(G g, URI rootUri) throws SLIB_Ex_Critic {

    Logger logger = LoggerFactory.getLogger(RooterDAG.class);
    logger.info("Rooting taxonomic Graph using " + rootUri);
    ValidatorDAG validator = new ValidatorDAG();

    if (!validator.containsTaxonomicDagWithUniqueRoot(g)) {
      return rootUnderlyingDAG(g, rootUri, new WalkConstraintGeneric(RDFS.SUBCLASSOF,Direction.OUT),true);
    } else {
      return validator.getUniqueTaxonomicRoot(g);
    }
  }
}
origin: com.github.sharispe/slib-graph-algo

  /**
   * Root the underlying taxonomic DAG of the specified graph.
   *
   * @param g 
   * @param rootUri 
   * @return the URI of the root
   * @throws SLIB_Ex_Critic 
   */
  public static URI rootUnderlyingTaxonomicDAG(G g, URI rootUri) throws SLIB_Ex_Critic {

    Logger logger = LoggerFactory.getLogger(RooterDAG.class);
    logger.info("Rooting taxonomic Graph using " + rootUri);
    ValidatorDAG validator = new ValidatorDAG();

    if (!validator.containsTaxonomicDagWithUniqueRoot(g)) {
      return rootUnderlyingDAG(g, rootUri, new WalkConstraintGeneric(RDFS.SUBCLASSOF,Direction.OUT),true);
    } else {
      return validator.getUniqueTaxonomicRoot(g);
    }
  }
}
origin: sharispe/slib

  /**
   * Root the underlying taxonomic DAG of the specified graph.
   *
   * @param g 
   * @param rootUri 
   * @return the URI of the root
   * @throws SLIB_Ex_Critic 
   */
  public static URI rootUnderlyingTaxonomicDAG(G g, URI rootUri) throws SLIB_Ex_Critic {

    Logger logger = LoggerFactory.getLogger(RooterDAG.class);
    logger.info("Rooting taxonomic Graph using " + rootUri);
    ValidatorDAG validator = new ValidatorDAG();

    if (!validator.containsTaxonomicDagWithUniqueRoot(g)) {
      return rootUnderlyingDAG(g, rootUri, new WalkConstraintGeneric(RDFS.SUBCLASSOF,Direction.OUT),true);
    } else {
      return validator.getUniqueTaxonomicRoot(g);
    }
  }
}
origin: sharispe/slib

  /**
   * Root the underlying taxonomic DAG of the specified graph.
   *
   * @param g 
   * @param rootUri 
   * @return the URI of the root
   * @throws SLIB_Ex_Critic 
   */
  public static URI rootUnderlyingTaxonomicDAG(G g, URI rootUri) throws SLIB_Ex_Critic {

    Logger logger = LoggerFactory.getLogger(RooterDAG.class);
    logger.info("Rooting taxonomic Graph using " + rootUri);
    ValidatorDAG validator = new ValidatorDAG();

    if (!validator.containsTaxonomicDagWithUniqueRoot(g)) {
      return rootUnderlyingDAG(g, rootUri, new WalkConstraintGeneric(RDFS.SUBCLASSOF,Direction.OUT),true);
    } else {
      return validator.getUniqueTaxonomicRoot(g);
    }
  }
}
origin: sharispe/slib

logger.debug(" Contains Rooted taxonomic DAG " + validator.containsTaxonomicDagWithUniqueRoot(g));
origin: com.github.sharispe/slib-graph-algo

logger.debug(" Contains Rooted taxonomic DAG " + validator.containsTaxonomicDagWithUniqueRoot(g));
origin: com.github.sharispe/slib-graph-algo

logger.debug(" Contains Rooted taxonomic DAG " + validator.containsTaxonomicDagWithUniqueRoot(g));
origin: sharispe/slib

logger.debug(" Contains Rooted taxonomic DAG " + validator.containsTaxonomicDagWithUniqueRoot(g));
slib.graph.algo.validator.dagValidatorDAGcontainsTaxonomicDagWithUniqueRoot

Javadoc

Check if the given graph contains a underlying taxonomic graph with a unique root.

Popular methods of ValidatorDAG

  • <init>
  • getDAGRoots
    Root vertices (terminal vertices) are those of type CLASS which respect the following restrictions :
  • getUniqueTaxonomicRoot
    Return the unique vertex rooting the underlying taxonomic graph. Do not check if the taxonomic graph
  • containsTaxonomicDag
  • getTaxonomicRoots
    Return the vertices which root the taxonomic graph.
  • isDag
    Check if the underlying graph defined by given WalkConstraint is a DAG. shortcut of ValidatorDAG#isD
  • isUniqueRootedDagRoot
    Do not check if the graph is a DAG
  • performDFS

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Reference (javax.naming)
  • JOptionPane (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now