Message from discussion
General help - new to know how to set up this db in Neo4j
Date: Fri, 10 Aug 2012 14:28:08 -0700 (PDT)
From: "Max De Marzi Jr." <maxdema...@gmail.com>
To: neo4j@googlegroups.com
Message-Id: <c360924f-ba42-438c-9f6d-78953129b93a@googlegroups.com>
In-Reply-To: <16625976-0250-468a-888f-1567d4cec324@googlegroups.com>
References: <16625976-0250-468a-888f-1567d4cec324@googlegroups.com>
Subject: Re: General help - new to know how to set up this db in Neo4j
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_94_24791611.1344634088715"
------=_Part_94_24791611.1344634088715
Content-Type: multipart/alternative;
boundary="----=_Part_95_27226227.1344634088716"
------=_Part_95_27226227.1344634088716
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Lisa,
Sounds pretty straight forward:
Create unique noun nodes (noun_index, using the key "word", and value <the
actual word> for uniqueness)
Create unique adjective nodes (adjective_index, using the key "word", and
value <the actual word> for uniqueness)
Create unique "modified_by" relationships between them.
(modified_by_index, using the key "adjective_noun" and the value
"adjective.neo_id + "_" + noun.neo_id [or you can use the actual words
instead of ids, up to you]). Put your pmi_score and metaphor_score on the
relationship.
Regards,
Max
On Thursday, August 9, 2012 5:12:09 PM UTC-5, Lisa Gandy wrote:
>
> Hi all,
> Today I was looking for a solution oh how to store a graph I will be
> creating in a database and happened upon Neo4j, it seems very interesting,
> I am a python user mostly, so I will be using the python embedded version.
> However looking through the documentation there is I am not
> sure how to set up this graph.....
>
> I have a set of adjectives (a1, a2, a3, a4) and a set up of nouns
> (n1,n2,n3,n4), the adjectives modify the nouns (that would be a
> relationship) and multiple adjectives can connect to a noun. The
> connection between the adjectives and nouns also has two attributes
> (pmi_score and metaphor_score) these attributes exist only between one noun
> and adjective connection, each noun and adjective connection will have a
> unique form of these attributes. How do you suggest I create this???
>
> Thanks, sorry this is vague, I am just starting, and was hoping to get
> your expertise so I can get started quickly.
>
> Thanks,
> Lisa Gandy
>
------=_Part_95_27226227.1344634088716
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Lisa,<div><br></div><div>Sounds pretty straight forward:</div><div><br></di=
v><div>Create unique noun nodes (noun_index, using the key "word", and valu=
e <the actual word> for uniqueness)<div>Create unique adjective nodes=
(adjective_index, using the key "word", and value <the actual word=
> for uniqueness)</div><div>Create unique "modified_by" relationships be=
tween them. (modified_by_index, using the key "adjective_noun" and th=
e value "adjective.neo_id + "_" + noun.neo_id [or you can use the actual wo=
rds instead of ids, up to you]). Put your pmi_score and metaphor_scor=
e on the relationship.<br><br>Regards,</div><div>Max</div><div><br>On Thurs=
day, August 9, 2012 5:12:09 PM UTC-5, Lisa Gandy wrote:<blockquote class=3D=
"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc s=
olid;padding-left: 1ex;">Hi all,<div>Today I was looking for a solution oh =
how to store a graph I will be creating in a database and happened upon Neo=
4j, it seems very interesting,</div><div>I am a python user mostly, so I wi=
ll be using the python embedded version. However looking through the =
documentation there is I am not</div><div>sure how to set up this graph....=
.</div><div><br></div><div>I have a set of adjectives (a1, a2, a3, a4) and =
a set up of nouns (n1,n2,n3,n4), the adjectives modify the nouns (tha=
t would be a relationship) and multiple adjectives can connect to a noun. &=
nbsp;The connection between the adjectives and nouns also has two attribute=
s (pmi_score and metaphor_score) these attributes exist only between one no=
un and adjective connection, each noun and adjective connection will have a=
unique form of these attributes. How do you suggest I create this???=
</div><div><br></div><div>Thanks, sorry this is vague, I am just starting, =
and was hoping to get your expertise so I can get started quickly.</div><di=
v><br></div><div>Thanks,</div><div>Lisa Gandy</div></blockquote></div></div=
>
------=_Part_95_27226227.1344634088716--
------=_Part_94_24791611.1344634088715--