Giter VIP home page Giter VIP logo

sparql-gremlin's People

Contributors

dkuppitz avatar okram avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sparql-gremlin's Issues

conversion using binary file (sparql-gremlin.sh) gives an error

Hi,

I try to use this library. It would be great for my project if it works :)

My running env: Ubuntu 16.04, Java: openjdk version "1.8.0_111"
I succeeded at building the proejct by "mvn install".
However when I do "./bin/sparql-gremlin.sh -f example.sparql", it gives the following error:
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:java (default-cli) on project sparql-gremlin: An exception occured while executing the Java class. null: InvocationTargetException: Unexpected predicate: http://www.w3.org/1999/02/22-rdf-syntax-ns#type -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Can I get some help on this error?

Thanks!

unresolved dependency

running gremlin-console-3.1.0-incubating
on ububtu 14 java 1.8

gremlin> :install com.datastax sparql-gremlin 0.1
==>Error grabbing Grapes -- [unresolved dependency: com.datastax#sparql-gremlin;0.1: not found]

Exception in thread "main" java.lang.Error: Unresolved compilation problem

Hi,

I'm interested to make some queries from SPARQL and translate it to gremlin.
So I'm trying to compile sparql-gremlin using eclipse (after mvn eclipse:eclipse) and I got this exception.

Exception in thread "main" java.lang.Error: Unresolved compilation problem: The method reduce(GraphTraversal<capture#25-of ?,capture#26-of ?>, BinaryOperator<GraphTraversal<capture#25-of ?,capture#26-of ?>>) in the type Stream<GraphTraversal<capture#25-of ?,capture#26-of ?>> is not applicable for the arguments (GraphTraversal<Vertex,capture#33-of ?>, BinaryOperator<GraphTraversal<capture#25-of ?,capture#26-of ?>>) at com.datastax.sparql.gremlin.SparqlToGremlinCompiler.visit(SparqlToGremlinCompiler.java:122) at org.apache.jena.sparql.algebra.op.OpFilter.visit(OpFilter.java:103) at org.apache.jena.sparql.algebra.OpWalker$WalkerVisitor.visit1(OpWalker.java:85) at org.apache.jena.sparql.algebra.OpWalker$WalkerVisitor.visitFilter(OpWalker.java:91) at org.apache.jena.sparql.algebra.OpVisitorByType.visit(OpVisitorByType.java:112) at org.apache.jena.sparql.algebra.op.OpFilter.visit(OpFilter.java:103) at org.apache.jena.sparql.algebra.OpWalker$WalkerVisitor.visit1(OpWalker.java:83) at org.apache.jena.sparql.algebra.OpVisitorByType.visitModifer(OpVisitorByType.java:44) at org.apache.jena.sparql.algebra.OpVisitorByType.visit(OpVisitorByType.java:160) at org.apache.jena.sparql.algebra.op.OpProject.visit(OpProject.java:47) at org.apache.jena.sparql.algebra.OpWalker.walk(OpWalker.java:43) at org.apache.jena.sparql.algebra.OpWalker.walk(OpWalker.java:33) at com.datastax.sparql.gremlin.SparqlToGremlinCompiler.convertToGremlinTraversal(SparqlToGremlinCompiler.java:59) at com.datastax.sparql.gremlin.SparqlToGremlinCompiler.convertToGremlinTraversal(SparqlToGremlinCompiler.java:96) at com.datastax.sparql.gremlin.SparqlToGremlinCompiler.convertToGremlinTraversal(SparqlToGremlinCompiler.java:100) at com.datastax.sparql.ConsoleCompiler.main(ConsoleCompiler.java:105)
And I am using OS X 10.12.1

My version of java is
java version "1.8.0_101" Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Can someone give a little help to get this running please?

Cheers!

For bound values (not ? variables) the vertex ID should be used.

I don't know if this will break the SPARQL specification, but it would be nice to be able to do:

SELECT ?x WHERE {
  1 e:knows ?x
}

That is 1 is v[1]. This this makes it REALLY nice for RDF-based graph systems that support the Gremlin virtual machine as its just a URI.

SELECT ?x WHERE {
  http://blah#1 e:knows ?x
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.