本文整理了Java中edu.isi.karma.modeling.alignment.Alignment.getGraph()
方法的一些代码示例,展示了Alignment.getGraph()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Alignment.getGraph()
方法的具体详情如下:
包路径:edu.isi.karma.modeling.alignment.Alignment
类名称:Alignment
方法名:getGraph
暂无
代码示例来源:origin: usc-isi-i2/Web-Karma
UndirectedGraph<Node, DefaultLink> undirectedGraph = new AsUndirectedGraph<>(this.getGraph());
代码示例来源:origin: usc-isi-i2/Web-Karma
oldGraph = (DirectedWeightedMultigraph<Node, DefaultLink>)alignment.getGraph().clone();
代码示例来源:origin: usc-isi-i2/Web-Karma
initialGraph = (DirectedWeightedMultigraph<Node, DefaultLink>)alignment.getGraph().clone();
代码示例来源:origin: usc-isi-i2/Web-Karma
@SuppressWarnings("unchecked")
@Override
public UpdateContainer doIt(Workspace workspace) throws CommandException {
logCommand(logger, workspace);
Alignment alignment = AlignmentManager.Instance().getAlignment(
alignmentId);
// Save the original alignment for undo
oldAlignment = alignment.getAlignmentClone();
oldGraph = (DirectedWeightedMultigraph<Node, DefaultLink>) alignment
.getGraph().clone();
try {
alignment.deleteForcedInternalNode(nodeId);
if(!this.isExecutedInBatch())
alignment.align();
} catch (JSONException e) {
logger.error("Error adding Internal Node:" , e);
}
return WorksheetUpdateFactory.createSemanticTypesAndSVGAlignmentUpdates(worksheetId, workspace);
}
代码示例来源:origin: usc-isi-i2/Web-Karma
.getGraph().clone();
代码示例来源:origin: usc-isi-i2/Web-Karma
.getGraph().clone();
OntologyManager ontMgr = workspace.getOntologyManager();
代码示例来源:origin: usc-isi-i2/Web-Karma
@SuppressWarnings("unchecked")
@Override
public UpdateContainer doIt(Workspace workspace) throws CommandException {
Alignment alignment = AlignmentManager.Instance().getAlignment(
alignmentId);
OntologyManager ontMgr = workspace.getOntologyManager();
// Save the original alignment for undo
oldAlignment = alignment.getAlignmentClone();
oldGraph = (DirectedWeightedMultigraph<Node, DefaultLink>) alignment
.getGraph().clone();
UpdateContainer uc = this.deleteLink(alignment, ontMgr, edge);
if(!this.isExecutedInBatch())
alignment.align();
uc.append(this.computeAlignmentAndSemanticTypesAndCreateUpdates(workspace));
return uc;
}
代码示例来源:origin: usc-isi-i2/Web-Karma
@SuppressWarnings("unchecked")
@Override
public UpdateContainer doIt(Workspace workspace) throws CommandException {
Alignment alignment = AlignmentManager.Instance().getAlignment(
alignmentId);
OntologyManager ontMgr = workspace.getOntologyManager();
// Save the original alignment for undo
oldAlignment = alignment.getAlignmentClone();
oldGraph = (DirectedWeightedMultigraph<Node, DefaultLink>) alignment
.getGraph().clone();
UpdateContainer uc = this.addNewLink(alignment, ontMgr, edge);
if(!this.isExecutedInBatch())
alignment.align();
uc.append(this.computeAlignmentAndSemanticTypesAndCreateUpdates(workspace));
return uc;
}
代码示例来源:origin: usc-isi-i2/Web-Karma
@SuppressWarnings("unchecked")
@Override
public UpdateContainer doIt(Workspace workspace) throws CommandException {
Alignment alignment = AlignmentManager.Instance().getAlignment(
alignmentId);
Worksheet worksheet = workspace.getWorksheet(worksheetId);
OntologyManager ontMgr = workspace.getOntologyManager();
// Save the original alignment for undo
oldAlignment = alignment.getAlignmentClone();
oldGraph = (DirectedWeightedMultigraph<Node, DefaultLink>) alignment
.getGraph().clone();
UpdateContainer uc = new UpdateContainer();
WorksheetCommandHistoryExecutor histExecutor = new WorksheetCommandHistoryExecutor(
worksheetId, workspace);
// First delete the links that are not present in newEdges and present
// in intialEdges
try {
refineInitialEdges(alignment);
uc.append(deleteLinks(histExecutor, workspace, worksheet, alignment));
uc.append(addNewLinks(histExecutor, workspace, alignment, ontMgr));
} catch (JSONException e) {
e.printStackTrace();
}
return uc;
}
代码示例来源:origin: usc-isi-i2/Web-Karma
oldGraph = (DirectedWeightedMultigraph<Node, DefaultLink>)alignment.getGraph().clone();
代码示例来源:origin: usc-isi-i2/Web-Karma
initialGraph = (DirectedWeightedMultigraph<Node, DefaultLink>)alignment.getGraph().clone();
代码示例来源:origin: usc-isi-i2/Web-Karma
.getGraph().clone();
代码示例来源:origin: usc-isi-i2/Web-Karma
oldGraph = (DirectedWeightedMultigraph<Node, DefaultLink>)alignment.getGraph().clone();
内容来源于网络,如有侵权,请联系作者删除!