Examples of JenaJungGraph


Examples of net.rootdev.jenajung.JenaJungGraph

  public static void main(String[] args) {
        FileManager fm = FileManager.get();
        fm.addLocatorClassLoader(ExampleJenaJUNG_01.class.getClassLoader());
        Model model = fm.loadModel("data/data.nt");

        Graph<RDFNode, Statement> g = new JenaJungGraph(model);
        Layout<RDFNode, Statement> layout = new FRLayout<RDFNode, Statement>(g);

        int width = 1400;
        int height = 800;
View Full Code Here

Examples of net.rootdev.jenajung.JenaJungGraph

  public static void main(String[] args) {
        FileManager fm = FileManager.get();
        fm.addLocatorClassLoader(ExampleJenaJUNG_02.class.getClassLoader());
        Model model = fm.loadModel("data/data.nt");

        Graph<RDFNode, Statement> g = new JenaJungGraph(model);

    Layout<RDFNode, Statement> layout = new FRLayout<RDFNode, Statement>(g);
    layout.setSize(new Dimension(600, 400));
    BasicVisualizationServer<RDFNode, Statement> viz = new BasicVisualizationServer<RDFNode, Statement>(layout);
    RenderContext<RDFNode, Statement> context = viz.getRenderContext();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.