Package org.wymiwyg.rdf.molecules.model.modelref

Examples of org.wymiwyg.rdf.molecules.model.modelref.ModelReferencingDecomposition


   */
  private void addData(MoleculeStore moleculeStore, String modelName) {
    Model model = ModelFactory.createDefaultModel();
    model.read(StoreTest.class.getResource(modelName).toString());
    Graph graph = JenaUtil.getGraphFromModel(model , true);
    ModelReferencingDecomposition modelReferencingDecomposition = new ModelReferencingDecompositionImpl(graph);
    ReferenceGroundedDecomposition dec = new ReferenceGroundedDecompositionImpl(modelReferencingDecomposition);
    for (FunctionallyGroundedNode fgNode : dec.getFunctionallyGroundedNodes()) {
      moleculeStore.addFunctionallyGroundedNode(fgNode);
    }
    for (TerminalMolecule terminalMolecule : dec.getTerminalMolecules()) {
View Full Code Here

TOP

Related Classes of org.wymiwyg.rdf.molecules.model.modelref.ModelReferencingDecomposition

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.