Examples of NamedNode


Examples of org.wymiwyg.rdf.graphs.NamedNode

   * @param moment
   */
  private void addFGNodes(Source source,
      Set<FunctionallyGroundedNode> functionallyGroundedNodes, Date moment) {
    for (FunctionallyGroundedNode fgNode : functionallyGroundedNodes) {
      NamedNode fgNodeRef = moleculeStore
          .addFunctionallyGroundedNode(fgNode);
      metaStore.assertComponent(source, fgNodeRef, moment,
          METAMODEL.FunctionallyGroundedNode);
    }

View Full Code Here

Examples of org.wymiwyg.rdf.graphs.NamedNode

  }

  private void addTMolecules(Source source,
      Set<TerminalMolecule> terminalMolecules, Date moment) {
    for (TerminalMolecule molecule : terminalMolecules) {
      NamedNode moleculeDescription = moleculeStore
          .addTerminalMolecule(molecule);
      metaStore.assertComponent(source, moleculeDescription, moment,
          METAMODEL.TerminalMolecule);

    }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.NamedNode

   */
  private void revokeCMolecules(Source source,
      Set<MaximumContextualMolecule> contextualMolecules, Date moment) {

    for (MaximumContextualMolecule cMolecule : contextualMolecules) {
      NamedNode componentName = moleculeStore
          .getNameOfContextualMolecule(cMolecule);// MoleculesMap.get(cMolecule);
      if (componentName == null) {
        throw new StoreException(
            "Revoking compononent unknown to the store");
      }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.NamedNode

   * @param momentLit
   */
  private void revokeFGNodes(Source source,
      Set<FunctionallyGroundedNode> functionallyGroundedNodes, Date moment) {
    for (FunctionallyGroundedNode fgNode : functionallyGroundedNodes) {
      NamedNode componentName = moleculeStore
          .getNameOfFunctionallyGroundedNode(fgNode);// fgNodesMap.get(fgNode);
      if (componentName == null) {
        throw new StoreException(
            "Revoking compononent unknown to the store");
      }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.NamedNode

   */
  private void revokeTMolecules(Source source,
      Set<TerminalMolecule> terminalMolecules, Date moment) {

    for (TerminalMolecule tMolecule : terminalMolecules) {
      NamedNode componentName = moleculeStore
          .getNameOfTerminalMolecule(tMolecule);// tMoleculesMap.get(tMolecule);
      if (componentName == null) {
        throw new StoreException(
            "Revoking compononent unknown to the store");
      }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.NamedNode

        .createTypedLiteral(formFile.getContent()));
    infoBitResource.addProperty(RDF.type, DISCOBITS.InfoBit);
    store.perform(identity, new StoreTransaction() {

      public void execute(SourceStoreView storeView) {
        NamedNode locationNode = new NamedNodeImpl(locationString);
        FCAGraph origGraph = storeView.getGraph().filter(
            Collections.singleton((GroundedNode) locationNode));
        Model origModel = ModelFactory.createModelForGraph(origGraph);
        editableModel.add(origModel);
        Resource locationResource = editableModel
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.NamedNode

    //NamedNode descriptionDoc = null;
    for (Triple triple : graph) {
      if (triple.getPredicate().equals(
          new PropertyNodeImpl(MODELDIFF.functionallyGroundedIn
              .getURI()))) {
        NamedNode descriptionDoc  = (NamedNode) triple.getObject();
        node2descriptionDocMap.put(triple.getSubject(), descriptionDoc);
      } else {
        simpleGraph.add(triple);
      }
    }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.NamedNode

   * @return
   * @throws IOException
   */
  private CrossGraphFgNode getCgFgNodeFromPathNode(ZipFile zipFile, PathNode currentPath)
      throws IOException {
    NamedNode describingResource = new NamedNodeImpl(
        ReferencingNaturalizer.rootURL + currentPath.getPath());
    CrossGraphFgNode result = new CrossGraphFgNode();
    PathNode nodesIn1Path = currentPath.getSubPath("onlyIn1/");
    deserializeFgNodes(zipFile, nodesIn1Path, result.getNodesIn1());
    PathNode nodesIn2Path = currentPath.getSubPath("onlyIn2/");
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.NamedNode

   * @throws IOException
   */
  private FunctionallyGroundedNode getFgNodeFromPathNode(ZipFile zipFile,
      PathNode pathNode) throws IOException {
   
    NamedNode describingResource = new NamedNodeImpl(
        ReferencingNaturalizer.rootURL + pathNode.getPath());
    FunctionallyGroundedNode existing = descriptionPathToFgNode.get(describingResource);
    if (existing != null) {
      return existing;
    }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.NamedNode

   * @param string
   */
  private void prepareNames(Set<? extends FunctionallyGroundedNode> fgNodes,
      String categoryLabel,  String baseURL) {
    for (FunctionallyGroundedNode fgNode : fgNodes) {
      NamedNode descriptionDoc = getDescriptionDoc(categoryLabel, baseURL);
      groundedInMap.put(fgNode, descriptionDoc);
    }

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.