Search in sources :

Example 6 with Bag

use of org.apache.jena.rdf.model.Bag in project jena by apache.

the class TestContainerConstructors method testCreateNamedBag.

public void testCreateNamedBag() {
    final String uri = "http://aldabaran/foo";
    final Bag tv = model.createBag(uri);
    Assert.assertEquals(uri, tv.getURI());
    Assert.assertTrue(model.contains(tv, RDF.type, RDF.Bag));
}
Also used : Bag(org.apache.jena.rdf.model.Bag)

Aggregations

Bag (org.apache.jena.rdf.model.Bag)6 SecuredBag (org.apache.jena.permissions.model.SecuredBag)2 ItemHolder (org.apache.jena.permissions.impl.ItemHolder)1 SecuredItemInvoker (org.apache.jena.permissions.impl.SecuredItemInvoker)1 Model (org.apache.jena.rdf.model.Model)1 Seq (org.apache.jena.rdf.model.Seq)1 ReadDeniedException (org.apache.jena.shared.ReadDeniedException)1 Before (org.junit.Before)1 BeforeClass (org.junit.BeforeClass)1 Test (org.junit.Test)1