Examples of deleteProperties()


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

    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();
    }
    return RedirectUtil.createSeeOtherResponse("./", uriInfo);
View Full Code Here

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

    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();
    }
    return RedirectUtil.createSeeOtherResponse("./", uriInfo);
  }
View Full Code Here

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

    LockableMGraph systemGraph = getSystemGraph();
    GraphNode graphNode = new GraphNode(role, systemGraph);
    Lock writeLock = systemGraph.getLock().writeLock();
    writeLock.lock();
    try {
      graphNode.deleteProperties(PERMISSION.hasPermission);
    } finally {
      writeLock.unlock();
    }   
    //refresh the policy so it will recheck the permissions
    Policy.getPolicy().refresh();
View Full Code Here

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

      if (pathPrefix != null && pathPrefix.trim().length() != 0) {
        updateProperty(userGraphNode, OSGI.agent_path_prefix,
            new PlainLiteralImpl(pathPrefix));
      }
      if (!assignedRoles.isEmpty()) {
        userGraphNode.deleteProperties(SIOC.has_function);
        addRolesToUser(assignedRoles, (NonLiteral) userGraphNode.getNode());
        //refresh the policy so it will recheck the permissions
        Policy.getPolicy().refresh();
      }
    } finally {
View Full Code Here

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

  public void userLoggedIn(String userName) {
    GraphNode userNode  = userManager.getUserInSystemGraph(userName);
    Lock l = userNode.writeLock();
    l.lock();
    try {
      userNode.deleteProperties(PLATFORM.lastLogin);
      userNode.addProperty(PLATFORM.lastLogin, LiteralFactory.getInstance().createTypedLiteral(new Date()));
    } finally {
      l.unlock();
    }
  }
View Full Code Here

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

        conceptCacheEntryGraphNode.getObjects(CONCEPTS.searchResult);
    while (searchResults.hasNext()) {
      Resource concept = searchResults.next();
      GraphNode conceptGraphNode = new GraphNode(concept,
          conceptCacheEntryGraphNode.getGraph());
      conceptGraphNode.deleteProperties(OWL.sameAs);
      conceptGraphNode.deleteProperties(RDFS.comment);
      conceptGraphNode.deleteProperties(SKOS.prefLabel);
      conceptGraphNode.deleteProperties(RDF.type);
    }
    conceptCacheEntryGraphNode.deleteProperties(CONCEPTS.searchResult);
View Full Code Here

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

    while (searchResults.hasNext()) {
      Resource concept = searchResults.next();
      GraphNode conceptGraphNode = new GraphNode(concept,
          conceptCacheEntryGraphNode.getGraph());
      conceptGraphNode.deleteProperties(OWL.sameAs);
      conceptGraphNode.deleteProperties(RDFS.comment);
      conceptGraphNode.deleteProperties(SKOS.prefLabel);
      conceptGraphNode.deleteProperties(RDF.type);
    }
    conceptCacheEntryGraphNode.deleteProperties(CONCEPTS.searchResult);
    conceptCacheEntryGraphNode.deleteProperties(DC.date);
View Full Code Here

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

      Resource concept = searchResults.next();
      GraphNode conceptGraphNode = new GraphNode(concept,
          conceptCacheEntryGraphNode.getGraph());
      conceptGraphNode.deleteProperties(OWL.sameAs);
      conceptGraphNode.deleteProperties(RDFS.comment);
      conceptGraphNode.deleteProperties(SKOS.prefLabel);
      conceptGraphNode.deleteProperties(RDF.type);
    }
    conceptCacheEntryGraphNode.deleteProperties(CONCEPTS.searchResult);
    conceptCacheEntryGraphNode.deleteProperties(DC.date);
    conceptCacheEntryGraphNode.deleteProperties(CONCEPTS.searchTerm);
View Full Code Here

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

      GraphNode conceptGraphNode = new GraphNode(concept,
          conceptCacheEntryGraphNode.getGraph());
      conceptGraphNode.deleteProperties(OWL.sameAs);
      conceptGraphNode.deleteProperties(RDFS.comment);
      conceptGraphNode.deleteProperties(SKOS.prefLabel);
      conceptGraphNode.deleteProperties(RDF.type);
    }
    conceptCacheEntryGraphNode.deleteProperties(CONCEPTS.searchResult);
    conceptCacheEntryGraphNode.deleteProperties(DC.date);
    conceptCacheEntryGraphNode.deleteProperties(CONCEPTS.searchTerm);
    conceptCacheEntryGraphNode.deleteProperties(RDF.type);
View Full Code Here

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

      @Context UriInfo uriInfo) {

   
    if (uri != null) {
      GraphNode node = new GraphNode(uri, cgProvider.getContentGraph());
      node.deleteProperties(DCTERMS.subject);
      if(concepts != null) {
        for (String subject : concepts) {
          node.addProperty(DCTERMS.subject, new UriRef(subject));
        }
      }
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.