use of org.apache.clerezza.rdf.core.access.TcProvider in project stanbol by apache.
the class TestClerezzaInputSources method fromInputStreamInSimpleTcProvider.
/*
* An ontology input source created using a custom TC Provider should create a non-null Origin (i.e. the
* name of the generated graph) and increase the triple collection count by 1.
*/
@Test
public void fromInputStreamInSimpleTcProvider() throws Exception {
InputStream in = getClass().getResourceAsStream(dummy_RdfXml);
TcProvider tcp = new SimpleTcProvider();
assertSame(0, tcp.listGraphs().size());
int before = tcp.listGraphs().size();
src = new GraphContentInputSource(in, tcp);
checkOntology(true);
assertSame(before + 1, tcp.listGraphs().size());
}
Aggregations