Package com.hp.hpl.jena.rdf.model

Examples of com.hp.hpl.jena.rdf.model.StatementTripleBoundary


  public void testStatementTripleBoundaryAnon()
  {
    final TripleBoundary anon = TripleBoundary.stopAtAnonObject;
    Assert.assertSame(anon,
        new StatementTripleBoundary(anon).asTripleBoundary(null));
    Assert.assertFalse(new StatementTripleBoundary(anon).stopAt(ModelHelper
        .statement("s P o")));
    Assert.assertTrue(new StatementTripleBoundary(anon).stopAt(ModelHelper
        .statement("s P _o")));
  }
View Full Code Here


  public void testStatementTripleBoundaryNowhere()
  {
    final TripleBoundary nowhere = TripleBoundary.stopNowhere;
    Assert.assertSame(nowhere,
        new StatementTripleBoundary(nowhere).asTripleBoundary(null));
    Assert.assertFalse(new StatementTripleBoundary(nowhere)
        .stopAt(ModelHelper.statement("s P _o")));
    Assert.assertFalse(new StatementTripleBoundary(nowhere)
        .stopAt(ModelHelper.statement("s P o")));
  }
View Full Code Here

  public void testStatementTripleBoundaryAnon()
  {
    final TripleBoundary anon = TripleBoundary.stopAtAnonObject;
    Assert.assertSame(anon,
        new StatementTripleBoundary(anon).asTripleBoundary(null));
    Assert.assertFalse(new StatementTripleBoundary(anon).stopAt(ModelHelper
        .statement("s P o")));
    Assert.assertTrue(new StatementTripleBoundary(anon).stopAt(ModelHelper
        .statement("s P _o")));
  }
View Full Code Here

  public void testStatementTripleBoundaryNowhere()
  {
    final TripleBoundary nowhere = TripleBoundary.stopNowhere;
    Assert.assertSame(nowhere,
        new StatementTripleBoundary(nowhere).asTripleBoundary(null));
    Assert.assertFalse(new StatementTripleBoundary(nowhere)
        .stopAt(ModelHelper.statement("s P _o")));
    Assert.assertFalse(new StatementTripleBoundary(nowhere)
        .stopAt(ModelHelper.statement("s P o")));
  }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.rdf.model.StatementTripleBoundary

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.