com.hp.hpl.jena.graph.Triple.isConcrete()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(191)

本文整理了Java中com.hp.hpl.jena.graph.Triple.isConcrete()方法的一些代码示例,展示了Triple.isConcrete()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Triple.isConcrete()方法的具体详情如下:
包路径:com.hp.hpl.jena.graph.Triple
类名称:Triple
方法名:isConcrete

Triple.isConcrete介绍

暂无

代码示例

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
  Answer true iff this triple can be compared for sameValueAs by .equals(),
  ie, it is a concrete triple with a non-literal object.
*/
protected final boolean isSafeForEquality( Triple t )
  { return t.isConcrete() && !t.getObject().isLiteral(); }
}

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
   Answer true iff this graph contains <code>t</code>. If <code>t</code>
   happens to be concrete, then we hand responsibility over to the store.
   Otherwise we use the default implementation.
 */
@Override public boolean graphBaseContains( Triple t )
{ return t.isConcrete() ? store.contains( t ) : super.graphBaseContains( t ); }

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

@Override
  public Iterator<Triple> convert(final Binding b)
  {
    // Iteration is a new mapping of bnodes. 
    bNodeMap.clear() ;
    List<Triple> tripleList = new ArrayList<Triple>(triples.size());
    for (Triple triple : triples)
    {
      Triple q = subst(triple, b, bNodeMap) ;
      if ( ! q.isConcrete() || ! ModelUtils.isValidAsStatement(q.getSubject(), q.getPredicate(), q.getObject()) )
      {
        //Log.warn(TemplateLib.class, "Unbound quad: "+FmtUtils.stringForQuad(quad)) ;
        continue ;
      }
      tripleList.add(q);
    }
    return tripleList.iterator();
  }
});

代码示例来源:origin: com.hp.hpl.jena/arq

@Override
public boolean graphBaseContains( Triple t ) 
{
  if ( t.isConcrete() )
    return triples.contains( t ) ;
  
  ClosableIterator<Triple> it = find( t );
  try {
    for ( ; it.hasNext() ; )
    {
      Triple t2 = it.next() ;
      if ( tripleContained(t, t2) )
        return true ;
    }
  } finally { it.close(); }
  return false ;
}

代码示例来源:origin: net.sourceforge.owlapi/pellet-jena-ignazio1977

public Graph explain(Triple pattern) {
  if( !pattern.equals( INCONCISTENCY_TRIPLE ) ) {
    if( !pattern.isConcrete() ) {
      if( log.isLoggable( Level.WARNING ) ) {
        log.warning( "Triple patterns with variables cannot be epxlained: " + pattern );

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

@Override
public boolean graphBaseContains( Triple t ) 
{
  if ( t.isConcrete() )
    return triples.contains( t ) ;
  
  ClosableIterator<Triple> it = find( t );
  try {
    for ( ; it.hasNext() ; )
    {
      Triple t2 = it.next() ;
      if ( tripleContained(t, t2) )
        return true ;
    }
  } finally { it.close(); }
  return false ;
}

相关文章