Package com.hp.hpl.jena.sparql.core

Examples of com.hp.hpl.jena.sparql.core.Quad.asTriple()


        public Triple next()
        {
            Quad q = iter.next();
            if ( graphNode != null && ! q.getGraph().equals(graphNode))
                throw new InternalError("ProjectQuadsToTriples: Quads from unexpected graph (expected="+graphNode+", got="+q.getGraph()+")") ;
            return q.asTriple() ;
        }
        @Override
        public void remove() { iter.remove(); }
    }
   
View Full Code Here


                gt.set(g);
                Text hg = new Text(ht); hg.append(G, 0, G.length);
                emit(context, gt, hg);
                EventManager.send(counters, new Event(Constants.eventQuad, quad));
            } else {
              EventManager.send(counters, new Event(Constants.eventTriple, quad.asTriple()));
            }
        } catch (Exception e) {
            throw new TDBLoader4Exception(e);
        } finally {
            st.clear();
View Full Code Here

            if ( g != null ) {
                gt.set(g);
                emit(context, gt);
                EventManager.send(counters, new Event(Constants.eventQuad, quad));
            } else {
              EventManager.send(counters, new Event(Constants.eventTriple, quad.asTriple()));
            }
        } catch (Exception e) {
            throw new TDBLoader4Exception(e);
        } finally {
            st.clear();
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.