Pensavo tu avessi uno scenraio del tipo Classe ArticoliScentifici, e una 
Classe Citta. (dato che sono due entita distinte)
Una situazione simile a questa:
I thought you had a scenario like ArticoliScentifici class, and a City 
Class. (Since they are two separate entities)
A situation similar to this:


<https://lh3.googleusercontent.com/-wHmihCK5Gk8/VwY4fUjAiRI/AAAAAAAAAIU/-vP3GVVMdRonQkPd1oANsl2yhwnoGqStw/s1600/Schermata%2Bda%2B2016-04-07%2B12-08-21.png>





<https://lh3.googleusercontent.com/-2DzxyaZ_2HQ/VwY4kaWrhdI/AAAAAAAAAIY/j_tzDe2RH_0waOQQFuVfi_hQmcq74E9Tg/s1600/Schermata%2Bda%2B2016-04-07%2B12-08-45.png>


Ed da qui poter fare varie query, giusto come esempio:
And from here you can make various queries, just as an example:

1) Articoli pubblicati dalla citta di Catania. Articles published by the 
city of Catania.

select NomeArticolo, dataArticolo from (select expand(in('pubblicatoIn')) 
from citta where nomeCitta = "Catania")

----+------+-------------------+-------------------
#   |@CLASS|NomeArticolo       |dataArticolo       
----+------+-------------------+-------------------
0   |null  |Onde Gravitazionali|2016-02-01 00:00:00
1   |null  |Super Magnete      |2015-03-05 00:00:00
----+------+-------------------+-------------------


2) Le citta che hanno pubblicato almeno due articoli. Cities that have 
published at least two articles

select nomeCitta from citta where in('pubblicatoIn').size() > 1

----+------+---------
#   |@CLASS|nomeCitta
----+------+---------
0   |null  |Catania  
1   |null  |Milano   
----+------+---------


3) articoli pubblicati da milano che sono inerenti alla 'fusione'. 
published by milano that are inherent to the 'fusion'

select NomeArticolo from ArticoloScentifico where NomeArticolo lucene 
'fusione*' 
----+------+----------------
#   |@CLASS|NomeArticolo    
----+------+----------------
0   |null  |Fusione a freddo
----+------+----------------


Vedo che il tuo DB รจ strutturato in maniera divera :)
I see your DB is structured differently.

Cosa intendi con "componenti fortemente connesse"??
What do you mean "strongly connected components" ??
<https://lh3.googleusercontent.com/-wHmihCK5Gk8/VwY4fUjAiRI/AAAAAAAAAIU/-vP3GVVMdRonQkPd1oANsl2yhwnoGqStw/s1600/Schermata%2Bda%2B2016-04-07%2B12-08-21.png>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" 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.

Reply via email to