Package org.wymiwyg.rdf.molecules.impl

Examples of org.wymiwyg.rdf.molecules.impl.SimpleContextualMolecule


  public MaximumContextualMolecule getContextualMolecule(NamedNode moleculeRef) {
    return new MoleculeReader<MaximumContextualMolecule>() {

      @Override
      protected MaximumContextualMolecule asMolecule(Graph graphFromModel) {
        SimpleContextualMolecule result = new SimpleContextualMolecule();
        result.addAll(deNaturalize(graphFromModel));
        result.markFinalized();
        return result;
      }

    }.readComponent(new ComponentDirectory(moleculeRef.getURIRef()));
  }
View Full Code Here


            if (!current.equals(orig)) {
              Set<MaximumContextualMolecule> originalContextualMolecules = cMolecules;
              cMolecules = new HashSet<MaximumContextualMolecule>();
              for (MaximumContextualMolecule molecule : originalContextualMolecules) {
                try {
                  SimpleContextualMolecule replacement = new GraphUtil<SimpleContextualMolecule>()
                      .replaceNode(
                          molecule,
                          orig,
                          current,
                          new SimpleContextualMolecule());
                  replacement.markFinalized();
                  cMolecules.add(replacement);
                } catch (SourceNodeNotFoundException e) {
                  cMolecules.add(molecule);
                }
              }
View Full Code Here

TOP

Related Classes of org.wymiwyg.rdf.molecules.impl.SimpleContextualMolecule

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.