Package org.apache.clerezza.rdf.utils

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


      try {
        /* extract concepts */
        conceptsFS = uimaServicesFacade.getConcepts(node.toString());

        if (override)
          node.deleteProperties(DCTERMS.subject);

        /* if concepts have a good relevance, then add them as concept tags */
        if (conceptsFS != null && !conceptsFS.isEmpty()) {
          for (FeatureStructure conceptFS : conceptsFS) {
            Type conceptType = conceptFS.getType();
View Full Code Here


    GraphNode node = platformConfig.getPlatformInstance();
    LockableMGraph sysGraph = (LockableMGraph) node.getGraph();
    Lock writeLock = sysGraph.getLock().writeLock();
    writeLock.lock();
    try {
      node.deleteProperties(PLATFORM.defaultBaseUri);
      node.addProperty(PLATFORM.defaultBaseUri, uri);
    } finally {
      writeLock.unlock();
    }
    return Response.status(Response.Status.ACCEPTED).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.