Revision 2166 tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/SchemasSummaryMacro.groovy

SchemasSummaryMacro.groovy (revision 2166)
63 63
		return;
64 64
	}
65 65
		
66
	for (def type : analecCorpus.getStructure().getUnites())
67
		props.addAll(analecCorpus.getStructure().getUniteProperties(type));
66
	for (def type : analecCorpus.getStructure().getSchemas())
67
		props.addAll(analecCorpus.getStructure().getSchemaProperties(type));
68 68

  
69 69
	def selectedSchemas = AnalecUtils.selectSchemasInCorpus(debug, analecCorpus, corpus, schema_ursql, minimum_schema_size, maximum_schema_size, strict_inclusion);
70 70
	if (selectedSchemas.size() > 0)
......
105 105
	print "$p"
106 106
	for (def k : keys) {
107 107
		def propsvalues = new HashSet()
108
		for (def u : allresults[k]) {
109
			propsvalues.add(u.getProp(p))
108
		for (def schema : allresults[k]) {
109
			propsvalues.add(schema.getProp(p))
110 110
		}
111 111
		if (debug) println "k @p values="+propsvalues
112 112
		print "\t"+propsvalues.size();

Also available in: Unified diff