Please always answer to the google group. Right now there is no way of inspecting properties + types.
The only thing I can imagine is to set a "sample" of actual properties on the meta-nodes created from the actual nodes. But it will slow down the whole meta-graph creation: It is much easier to write a client program that inspects the graph and creates the meta-graph correctly probably not even in Neo4j itself. By using endpoints like: "node_labels" : "http://localhost:7474/db/data/labels", "relationship_types" : "http://localhost:7474/db/data/relationship/types", http://localhost:7474/db/data/propertykeys MATCH (a)-[r]->(b) WITH labels(a) AS a_labels,type(r) AS rel_type,labels(b) AS b_labels,a,b,r UNWIND a_labels as l UNWIND b_labels as l2 MERGE (meta_a:Node:Meta {name:l}) SET meta_a += a MERGE (meta_b:Node:Meta {name:l2}) SET meta_b += b MERGE (meta_a)-[:OUTGOING]->(meta_r:Relationship:Meta {name:rel_type})-[:INCOMING]->(meta_b) SET meta_r += r MATCH (m:Meta)-[r]-() RETURN m,r On Tue, Nov 18, 2014 at 11:39 AM, Marwa Elabri <[email protected]> wrote: > Good morning > thank you for your answer. In fact, i created a graphical database in > Neo4J using cypher language. and now from this databse i want to generate > the meta-graph or metamodel > i used the following instructions to generate automatically my metamodel > > MATCH (a)-[r]->(b) > WITH labels(a) AS a_labels,type(r) AS rel_type,labels(b) AS b_labels > UNWIND a_labels as l > UNWIND b_labels as l2 > MERGE (a:Node:Meta {name:l}) > MERGE (b:Node:Meta {name:l2}) > MERGE (a)-[:OUTGOING]->(r:Relationship:Meta {name:rel_type})-[:INCOMING]->(b) > MATCH (m:Meta)-[r]-() > RETURN m,r > > but using these instruction i can generate the metamodel with only nodes and > relationships (no properties) now i want to add properties to my metamodel > (enteties and relationships) I learned Neo4j and cypher in internet. I > searched but i didn't find a method that i can use. > Please if you have any idea, i really need you help because it's the first > step of my contribution. i must found a method that generates a complete > metamodel from any existant data base. > Thank you > > > > On Tuesday, November 18, 2014 1:44 AM, Michael Hunger < > [email protected]> wrote: > > > Btw. there is also a neo4j-fr google group if you're more familiar with > french. > > Unfortunately I cannot understand your question, you have to provide more > details on what you did and what you actually want to do. > > Michael > > On Tue, Nov 18, 2014 at 12:14 AM, Marwa Elabri <[email protected]> > wrote: > > hello > i'm student. i started my thesis a year a go and i have to code with neo4j > to create my meta graph automatically from an exis > *ted GDB but the problem that i found some example how to create a meta > graph but just nodes and relationships and me i need to add properties > automatically because it's the most important thing in my contribution i > tried to do copy of my nodes but it's was not good solution please i > really need your help if you have ideas * > > *Thank you * > > > > > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
