Hi,
Assuming that you have 2 Labels: -
1. "App" - For all nodes which are of type "App". All Nodes labelled with
"App" defines a property with the value as the name of App. example - "name
= App A"
2. "DataSet" - for all nodes which are of type "DataSet". All Nodes
labelled with "DataSet" defines a property with the value as the name of
DataSet. example - "name = DataSet"
if this is the model than below query should work: -
match (n:DataSet {name:"DataSet B"})-[r]-(n1) return n,r,n1;
if it does not, then please post your creation script.
Thanks,
Sumit
On Friday, 28 August 2015 16:33:59 UTC+5:30, [email protected] wrote:
>
> I am a novice to GraphDB and trying to construct a graph to show
> application relations in Neo4j DB. The main objective is to have a graph
> that will show different datas that flow from one application to another
> and be able to search for flow of specific data.
>
> Eg:
>
> DataSet A
> DataSet B
> DataSet C
> DataSet D
>
> App A
> App B
> App C
> App D
> App E
>
> This is how the relations will build up over a period of time:
> DataSet A -GoesTo->App A -SendsTo {DataOf: "DataSet A"}->App B
> DataSet B -GoesTo->App A -SendsTo {DataOf: "DataSet A, DataSet B"}->App B
> - SendsTo {DataOf: "DataSet B"}->App C - SendsTo {DataOf: "DataSet B"}->App
> E
> DataSet C -GoesTo->App C -SendsTo {DataOf: "DataSet C"}->App D - SendsTo
> {DataOf: "DataSet C"}->App E
> DataSet D -GoesTo->App B -SendsTo {DataOf: "DataSet B, DataSet D"}->App C
> - SendsTo {DataOf: "DataSet B, DataSet D"}->App E
>
> The DataOf value of different relations will have the different data sets
> appended to it as more data is added. I have read through some cases and
> going through the documentation to figure out whether the approach I am
> taking is the right one or I should create a new relation for every Data
> Set, and I am unable to find a case like mine. I need advice from those who
> have the know-how, how I should approach this. If the approach I am taking
> is right, then how can I query flow of specific Data Set. I have put in
> some data in the DB and my queries are not working when I ask it to match
> only DataSet B or DataSet D, etc.
>
> Thanks
>
>
--
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.