Examples of deleteNodeContext()


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

      return Response.status(Status.NOT_FOUND).entity(
          uriInfo.getAbsolutePath()).type(MediaType.TEXT_PLAIN).build();
    }
    final LockableMGraph mGraph = cgProvider.getContentGraph();
    GraphNode node = new GraphNode(nodeUri, mGraph);
    node.deleteNodeContext();
    return Response.ok().build();
  }

  /**
   * @param uriInfo
View Full Code Here

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

      UriRef predicate = triple.getPredicate();
      if (predicate.equals(DISCOBITS.contains)) {
        try {
          GraphNode containedNode = new GraphNode((NonLiteral)triple.getObject(), mGraph);
          //The following includes triple
          containedNode.deleteNodeContext();
        } catch (ClassCastException e) {
          throw new RuntimeException("The value of "+predicate+" is expected not to be a literal");
        }
        //as some other properties of node could have been in the context of the object
        remove(node);
View Full Code Here

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

        remove(node);
        return;
      }     
    }
    GraphNode graphNode = new GraphNode(node, mGraph);
    graphNode.deleteNodeContext();
  }

  @Override
  public byte[] getData(UriRef uriRef) {
    MGraph mGraph = getMGraph();
View Full Code Here

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

      types = new ArrayList<String>();
    }
    MGraph contentGraph = cgProvider.getContentGraph();
    NonLiteral cplNode = getConceptProviderListNode(contentGraph);
    GraphNode cplGraphNode = new GraphNode(cplNode, contentGraph);
    cplGraphNode.deleteNodeContext();

    cplNode = getConceptProviderListNode(contentGraph);
    RdfList cpl = new RdfList(cplNode, contentGraph);

    int length = types.size();
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.