Search in sources :

Example 11 with TreeModel

use of org.eclipse.rdf4j.model.impl.TreeModel in project rdf4j by eclipse.

the class StatementsTest method testNoContext.

@Test
public void testNoContext() {
    Model m = Statements.create(vf, FOAF.AGE, RDF.TYPE, RDF.PROPERTY, new TreeModel());
    assertFalse(m.isEmpty());
    assertTrue(m.contains(FOAF.AGE, RDF.TYPE, RDF.PROPERTY));
}
Also used : TreeModel(org.eclipse.rdf4j.model.impl.TreeModel) TreeModel(org.eclipse.rdf4j.model.impl.TreeModel) Model(org.eclipse.rdf4j.model.Model) Test(org.junit.Test)

Aggregations

Model (org.eclipse.rdf4j.model.Model)11 TreeModel (org.eclipse.rdf4j.model.impl.TreeModel)11 Test (org.junit.Test)9 Resource (org.eclipse.rdf4j.model.Resource)5 RepositoryConnection (org.eclipse.rdf4j.repository.RepositoryConnection)3 RepositoryConfig (org.eclipse.rdf4j.repository.config.RepositoryConfig)3 ProxyRepositoryConfig (org.eclipse.rdf4j.repository.sail.config.ProxyRepositoryConfig)3 SailRepositoryConfig (org.eclipse.rdf4j.repository.sail.config.SailRepositoryConfig)3 Value (org.eclipse.rdf4j.model.Value)2 File (java.io.File)1 FileOutputStream (java.io.FileOutputStream)1 IOException (java.io.IOException)1 OutputStream (java.io.OutputStream)1 URISyntaxException (java.net.URISyntaxException)1 IRI (org.eclipse.rdf4j.model.IRI)1 RepositoryConfigException (org.eclipse.rdf4j.repository.config.RepositoryConfigException)1 RDFHandlerException (org.eclipse.rdf4j.rio.RDFHandlerException)1 UnsupportedRDFormatException (org.eclipse.rdf4j.rio.UnsupportedRDFormatException)1