Search in sources :

Example 26 with Graph

use of org.openrdf.model.Graph in project qi4j-sdk by Qi4j.

the class ApplicationSerializer method serialize.

public Graph serialize(Application app) {
    Graph graph = new GraphImpl();
    SerializerContext context = new SerializerContext(graph);
    ApplicationVisitor applicationVisitor = new ApplicationVisitor(context);
    ((Application) app).descriptor().accept(applicationVisitor);
    return graph;
}
Also used : Graph(org.openrdf.model.Graph) GraphImpl(org.openrdf.model.impl.GraphImpl) SerializerContext(org.qi4j.library.rdf.serializer.SerializerContext)

Aggregations

Graph (org.openrdf.model.Graph)26 HashGraph (org.sbpax.impl.HashGraph)12 Resource (org.openrdf.model.Resource)10 HashMap (java.util.HashMap)8 Statement (org.openrdf.model.Statement)7 HashSet (java.util.HashSet)6 URI (org.openrdf.model.URI)6 RDFHandlerException (org.openrdf.rio.RDFHandlerException)5 Entry (cbit.vcell.biomodel.meta.registry.Registry.Entry)4 Literal (org.openrdf.model.Literal)4 Value (org.openrdf.model.Value)4 GraphImpl (org.openrdf.model.impl.GraphImpl)4 MiriamResource (cbit.vcell.biomodel.meta.MiriamManager.MiriamResource)3 IOException (java.io.IOException)3 URL (java.net.URL)3 URLConnection (java.net.URLConnection)3 Map (java.util.Map)3 MalformedURLException (java.net.MalformedURLException)2 Date (java.util.Date)2 Set (java.util.Set)2