Examples of asTriple()


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

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

        if ( ! q.isConcrete() )
        {
            Log.warn(TemplateLib.class, "Unbound quad: "+FmtUtils.stringForQuad(quad)) ;
            return ;
        }
        acc.put(q.getGraph(), q.asTriple()) ;
    }
   
    /** Substitute into quad patterns */
    public static Iterator<Quad> calcQuads(final List<Quad> quads, Iterator<Binding> bindings)
    {
View Full Code Here

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

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

       
        if ( quads.size() == 1 )
        {
            Quad q = quads.get(0) ;
            BasicPattern bgp = new BasicPattern() ;
            bgp.add(q.asTriple()) ;
            return new OpQuadPattern(q.getGraph(), bgp) ;
        }

        List<OpQuadPattern> x = convert() ;
        OpSequence ops = OpSequence.create() ;
View Full Code Here

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

            if ( !iter.hasNext() )
                return null ;
            Quad q = iter.next() ;
            if ( iter.hasNext() )
                return null ;
            return q.asTriple() ;
    }

    public static boolean strSafeFor(String str, char ch) {
        return str.indexOf(ch) == -1 ;
    }
View Full Code Here

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

            if ( !iter.hasNext() )
                return null ;
            Quad q = iter.next() ;
            if ( iter.hasNext() )
                return null ;
            return q.asTriple() ;
        }

        private long countTriples(Node s, Node p, Node o) {
            if ( dsg != null )
                return RiotLib.countTriples(dsg, s, p, o) ;
View Full Code Here

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") ;
            return q.asTriple() ;
        }
        @Override
        public void remove() { iter.remove(); }
    }
   
View Full Code Here

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

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

                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

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

            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.