Package org.apache.clerezza.rdf.utils

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


  private void deleteScript(UriRef scriptUri) {
    MGraph contentGraph = cgProvider.getContentGraph();
   
    contentHandler.remove(scriptUri);
    GraphNode scriptNode = new GraphNode(scriptUri, contentGraph);
    scriptNode.deleteProperty(RDF.type, SCRIPT.Script);
    scriptNode.deleteProperties(DCTERMS.title);
    scriptNode.deleteProperties(SCRIPT.scriptLanguage);
    scriptNode.deleteProperties(SCRIPT.scriptLanguageVersion);
    scriptNode.deleteProperties(SCRIPT.producedType);
  }
View Full Code Here


      UriRef scriptUri) {
    MGraph contentGraph = cgProvider.getContentGraph();

    GraphNode generatedResourceNode =
        new GraphNode(scriptGeneratedResource, contentGraph);
    generatedResourceNode.deleteProperty(RDF.type,
        SCRIPT.ScriptGeneratedResource);
    generatedResourceNode.deleteProperty(SCRIPT.scriptSource,
        scriptUri);
  }
View Full Code Here

    GraphNode generatedResourceNode =
        new GraphNode(scriptGeneratedResource, contentGraph);
    generatedResourceNode.deleteProperty(RDF.type,
        SCRIPT.ScriptGeneratedResource);
    generatedResourceNode.deleteProperty(SCRIPT.scriptSource,
        scriptUri);
  }

  private ScriptLanguageDescription extractLanguageAndVersion(String str) {
    int begin = str.indexOf(" (");
View Full Code Here

    Lock l = contentGraph.getLock().writeLock();
    l.lock();
    try {
      NonLiteral binding = getBindingWithValue(bindingValue, contentGraph);
      GraphNode bindingNode = new GraphNode(binding, contentGraph);
      bindingNode.deleteProperty(RDF.type, CURIE.CuriePrefixBinding);
      bindingNode.deleteProperties(CURIE.prefix);
      bindingNode.deleteProperties(CURIE.binding);
    } finally {
      l.unlock();
    }
View Full Code Here

        userNode.addPropertyValue(PERMISSION.passwordSha1, passwordSha1);
        // workaround for possible issue in verification re. PlainLiteral vs. xsd:string
        // userNode.addProperty(PERMISSION.passwordSha1, new PlainLiteralImpl(passwordSha1));
        // most likely not a problem, and the above will work
       
        userNode.deleteProperty(PERMISSION.passwordSha1, oldPasswordSha1);

        System.out.println("AFTER ========================================================");
        serializer.serialize(System.out, userNode.getGraph(), SupportedFormat.TURTLE);
       
        URI pageUri = uriInfo.getBaseUriBuilder().path("/system/console").build();
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.