Examples of Alt


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

  public void testGetAlt()
  {
    final String uri = "http://aldabaran.hpl.hp.com/rdf/test4/" + 160;
    model.createAlt(uri);
    final Alt a = model.getAlt(uri);
    Assert.assertEquals(uri, a.getURI());
    Assert.assertTrue(model.contains(a, RDF.type, RDF.Alt));
  }
View Full Code Here

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

    return RDF.Alt;
  }

  public void testDefaults()
  {
    final Alt a = model.createAlt();
    final Literal tvLiteral = model.createLiteral("test 12 string 2");
    // Resource tvResObj = model.createResource( new ResTestObjF() );
    final Bag tvBag = model.createBag();
    final Alt tvAlt = model.createAlt();
    final Seq tvSeq = model.createSeq();
    //
    final Resource tvResource = model.createResource();
    Assert.assertEquals(tvLiteral, a.setDefault(tvLiteral).getDefault());
    Assert.assertEquals(tvLiteral, a.getDefaultLiteral());
View Full Code Here

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

    super(modelFactory, name);
  }

  public void testCreateAnonAlt()
  {
    final Alt tv = model.createAlt();
    Assert.assertTrue(tv.isAnon());
    Assert.assertTrue(model.contains(tv, RDF.type, RDF.Alt));
  }
View Full Code Here

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

  }

  public void testCreateNamedAlt()
  {
    final String uri = "http://aldabaran/sirius";
    final Alt tv = model.createAlt(uri);
    Assert.assertEquals(uri, tv.getURI());
    Assert.assertTrue(model.contains(tv, RDF.type, RDF.Alt));
  }
View Full Code Here

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

    r = model.createResource();
  }

  public void testAlt()
  {
    final Alt tvAlt = model.createAlt();
    Assert.assertEquals(tvAlt, model.createStatement(r, RDF.value, tvAlt)
        .getAlt());
  }
View Full Code Here

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

    final Literal tvLiteral = model.createLiteral("test 12 string 2");
    final Resource tvResource = model.createResource();
    // Resource tvResObj = model.createResource(new ResTestObjF());
    final Object tvLitObj = new LitTestObj(1234);
    final Bag tvBag = model.createBag();
    final Alt tvAlt = model.createAlt();
    final Seq tvSeq = model.createSeq();
    //
    final Seq seq = model.createSeq();
    seq.add(true);
    Assert.assertEquals(true, seq.getBoolean(1));
View Full Code Here

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

    final Literal tvLiteral = model.createLiteral("test 12 string 2");
    final Resource tvResource = model.createResource();
    // Resource tvResObj = model.createResource(new ResTestObjF());
    final Object tvLitObj = new LitTestObj(1234);
    final Bag tvBag = model.createBag();
    final Alt tvAlt = model.createAlt();
    final Seq tvSeq = model.createSeq();

    final Seq seq = model.createSeq();
    seq.add(model.createResource());
    seq.add(1, true);
View Full Code Here

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

  @Override
  public SecuredAlt getAlt( final int index )
  {
    checkRead();
    final Alt a = holder.getBaseItem().getAlt(index);
    checkRead(new Triple(holder.getBaseItem().asNode(), RDF.li(index)
        .asNode(), a.asNode()));
    return SecuredAltImpl.getInstance(getModel(), a);
  }
View Full Code Here

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

    final Literal tvLiteral = model.createLiteral("test 12 string 2");
    final Resource tvResource = model.createResource();
    // Resource tvResObj = model.createResource(new ResTestObjF());
    final Object tvLitObj = new LitTestObj(1234);
    final Bag tvBag = model.createBag();
    final Alt tvAlt = model.createAlt();
    final Seq tvSeq = model.createSeq();
    //
    final Seq seq = model.createSeq();
    seq.add(true);
    Assert.assertEquals(true, seq.getBoolean(1));
View Full Code Here

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

    final Literal tvLiteral = model.createLiteral("test 12 string 2");
    final Resource tvResource = model.createResource();
    // Resource tvResObj = model.createResource(new ResTestObjF());
    final Object tvLitObj = new LitTestObj(1234);
    final Bag tvBag = model.createBag();
    final Alt tvAlt = model.createAlt();
    final Seq tvSeq = model.createSeq();

    final Seq seq = model.createSeq();
    seq.add(model.createResource());
    seq.add(1, true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.