
it.unitn.disi.smatch.loaders.context.TabContextLoaderIt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of s-match Show documentation
Show all versions of s-match Show documentation
A version of S-Match semantic matching framework for Open Data
The newest version!
package it.unitn.disi.smatch.loaders.context;
import it.unitn.disi.smatch.data.trees.IContext;
import it.unitn.disi.smatch.data.trees.INode;
import java.util.Iterator;
/**
* Version with an iterator.
*
* @author Aliaksandr Autayeu
*/
public class TabContextLoaderIt extends TabContextLoader {
@Override
protected void createIds(IContext result) {
nodesParsed = 0;
for (Iterator i = result.getNodes(); i.hasNext();) {
i.next().getNodeData().setId("n" + Integer.toString(nodesParsed));
nodesParsed++;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy