Exemplo n.º 1
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,40,30)
	RDFGraph.setMinimumClassNamespaceSize(5)
	RDFGraph.setMinimumInstanceNamespaceSize(5)
	RDFGraph.setMinimumAttributeNamespaceSize(5)
	RDFGraph.setMinimumAttributeValueSize(5)

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

	## subscription performance test ("insert" - "remove")
	
	SUBGen=SubscriptionsTest(node,ss_handle)
	SUBGen.setSubscriptionsNumber(10)
	SUBGen.setMedia(50)
	SUBGen.setStep(1)
Exemplo n.º 2
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)