Package org.apache.clerezza.rdf.core

Examples of org.apache.clerezza.rdf.core.TripleCollection.removeAll()


          Iterator<Resource> valIter = hierarchyNode.getObjects(predicate);
          Set<Triple> triplesToBeRemoved = new HashSet<Triple>();
          while (valIter.hasNext()) {
            triplesToBeRemoved.add(new TripleImpl(subject, predicate, valIter.next()));
          }
          contentGraph.removeAll(triplesToBeRemoved);
        } finally {
          writeLock.unlock();
        }
        propOk.appendChild(responseDoc.createElementNS(property.ns, property.prop));
View Full Code Here


          final Triple potentialTriple = potentialIter.next();
          BNode potentialMatch = (BNode)potentialTriple.getObject();
          final Graph potentialContext = new GraphNode(potentialMatch, mGraph).getNodeContext();
          if (potentialContext.equals(context)) {
            removingTriples.addAll(potentialContext);
            unGroundedTriples.removeAll(context);
            continue OBJ_BNODE_LOOP;
          }
        } catch (ClassCastException e) {
          continue;
        }
View Full Code Here

          final Triple potentialTriple = potentialIter.next();
          BNode potentialMatch = (BNode)potentialTriple.getSubject();
          final Graph potentialContext = new GraphNode(potentialMatch, mGraph).getNodeContext();
          if (potentialContext.equals(context)) {
            removingTriples.addAll(potentialContext);
            unGroundedTriples.removeAll(context);
            continue SUBJ_BNODE_LOOP;
          }
        } catch (ClassCastException e) {
          continue;
        }
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.