Hey,

> After adding nodes and relationships into Neo4J REST server using REST API. 
> How do I read data from the database using SPARQL? Does the database support 
> SPARQL?

Neo4j is not an RDF database in its raw form. Its data model is a bit more 
complicated than RDF and as such, is not amenable to SPARQL which assumes only 
an edge-labeled graph. However, with that said, the pattern matching 
functionality of Cypher is somewhat analogous to SPARQL so you might find 
solace in that. Moreover, you can also use Gremlin for pattern matching, though 
it doesn't have the same look-and-feel as SPARQL (see 
https://github.com/tinkerpop/gremlin/wiki/SPARQL-vs.-Gremlin ).

Next. If you actually have used GraphSail (via Blueprints) to model your data 
as an RDF graph in Neo4j, then you can access it via Sesame SPARQL engine --- 
however, as it stands, not via the Neo4j REST server without rolling your own 
extension. If you are so inclined, you can either use Rexster 
(http://rexster.tinkerpop.com) and its SPARQL "kibble" or steal the code in 
Rexster's SPARQL kibble and make it work for Neo4j Server (shouldn't be more 
than an a few hours work).

        see http://rexster-kibbles.tinkerpop.com/
                        
https://github.com/tinkerpop/rexster-kibbles/tree/master/sparql-kibble

Hope that is clear,
Marko.

http://markorodriguez.com

_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to