Hi,
I apologize. When I said 1-to-1, I spoke with exaggeration. You will need to
create a GraphSail from a "blank Neo4jGraph" initially.
Sail sail = new GraphSail(new Neo4jGraph("/tmp/neo4jgraphsail"))
At that point, you can move back and forth. The reason being, GraphSail
requires indices that are appropriate for efficient statement/SPARQL type
queries. Moreover, you can't simply take a Neo4jGraph that you already have an
make it an RDF triple/quad store. This is because RDF requires URIs, blank
nodes, and literals for it to work -- thus, arbitrary properties on a graph are
not allowed through Sail. So, 1-to-1 should read: "Once you have created a
GraphSail, you can GraphSail.getGraph() to work with your graph using native
APIs."
Apologies for the confusion,
Marko.
http://markorodriguez.com
On Feb 22, 2011, at 10:01 AM, Alfredas Chmieliauskas wrote:
> This looks great.
> I've encountered a problem when following the example. Here I'm trying
> to create a sail out of Neo4jGraph.
>
> java.lang.RuntimeException: No such index exists: edges
> at
> com.tinkerpop.blueprints.pgm.impls.neo4j.Neo4jGraph.getIndex(Neo4jGraph.java:113)
> at
> com.tinkerpop.blueprints.pgm.oupls.sail.GraphSail.<init>(GraphSail.java:88)
> at
> com.tinkerpop.blueprints.pgm.oupls.sail.GraphSail.<init>(GraphSail.java:66)
>
>
> Any ideas?
>
> Thanks,
>
> Alfredas
>
>
> On Tue, Feb 22, 2011 at 4:17 PM, Marko Rodriguez <[email protected]> wrote:
>> Hi,
>>
>>> Did anyone have any experience with Neo4j + RDF + SPARQL? Or are there any
>>> resources worth reading? If so, could someone please point me to such
>>> resources?..
>>
>> There is a 1-to-1 RDF mapper in Blueprints. It turns any Blueprints GraphDB
>> into a Sail-based RDF triple/quad store. Given the 1-to-1 nature, you can
>> work with your data from the perspective of the Blueprints API, Sail API, or
>> Neo4j API.
>>
>> https://github.com/tinkerpop/blueprints/wiki/Sail-Ouplementation
>>
>> Through Sail you can do SPARQL, SeRQL, RQL, and Gremlin.
>>
>> See ya,
>> Marko.
>>
>> http://markorodriguez.com
>> _______________________________________________
>> Neo4j mailing list
>> [email protected]
>> https://lists.neo4j.org/mailman/listinfo/user
>>
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user