Package com.hp.hpl.jena.graph.compose

Examples of com.hp.hpl.jena.graph.compose.Difference


     
    public void testDifference()
    {
        Graph g1 = graphWith( "x R y; p R q" );
        Graph g2 = graphWith( "r A s; x R y" );
        Difference d = new Difference( g1, g2 );
        assertOmits( "Difference", d, "x R y" );
        assertContains( "Difference", "p R q", d );
    assertOmits( "Difference", d, "r A s" );
        if (d.size() != 1)
            fail( "oops: size of difference is not 1" );
        d.add( triple( "cats eat cheese" ) );
        assertContains( "Difference.L", "cats eat cheese", g1 );
        assertOmits( "Difference.R", g2, "cats eat cheese" );
    }
View Full Code Here


     
  @Override
  public Graph getGraph()
  {
    Graph gBase = graphWith( "" ), g1 = graphWith( "" );
        return new Difference( gBase, g1 );
  }
View Full Code Here

 
    public void testDifference()
    {
        Graph g1 = graphWith( "x R y; p R q" );
        Graph g2 = graphWith( "r A s; x R y" );
        Difference d = new Difference( g1, g2 );
        assertOmits( "Difference", d, "x R y" );
        assertContains( "Difference", "p R q", d );
    assertOmits( "Difference", d, "r A s" );
        if (d.size() != 1)
            fail( "oops: size of difference is not 1" );
        d.add( triple( "cats eat cheese" ) );
        assertContains( "Difference.L", "cats eat cheese", g1 );
        assertOmits( "Difference.R", g2, "cats eat cheese" );
    }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.graph.compose.Difference

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.