Examples of graph()


Examples of com.complexible.common.openrdf.util.GraphBuilder.graph()

    }
    catch (InvocationTargetException e) {
      throw new InvalidRdfException("Cannot invoke method", e);
    }

    return aBuilder.graph();
  }

  /**
   * Transform a list of Java Objects into the corresponding RDF values
   * @param theAccess the accessor for the value
View Full Code Here

Examples of com.complexible.stardog.api.Connection.graph()

 
  public <T> List<T> construct(String sparql,  Map<String, Object> args, GraphMapper<T> mapper) {
    Connection connection = dataSource.getConnection();
    GraphQueryResult result = null;
    try {
      GraphQuery query = connection.graph(sparql);
     
      if (args != null) {
        for (Entry<String, Object> arg : args.entrySet()) {          
          query.parameter(arg.getKey(), arg.getValue());
        }
View Full Code Here

Examples of com.google.inject.grapher.InjectorGrapher.graph()

        renderer.setOut(out).setRankdir("TB");
        InjectorGrapher g = localInjector.getInstance(InjectorGrapher.class).of(injector);
        if (roots != null) {
            g.rootedAt(roots);
        }
        g.graph();
        return fixupGraph(baos.toString("UTF-8"));
    }

    /*
     * Work-arounds for bugs in the Grapher package
View Full Code Here

Examples of com.netflix.governator.guice.Grapher.graph()

   
    @Override
    public void call(Injector injector) {
        Grapher grapher = injector.getInstance(Grapher.class);
        try {
            text = grapher.graph();
        } catch (Exception e) {
        }
    }
   
    public String getText() {
View Full Code Here

Examples of com.tinkerpop.gremlin.giraph.structure.GiraphElement.graph()

                final Step identityStep = new IdentityStep(traversal);
                identityStep.setLabel(label);
                TraversalHelper.insertStep(identityStep, 0, traversal);
            }
            TraversalHelper.insertStep(new HasStep(traversal, new HasContainer(T.id, Compare.eq, element.id())), 0, traversal);
            TraversalHelper.insertStep(new GiraphGraphStep<>(traversal, element.getClass(), (GiraphGraph) element.graph()), 0, traversal);
        }
    }

    public Set<Class<? extends TraversalStrategy>> applyPost() {
        return POSTS;
View Full Code Here

Examples of com.tinkerpop.gremlin.process.computer.ComputerResult.graph()

    public Future<Traversal<S, E>> traversal() {
        return CompletableFuture.<Traversal<S, E>>supplyAsync(() -> {
            try {
                final TraversalVertexProgram vertexProgram = this.program();
                final ComputerResult result = this.graphComputer.program(vertexProgram).submit().get();
                final GraphTraversal<S, S> traversal = result.graph().<S>of();
                return traversal.addStep(new ComputerResultStep<>(traversal, result, vertexProgram, true));
            } catch (final Exception e) {
                throw new IllegalStateException(e.getMessage(), e);
            }
        });
View Full Code Here

Examples of com.tinkerpop.gremlin.process.computer.ComputerResult.graph()

    @Test
    @LoadGraphWith(MODERN)
    public void shouldExecutePageRank() throws Exception {
        final ComputerResult result = g.compute().program(PageRankVertexProgram.build().create()).submit().get();
        result.graph().V().forEachRemaining(v -> {
            assertTrue(v.keys().contains("name"));
            assertTrue(v.hiddenKeys().contains(Graph.Key.unHide(PageRankVertexProgram.PAGE_RANK)));
            final String name = v.value("name");
            final Double pageRank = v.value(PageRankVertexProgram.PAGE_RANK);
            if (name.equals("marko"))
View Full Code Here

Examples of com.tinkerpop.gremlin.process.computer.ComputerResult.graph()

    public default Traversal<S, E> submit(final GraphComputer computer) {
        try {
            this.applyStrategies(TraversalEngine.COMPUTER);
            final TraversalVertexProgram vertexProgram = TraversalVertexProgram.build().traversal(this::clone).create();
            final ComputerResult result = computer.program(vertexProgram).submit().get();
            final GraphTraversal<S, S> traversal = result.graph().of();
            return traversal.addStep(new ComputerResultStep<>(traversal, result, vertexProgram, true));
        } catch (final Exception e) {
            throw new IllegalStateException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of eas.startSetup.marbBuilder.zeichenModi.ArrowMaster.graph()

                0,
                0,
                this.umg.getFeld()[0].length - 100,
                this.umg.getFeld()[0].length - 100).erzeuge(
                        this.vAuts()[0], aktKnot);
        List<Object> zeichenListe = master.graph(darstellung);
        buffImgAut = Geometry2D.erzBuffImgAusObjekten(zeichenListe);
       
        Polygon2D rahmen = Geometry2D.rahmen(zeichenListe);
       
        BufferedImage zwisch = new BufferedImage(
View Full Code Here

Examples of eas.startSetup.marbBuilder.zeichenModi.ArrowMaster.graph()

        ArrowMaster master = new ArrowMaster(params);
       
        BufferedImage img;
        DarstModEA dar = new DarstModEA(0, 0, width, height);
        DargestellterGraph darGraph = dar.erzeuge(this, null);
        List<Object> drawList = master.graph(darGraph);
        img = Geometry2D.erzBuffImgAusObjekten(drawList);
       
        return img;
    }
}
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.