dkuppitz / sparql-gremlin Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
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!
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]
Sorry just a beginner in this . So lot of confusion .
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!
These are valid property names. Provide another selector for the tokens, like:
SELECT ?id ?label
WHERE { ?element t:id ?id . ?element t:label ?label }
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
}
Currently, it looks like SPARQL-Gremlin only works for OLTP.
Hello,
What is the status of this project?
Best
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.