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

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


        ((ReifiedStatement) r).getStatement());
  }

  public void testIsReified()
  {
    final ReifiedStatement rs = model.createReifiedStatement(
        TestReifiedStatements.aURI, SPO);
    final Resource BS = model.createResource(TestReifiedStatements.anchor
        + "BS");
    final Property BP = model.createProperty(TestReifiedStatements.anchor
        + "BP");
View Full Code Here


   */

  public void testLeosBug()
  {
    final Statement st = ModelHelper.statement(model, "pigs fly south");
    final ReifiedStatement rst = st.createReifiedStatement("eh:pointer");
    model.removeReification(rst);
    ModelHelper.assertIsoModels(ModelFactory.createDefaultModel(), model);
  }
View Full Code Here

  }

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

  @Test
  public void testGetStatementProperty()
  {
    // get property of the subject
    final ReifiedStatement s = baseStatement.createReifiedStatement();
    s.addLiteral(property, "yee haw");
    securedStatement.getStatementProperty(property);

  }
View Full Code Here

    final RSIterator rsIter = holder.getBaseItem().listReifiedStatements();
    try
    {
      while (rsIter.hasNext())
      {
        final ReifiedStatement s = rsIter.next();
        if (s.hasProperty(p))
        {
          return SecuredStatementImpl.getInstance(getModel(),
              s.getProperty(p));
        }
      }
      throw new PropertyNotFoundException(p);
    }
    finally
View Full Code Here

          .listReifiedStatements();
      try
      {
        while (rsIter.hasNext())
        {
          final ReifiedStatement stmt = rsIter.next();
          iter = stmt.listProperties();
          while (iter.hasNext())
          {
            final Statement s = iter.next();
            checkDelete(s);
          }
View Full Code Here

    if (n == 0)
    {
      try
      {
        // System.err.println( "| hello. mask = " + mask );
        final ReifiedStatement rs = R.as(ReifiedStatement.class);
        // System.err.println( "+  we constructed " + rs );

        if ((mask & 15) != 15)
        {
          m.write(System.out, "TTL");
View Full Code Here

    }
  }

  public void testConstructionByURI()
  {
    final ReifiedStatement rs = model.createReifiedStatement("spoo:handle",
        SPO);
    final ReifiedStatement rs2 = SPO.createReifiedStatement("spoo:gripper");
    Assert.assertEquals("recover statement (URI)", SPO, rs.getStatement());
    Assert.assertEquals("recover URI", "spoo:handle", rs.getURI());
    Assert.assertEquals("recover URI", "spoo:gripper", rs2.getURI());
  }
View Full Code Here

  public void testConversion()
  {
    final String uri = "spoo:handle";
    model.createReifiedStatement(uri, SPO);
    final ReifiedStatement rs2 = model.createResource(uri).as(
        ReifiedStatement.class);
    Assert.assertEquals("recover statement", SPO, rs2.getStatement());
  }
View Full Code Here

        ((ReifiedStatement) r).getStatement());
  }

  public void testIsReified()
  {
    final ReifiedStatement rs = model.createReifiedStatement(
        AbstractTestReifiedStatements.aURI, SPO);
    final Resource BS = model
        .createResource(AbstractTestReifiedStatements.anchor + "BS");
    final Property BP = model
        .createProperty(AbstractTestReifiedStatements.anchor + "BP");
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.