Sail sail = new GraphSail(new TinkerGraph()); against
Sail sail = new GraphSail(new Neo4jGraph('target/db'));
or any other implementation. For Neo4j, please refer to http://neo4j.org.
Does that help?
Cheers,
/peter neubauer
GTalk: neubauer.peter
Skype peter.neubauer
Phone +46 704 106975
LinkedIn http://www.linkedin.com/in/neubauer
Twitter http://twitter.com/peterneubauer
http://www.neo4j.org - Your high performance graph database.
http://startupbootcamp.org/ - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
However, I think there is a lot of logic and indexing going on the
Joshs SAIL implementation that you might want to examine, since it is
not reflected in the raw graph structure.
Just put something up, inspect and report back is my initial reaction :)
Cheers,
/peter neubauer
GTalk: neubauer.peter
Skype peter.neubauer
Phone +46 704 106975
LinkedIn http://www.linkedin.com/in/neubauer
Twitter http://twitter.com/peterneubauer
http://www.neo4j.org - Your high performance graph database.
http://startupbootcamp.org/ - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
That's correct. It uses a hybrid graph-based and index-based solution
for fast query answering. However, all of RDF data is represented in
the graph structure; the indexes merely add a performance boost. Just
treat GraphSail as you would any other Sail implementation, loading
data in through addStatement and reading it back out through
getStatements or evaluate (or using any of the various helper classes
which work with Sail and Repository). In parallel, though, you can
examine and traverse the resulting graph at the Neo4j level.
Josh
It might be, if it weren't for the fact that in RDF, you can have
multiple values for the same predicate (so if you made these into
vertex properties, you would have to deal with value collections).
It's also useful, and necessary in Named Graph contexts, to be able to
attach metadata to the relationship between the subject
vertex/resource and the predicate value.
Best,
Josh
They should be.
> Does loadRDF support N-Quads ?
No, but N-Quads support could be added (via SesameTools). Feel free
to make a ticket if you think this would be useful.
Josh
>> Are named graphs fully supported in SailGraph
>
> They should be.
They are. Every edge has an 'ng' property.
Marko.
Well, you can express the same things (modulo some corner cases) with
TriX or TriG. But as long as we're talking about it, I have just
added N-Quads support to SailGraph. Marko is deploying a snapshot
now.
Best,
Josh