Package org.apache.clerezza.rdf.utils

Examples of org.apache.clerezza.rdf.utils.GraphNode.replaceWith()


        oldParentTripleIter.remove();
      }
      Lock writeLock = node.writeLock();
      writeLock.lock();
      try {
        node.replaceWith(targetUri);
      } finally {
        writeLock.unlock();
      }
      new CollectionCreator(mGraph).createContainingCollections(targetUri);
      try {
View Full Code Here


      GraphNode bindingNode;
      if (oldBindingValue != null) {
        NonLiteral oldBinding = getBindingWithValue(oldBindingValue, contentGraph);
        if (oldBinding != null) {
          GraphNode oldBindingNode = new GraphNode(oldBinding, contentGraph);
          oldBindingNode.replaceWith(binding);
        }
      }
      bindingNode = new GraphNode(binding, contentGraph);
      bindingNode.addProperty(RDF.type, CURIE.CuriePrefixBinding);
      bindingNode.deleteProperties(CURIE.prefix);
View Full Code Here

      if (bytes.length > 0) {
          MGraph model = new IndexedMGraph();
      parser.parse(model, new ByteArrayInputStream(bytes), "application/rdf+xml");
          GraphNode gn = new GraphNode(
          new UriRef("http://relative-uri.fake/"), model);
      gn.replaceWith(ci.getUri());
          ci.getLock().writeLock().lock();
          try {
              LOG.info("Model: {}",model);
              ci.getMetadata().addAll(model);
          } finally {
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.