Examples of GraphView


Examples of com.hp.hpl.jena.sparql.core.GraphView

   
    @Test public void graphDSG_basic_1()
    {
        Graph g = makeDefaultGraph(baseDSG) ;
        assertTrue(g instanceof GraphView) ;
        GraphView gv = (GraphView)g ;
        assertEquals(baseDSG, gv.getDataset()) ;
        assertEquals(null, gv.getGraphName()) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.core.GraphView

    @Test public void graphDSG_basic_2()
    {
        Node gn1 = SSE.parseNode("<g1>") ;
        Graph g = makeNamedGraph(baseDSG, gn1) ;
        assertTrue(g instanceof GraphView) ;
        GraphView gv = (GraphView)g ;
        assertEquals(baseDSG, gv.getDataset()) ;
        assertEquals(gn1, gv.getGraphName()) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.core.GraphView

    private List<Node> query(String queryString, int limit, ExecutionContext execCxt) {
        // use the graph information in the text index if possible
        if (server.getDocDef().getGraphField() != null
            && execCxt.getActiveGraph() instanceof GraphView) {
            GraphView activeGraph = (GraphView)execCxt.getActiveGraph() ;
            if (!Quad.isUnionGraph(activeGraph.getGraphName())) {
                String uri =
                    activeGraph.getGraphName() != null
                    ? TextQueryFuncs.graphNodeToString(activeGraph.getGraphName())
                    : Quad.defaultGraphNodeGenerated.getURI() ;
                String escaped = QueryParser.escape(uri) ;
                String qs2 = server.getDocDef().getGraphField() + ":" + escaped ;
                queryString = "(" + queryString + ") AND " + qs2 ;
            }
View Full Code Here

Examples of fbench.graph.GraphView

    // rightPanel.add(treeView, BorderLayout.CENTER);
    JSplitPane rightPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, treeView, propsView);
    rightPane.setResizeWeight(1.0);
    rightPane.setPreferredSize(new Dimension(150, 250));

    graphView = new GraphView(document);

    JScrollPane graphicView = new JScrollPane(graphView);
    graphicView.setPreferredSize(new Dimension(550, 250));

    rightPane.setMaximumSize(new Dimension());
View Full Code Here

Examples of fbench.graph.GraphView

  public GraphView getGraphView() {
    return graphView;
  }

  public GraphView getGraphView(Document doc) {
    return graphView = new GraphView(doc);
  }
View Full Code Here

Examples of fbench.graph.GraphView

  }
 
  private class AcceptDeleteButtonListener implements ActionListener{
    public void actionPerformed(ActionEvent evt){
      deleteElement(document.getDocumentElement().getChildNodes());
      GraphView gv = getGraphView();
      gv.setElement(getModelElement());
      LibraryElementView lev = (LibraryElementView)(gv.getParent().getParent().getParent().getParent().getParent());
      lev.getTextModel().setElement(document.getDocumentElement());
      //getGraphView().setElement(getModelElement());
      dispose();
    }
View Full Code Here

Examples of net.sf.nfp.mini.view.GraphView

    super.setView(v);
    this.view = (GraphView) v;

    selectCommand = new ActionCommand("${select}", Command.SCREEN, 1) {
      public Navigation execute(Displayable d) throws Exception {
        GraphView view = (GraphView) d;
        Observation observation = view.getSelectedObservation();
        return new Navigation("input", period, observation);
      }
    };
    view.addCommand(selectCommand);
    view.addCommand(new ActionCommand("${enter.new}", Command.SCREEN, 2) {
      public Navigation execute(Displayable d) throws Exception {
        return new Navigation("input", period, new Observation());
      }
    });
    view.addCommand(new ActionCommand("${history}", Command.SCREEN, 5) {
      public Navigation execute(Displayable d) throws Exception {
        return new Navigation("history", period);
      }
    });
    view.addCommand(new ActionCommand("${delete}", Command.SCREEN, 3){
      public Navigation execute(Displayable d) throws Exception {
        Observation observation = view.getSelectedObservation();
        if(observation != null) {
          LogicDAO.removeObservation(controler, observation, period);
          return new Navigation("graph", period, observation);
        }else return null;
      }
    });
    view.setKeyListener(this);
    view.setExceptionListener(controler);
  }
View Full Code Here

Examples of net.sf.nfp.mini.view.GraphView

        return new Page(new InputModel(NFPControler.this), new InputView());
      }
    });
    pages.put("graph", new LazyInit() {
      public Page create() {
        return new Page(new GraphModel(NFPControler.this), new GraphView());
      }
    });
    pages.put("history", new LazyInit() {
      public Page create() {
        return new Page(new HistoryModel(NFPControler.this), new HistoryView());
View Full Code Here

Examples of org.gephi.graph.api.GraphView

        GraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();
        Graph result = processor.process((AbstractQueryImpl) query, graphModel);
//        System.out.println("#Nodes: " + result.getNodeCount());
//        System.out.println("#Edges: " + result.getEdgeCount());
        if (running) {
            GraphView view = result.getView();
            graphModel.setVisibleView(view);
            if (model.getCurrentResult() != null) {
                graphModel.destroyView(model.getCurrentResult());
            }
            model.setCurrentResult(view);
View Full Code Here

Examples of org.gephi.graph.api.GraphView

            VisualizationController visController = Lookup.getDefault().lookup(VisualizationController.class);
            if (visController != null) {
                visController.selectNodes(result.getNodes().toArray());
                visController.selectEdges(result.getEdges().toArray());
            }
            GraphView view = result.getView();
            model.setCurrentResult(view);
        } else {
            //destroy view
            graphModel.destroyView(result.getView());
        }
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.