Package org.apache.jena.riot.lang

Examples of org.apache.jena.riot.lang.LabelToNode$SingleScopePolicy


        return profile(baseIRI, true, true, handler) ;
    }

    public static ParserProfile profile(String baseIRI, boolean resolveIRIs, boolean checking, ErrorHandler handler)
    {
        LabelToNode labelToNode = true
            ? SyntaxLabels.createLabelToNode()
            : LabelToNode.createUseLabelEncoded() ;
       
        Prologue prologue ;
        if ( resolveIRIs )
View Full Code Here


    static Node gragh2 = NodeFactory.createURI("g2") ;
   
    // ---- One Scope
    @Test public void allocOneScope1()
    {
        LabelToNode alloc = LabelToNode.createScopeByDocument() ;
        Node b1 = alloc.get(gragh1, "xyz" ) ;
        Node b2 = alloc.get(gragh1, "xyz" ) ;
        // SAME
        assertEquals(b1,b2) ;
        assertSame(b1,b2) ;
    }
View Full Code Here

        assertSame(b1,b2) ;
    }
   
    @Test public void allocOneScope2()
    {
        LabelToNode alloc = LabelToNode.createScopeByDocument() ;
        Node b1 = alloc.get(gragh1, "xyz" ) ;
        Node b2 = alloc.get(gragh1, "123" ) ;
        // DIFFERENT
        assertNotEquals(b1,b2) ;
    }
View Full Code Here

        assertNotEquals(b1,b2) ;
    }

    @Test public void allocOneScope3()
    {
        LabelToNode alloc = LabelToNode.createScopeByDocument() ;
        Node b1 = alloc.get(gragh1, "xyz" ) ;
        Node b2 = alloc.get(gragh2, "xyz" ) ;
        // SAME
        assertEquals(b1,b2) ;
    }
View Full Code Here

        assertEquals(b1,b2) ;
    }
   
    @Test public void allocOneScope4()
    {
        LabelToNode alloc = LabelToNode.createScopeByDocument() ;
        Node b1 = alloc.get(null, "xyz" ) ;
        Node b2 = alloc.get(gragh2, "xyz" ) ;
        // SAME
        assertEquals(b1,b2) ;
    }
View Full Code Here

        assertEquals(b1,b2) ;
    }
   
    @Test public void allocOneScope5()
    {
        LabelToNode alloc = LabelToNode.createScopeByDocument() ;
        Node b1 = alloc.get(null, "xyz" ) ;
        Node b2 = alloc.get(null, "xyz" ) ;
        // SAME
        assertEquals(b1,b2) ;
    }
View Full Code Here

    }
   
    // ---- Graph Scope
    @Test public void allocGraphScope1()
    {
        LabelToNode alloc = LabelToNode.createScopeByGraph() ;
        Node b1 = alloc.get(gragh1, "xyz" ) ;
        Node b2 = alloc.get(gragh1, "xyz" ) ;
        // SAME
        assertEquals(b1,b2) ;
        assertSame(b1,b2) ;
    }
View Full Code Here

        assertSame(b1,b2) ;
    }
   
    @Test public void allocGraphScope2()
    {
        LabelToNode alloc = LabelToNode.createScopeByGraph() ;
        Node b1 = alloc.get(gragh1, "xyz" ) ;
        Node b2 = alloc.get(gragh1, "123" ) ;
        // DIFFERENT
        assertNotEquals(b1,b2) ;
    }
View Full Code Here

        assertNotEquals(b1,b2) ;
    }

    @Test public void allocGraphScope3()
    {
        LabelToNode alloc = LabelToNode.createScopeByGraph() ;
        Node b1 = alloc.get(gragh1, "xyz" ) ;
        Node b2 = alloc.get(gragh2, "xyz" ) ;
        // DIFFERENT
        assertNotEquals(b1,b2) ;
    }
View Full Code Here

        assertNotEquals(b1,b2) ;
    }
   
    @Test public void allocGraphScope4()
    {
        LabelToNode alloc = LabelToNode.createScopeByDocument() ;
        Node b1 = alloc.get(null, "xyz" ) ;
        Node b2 = alloc.get(gragh2, "xyz" ) ;
        // DIFFERENT
        assertEquals(b1,b2) ;
    }
View Full Code Here

TOP

Related Classes of org.apache.jena.riot.lang.LabelToNode$SingleScopePolicy

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.