@Override public void handleStatement(Statement st) throws RDFHandlerException { graph.add(st); }
@Override public void handleStatement(Statement st) throws RDFHandlerException { graph.add(st); }
@Override public void handleStatement(Statement st) throws RDFHandlerException { graph.add(st); }
@Override public void handleStatement(Statement st) throws RDFHandlerException { graph.add(st); }
@Override public void handleStatement(Statement st) throws RDFHandlerException { graph.add(st); }
@Override public void handleStatement(Statement st) throws RDFHandlerException { graph.add(st); }
/** * Adds the specified statement and makes sure that no other statements are present in the Graph with the * same subject and predicate. When contexts are specified, the (subj, pred) pair will occur exactly once * in each context, else the (subj, pred) pair will occur exactly once in the entire Graph. * * @deprecated since 2.8.0. Use {@link Models#setProperty(Model, Resource, IRI, Value, Resource...) } * instead. */ @Deprecated public static void setUniqueObject(Graph graph, Resource subj, IRI pred, Value obj, Resource... contexts) { Iterator<Statement> iter = graph.match(subj, pred, null, contexts); while (iter.hasNext()) { iter.next(); iter.remove(); } graph.add(subj, pred, obj, contexts); }
/** * Adds the specified statement and makes sure that no other statements are present in the Graph with the * same subject and predicate. When contexts are specified, the (subj, pred) pair will occur exactly once * in each context, else the (subj, pred) pair will occur exactly once in the entire Graph. * * @deprecated since 2.8.0. Use {@link Models#setProperty(Model, Resource, IRI, Value, Resource...) } * instead. */ @Deprecated public static void setUniqueObject(Graph graph, Resource subj, IRI pred, Value obj, Resource... contexts) { Iterator<Statement> iter = graph.match(subj, pred, null, contexts); while (iter.hasNext()) { iter.next(); iter.remove(); } graph.add(subj, pred, obj, contexts); }
@Override public void handleStatement(Statement st) throws RDFHandlerException { synchronized (bufferLock) { bufferedStatements.add(st); contexts.add(st.getContext()); if (bufferedStatements.size() >= this.bufferSize) { processBuffer(); } } }
@Override public void handleStatement(Statement st) throws RDFHandlerException { synchronized (bufferLock) { bufferedStatements.add(st); contexts.add(st.getContext()); if (bufferedStatements.size() >= this.bufferSize) { processBuffer(); } } }
@Override public void handleStatement(Statement st) throws RDFHandlerException { synchronized (bufferLock) { bufferedStatements.add(st); contexts.add(st.getContext()); if (bufferedStatements.size() >= this.bufferSize) { processBuffer(); } } }