本文整理了Java中com.hp.hpl.jena.graph.Graph.getEventManager()
方法的一些代码示例,展示了Graph.getEventManager()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graph.getEventManager()
方法的具体详情如下:
包路径:com.hp.hpl.jena.graph.Graph
类名称:Graph
方法名:getEventManager
[英]Answer this Graph's event manager.
[中]回答此图表的事件管理器。
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
@Override
public GraphEventManager getEventManager()
{
return graph.getEventManager() ;
}
代码示例来源:origin: org.appdapter/org.appdapter.lib.remote
@Override public GraphEventManager getEventManager() {
return g.getEventManager();
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
@Override
public void event(Object dest, Event event)
{
graph.getEventManager().notifyEvent( graph , GraphEvents.finishRead ) ;
}
} ;
代码示例来源:origin: net.sourceforge.owlapi/pellet-jena-ignazio1977
public void dispose() {
for( Graph graph : leafGraphs ) {
graph.getEventManager().unregister( this );
}
leafGraphs.clear();
changedGraphs.clear();
statementDeleted = false;
}
代码示例来源:origin: com.hp.hpl.jena/arq
public void event(Object dest, Event event)
{
graph.getEventManager().notifyEvent( graph , GraphEvents.startRead ) ;
}
} ;
代码示例来源:origin: com.hp.hpl.jena/arq
public void event(Object dest, Event event)
{
graph.getEventManager().notifyEvent( graph , GraphEvents.finishRead ) ;
}
} ;
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
@Override
public void event(Object dest, Event event)
{
graph.getEventManager().notifyEvent( graph , GraphEvents.startRead ) ;
}
} ;
代码示例来源:origin: com.hp.hpl.jena/arq
public void exec(Graph graph){ graph.getEventManager().notifyEvent(graph, object) ; }
}) ;
代码示例来源:origin: com.hp.hpl.jena/arq
private void monitor(Graph graph)
{
GraphLoadMonitor m = new GraphLoadMonitor(20000,false) ;
//m.setSummaryLabel(getCommandName()) ;
graph.getEventManager().register(m) ;
}
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
private void monitor(Graph graph)
{
GraphLoadMonitor m = new GraphLoadMonitor(20000,false) ;
//m.setSummaryLabel(getCommandName()) ;
graph.getEventManager().register(m) ;
}
}
代码示例来源:origin: net.sourceforge.owlapi/pellet-jena-ignazio1977
public Set<Graph> getChangedGraphs() {
Set<Graph> prevLeaves = leafGraphs;
leafGraphs = CollectionUtils.makeSet();
collectLeafGraphs( rootGraph, prevLeaves );
for( Graph prevLeaf : prevLeaves ) {
if( !leafGraphs.contains( prevLeaf ) ) {
statementDeleted = true;
prevLeaf.getEventManager().unregister( this );
}
}
if( statementDeleted ) {
return null;
}
return changedGraphs;
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-core
@Override
public Model notifyEvent( Object e )
{
getGraph().getEventManager().notifyEvent( getGraph(), e );
return this;
}
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-core
/** Add triples into the destination (arg 1) from the source (arg 2)*/
public static void addInto(Graph dstGraph, Graph srcGraph )
{
addIteratorWorker(dstGraph, GraphUtil.findAll( srcGraph ));
dstGraph.getEventManager().notifyAddGraph( dstGraph, srcGraph );
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-core
/**
Unregister the listener from this model by unregistering its GraphListener
adaption from the underlying Graph.
@param a ModelChangedListener to unregister from model events
@return this model, for cascading
*/
@Override
public Model unregister( ModelChangedListener listener )
{
getGraph().getEventManager().unregister( adapt( listener ) );
return this;
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-core
/** Delete triples the destination (arg 1) as given in the source (arg 2) */
public static void deleteFrom(Graph dstGraph, Graph srcGraph)
{
deleteIteratorWorker(dstGraph, GraphUtil.findAll( srcGraph ));
dstGraph.getEventManager().notifyDeleteGraph( dstGraph, srcGraph );
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-core
/**
Register the listener with this model by registering its GraphListener
adaption with the underlying Graph.
@param a ModelChangedListener to register for model events
@return this model, for cascading
*/
@Override
public Model register( ModelChangedListener listener )
{
getGraph().getEventManager().register( adapt( listener ) );
return this;
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-core
public static void add(Graph graph, List<Triple> triples)
{
if ( OldStyle && graph instanceof GraphWithPerform )
{
GraphWithPerform g = (GraphWithPerform)graph ;
for (Triple t : triples)
g.performAdd(t) ;
graph.getEventManager().notifyAddList(graph, triples) ;
} else
{
for (Triple t : triples)
graph.add(t) ;
}
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-core
public static void add(Graph graph, Triple[] triples)
{
if ( OldStyle && graph instanceof GraphWithPerform )
{
GraphWithPerform g = (GraphWithPerform)graph ;
for (Triple t : triples )
g.performAdd(t) ;
graph.getEventManager().notifyAddArray(graph, triples) ;
}
else
{
for (Triple t : triples )
graph.add(t) ;
}
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-core
public static void delete(Graph graph, Triple[] triples)
{
if ( OldStyle && graph instanceof GraphWithPerform )
{
GraphWithPerform g = (GraphWithPerform)graph ;
for (Triple t : triples )
g.performDelete(t) ;
graph.getEventManager().notifyDeleteArray(graph, triples) ;
}
else
{
for (Triple t : triples )
graph.delete(t) ;
}
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-core
@Override public void remove()
{
super.remove();
X.removedOneViaIterator();
A.remove( current );
B.remove( current );
toNotify.getEventManager().notifyDeleteTriple( toNotify, current );
}
}
内容来源于网络,如有侵权,请联系作者删除!