Search in sources :

Example 1 with ApplicationSerializer

use of org.qi4j.library.rdf.model.ApplicationSerializer in project qi4j-sdk by Qi4j.

the class ApplicationXmlTest method testApplicationXml.

@Test
public void testApplicationXml() throws Exception {
    FileConfiguration fileConfig = (FileConfiguration) module.findService(FileConfiguration.class).get();
    ApplicationSerializer parser = new ApplicationSerializer();
    // TODO Fix this
    Iterable<Statement> graph = parser.serialize(application);
    writeN3(graph);
    writeXml(graph);
}
Also used : FileConfiguration(org.qi4j.library.fileconfig.FileConfiguration) Statement(org.openrdf.model.Statement) ApplicationSerializer(org.qi4j.library.rdf.model.ApplicationSerializer) AbstractQi4jTest(org.qi4j.test.AbstractQi4jTest) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 Statement (org.openrdf.model.Statement)1 FileConfiguration (org.qi4j.library.fileconfig.FileConfiguration)1 ApplicationSerializer (org.qi4j.library.rdf.model.ApplicationSerializer)1 AbstractQi4jTest (org.qi4j.test.AbstractQi4jTest)1