2011/1/19 Adnan Duric <[email protected]>: > Hi list, > > I'm currently writing a quickstart wiki on building an RDF store an querying > using SPARQL. > > When instantiating a* org.neo4j.rdf.sparql.Neo4jSparqlEngine*, the required > parameters are: *Neo4jSparqlEngine( RepresentationStrategy > representationStrategy, MetaModelProxy metaModel )*. I understand the > representationStrategy for the RDF store, but I don't understand what the > MetaModelProxy is used for. I assume it acts as a bridge between *org.neo4j* > .*rdf.sparql.Neo4jLogic *and *name.levering.ryan.sparql.model.logic.* *classes > because *SPARQLQueryLogic* needs an implemented model for which to query > against.
Yup, you're correct about that. The use of MetaModelProxy isn't very defined, since you may or may not use the neo4j-meta-model with your rdf store. There has been some initial work on making a Neo4j graph database an RDF store via the Tinkerpop stack <http://www.tinkerpop.com/>, more specifically here <https://github.com/tinkerpop/blueprints/wiki/Sail-Implementation>. Maybe that's something to look at as well. > > For this, I created a MetaModelProxyImpl class that has the following > methods: *getMetaModel, isTypeProperty, getCount, addClassNode*. > > Is this the proper way to do things? What is the specific purpose for > implementing a MetaModelProxy? What methods are required in this class? > > > Regards, > > > Adnan > _______________________________________________ > Neo4j mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [[email protected]] Hacker, Neo Technology www.neotechnology.com _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

