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

Examples of com.hp.hpl.jena.sparql.core.GraphView$GraphViewException


   
    @Test public void graphDSG_basic_1()
    {
        Graph g = makeDefaultGraph(baseDSG) ;
        assertTrue(g instanceof GraphView) ;
        GraphView gv = (GraphView)g ;
        assertEquals(baseDSG, gv.getDataset()) ;
        assertEquals(null, gv.getGraphName()) ;
    }
View Full Code Here


    @Test public void graphDSG_basic_2()
    {
        Node gn1 = SSE.parseNode("<g1>") ;
        Graph g = makeNamedGraph(baseDSG, gn1) ;
        assertTrue(g instanceof GraphView) ;
        GraphView gv = (GraphView)g ;
        assertEquals(baseDSG, gv.getDataset()) ;
        assertEquals(gn1, gv.getGraphName()) ;
    }
View Full Code Here

    private List<Node> query(String queryString, int limit, ExecutionContext execCxt) {
        // use the graph information in the text index if possible
        if (server.getDocDef().getGraphField() != null
            && execCxt.getActiveGraph() instanceof GraphView) {
            GraphView activeGraph = (GraphView)execCxt.getActiveGraph() ;
            if (!Quad.isUnionGraph(activeGraph.getGraphName())) {
                String uri =
                    activeGraph.getGraphName() != null
                    ? TextQueryFuncs.graphNodeToString(activeGraph.getGraphName())
                    : Quad.defaultGraphNodeGenerated.getURI() ;
                String escaped = QueryParser.escape(uri) ;
                String qs2 = server.getDocDef().getGraphField() + ":" + escaped ;
                queryString = "(" + queryString + ") AND " + qs2 ;
            }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.sparql.core.GraphView$GraphViewException

Copyright © 2018 www.massapicom. 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.