Exemple #1
0
	ss_handle = smartSpace.getSmartSpace()

	# creazione grafo
	pieces=[]
	pieces.append(PieceOfRDFGraph("ClasseA","IstanzaA","AttributoA"))
	pieces.append(PieceOfRDFGraph("ClasseB","IstanzaB","AttributoB"))
	pieces.append(PieceOfRDFGraph("ClasseC","IstanzaC","AttributoC"))
	pieces.append(PieceOfRDFGraph("ClasseD","IstanzaD","AttributoD"))
	pieces.append(PieceOfRDFGraph("ClasseE","IstanzaE","AttributoE"))
	pieces.append(PieceOfRDFGraph("ClasseF","IstanzaF","AttributoF"))
	pieces.append(PieceOfRDFGraph("ClasseG","IstanzaG","AttributoG"))
	pieces.append(PieceOfRDFGraph("ClasseH","IstanzaH","AttributoH"))
	pieces.append(PieceOfRDFGraph("ClasseI","IstanzaI","AttributoI"))
	pieces.append(PieceOfRDFGraph("ClasseJ","IstanzaJ","AttributoJ"))

	RDFGraph=RDFGraphGenerator(pieces,10,10)
	RDFGraph.setMinimumClassNamespaceSize(5)
	RDFGraph.setMinimumInstanceNamespaceSize(5)
	RDFGraph.setMinimumAttributeNamespaceSize(5)
	RDFGraph.setMinimumAttributeValueSize(5)

	## inserimento del grafo nella SIB (opzionale)
	#RDFGraph.createRDFGraph(node,ss_handle)


	## subscription performance test ("insert" - "remove")
	'''
	SUBGen=SubscriptionsTest(node,ss_handle)
	SUBGen.setSubscriptionsNumber(20)
	SUBGen.setMedia(50)
	SUBGen.setStep(1)
Exemple #2
0
	sleep(5)

	# creazione grafo
	pieces=[]
	pieces.append(PieceOfRDFGraph("ClasseA","IstanzaA","AttributoA"))
	pieces.append(PieceOfRDFGraph("ClasseB","IstanzaB","AttributoB"))
	pieces.append(PieceOfRDFGraph("ClasseC","IstanzaC","AttributoC"))
	pieces.append(PieceOfRDFGraph("ClasseD","IstanzaD","AttributoD"))
	pieces.append(PieceOfRDFGraph("ClasseE","IstanzaE","AttributoE"))
	pieces.append(PieceOfRDFGraph("ClasseF","IstanzaF","AttributoF"))
	pieces.append(PieceOfRDFGraph("ClasseG","IstanzaG","AttributoG"))
	pieces.append(PieceOfRDFGraph("ClasseH","IstanzaH","AttributoH"))
	pieces.append(PieceOfRDFGraph("ClasseI","IstanzaI","AttributoI"))
	pieces.append(PieceOfRDFGraph("ClasseJ","IstanzaJ","AttributoJ"))

	RDFGraph=RDFGraphGenerator(pieces,20,50)
	RDFGraph.setMinimumClassNamespaceSize(5)
	RDFGraph.setMinimumInstanceNamespaceSize(5)
	RDFGraph.setMinimumAttributeNamespaceSize(5)
	RDFGraph.setMinimumAttributeValueSize(100)

	## inserimento del grafo nella SIB (opzionale)	
	RDFGraph.createRDFGraph(node,ss_handle)


	## subscription performance test ("insert" - "remove")
	
	SUBGen=SubscriptionsTest(node,ss_handle)
	SUBGen.setSubscriptionsNumber(1000)
	SUBGen.setRDFGraph(RDFGraph)
	SUBGen.setMedia(50)