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

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


  public void testRR()
  {
    final Statement st = SPO;
    final Model m = model;
    final ReifiedStatement rs1 = m.createReifiedStatement(
        AbstractTestReifiedStatements.aURI, st);
    final ReifiedStatement rs2 = m.createReifiedStatement(
        AbstractTestReifiedStatements.anotherURI, st);
    m.removeReification(rs1);
    testNotReifying(m, AbstractTestReifiedStatements.aURI);
    Assert.assertTrue("st is still reified", st.isReified());
    m.removeReification(rs2);
View Full Code Here


    final Statement st = SPO;
    final Model m = model;
    Assert.assertEquals("it's not there yet",
        AbstractTestReifiedStatements.noStatements,
        GraphTestBase.iteratorToSet(st.listReifiedStatements()));
    final ReifiedStatement rs = m.createReifiedStatement(
        AbstractTestReifiedStatements.aURI, st);
    final Set<ReifiedStatement> justRS = arrayToSet(new ReifiedStatement[] { rs });
    m.add(rs, P, O);
    Assert.assertEquals("it's here now", justRS,
        GraphTestBase.iteratorToSet(st.listReifiedStatements()));
View Full Code Here

                .listReifiedStatements(stmt);
            try
            {
              while (rIter.hasNext())
              {
                final ReifiedStatement rs = rIter.next();
                final ExtendedIterator<Statement> tIter = holder
                    .getBaseItem()
                    .listStatements(rs, RDF.subject,
                        stmt.getSubject())
                    .andThen(
View Full Code Here

          s);
      try
      {
        while (iter.hasNext())
        {
          final ReifiedStatement rs = iter.next();
          checkDelete(new Triple(rs.asNode(), RDF.subject.asNode(),
              wildCardNode(s.getSubject())));
          checkDelete(new Triple(rs.asNode(), RDF.predicate.asNode(),
              wildCardNode(s.getPredicate())));
          checkDelete(new Triple(rs.asNode(), RDF.object.asNode(),
              wildCardNode(s.getObject())));
        }
        holder.getBaseItem().removeAllReifications(s);
      }
      finally
View Full Code Here

TOP

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

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.