org.apache.jena.vocabulary.RDF.li()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(97)

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

RDF.li介绍

暂无

代码示例

代码示例来源:origin: apache/jena

@Override
public boolean getBoolean(int index)  {
  checkIndex(index);
  return getRequiredProperty(RDF.li(index)).getBoolean();
}

代码示例来源:origin: apache/jena

@Override
public Alt getAlt(int index)  {
  checkIndex(index);
  return getRequiredProperty(RDF.li(index)).getAlt();
}

代码示例来源:origin: apache/jena

@Override
public Seq set(int index, double o)  {
  checkIndex(index);
  getRequiredProperty(RDF.li(index)).changeLiteralObject(o);
  return this;
}

代码示例来源:origin: apache/jena

@Override
public Seq set(int index, char o)  {
  checkIndex(index);
  getRequiredProperty(RDF.li(index)).changeLiteralObject(o);
  return this;
}

代码示例来源:origin: apache/jena

@Override
public Seq set(int index, String o, String l)  {
  checkIndex(index);
  getRequiredProperty(RDF.li(index)).changeObject(o, l);
  return this;
}

代码示例来源:origin: apache/jena

@Override
public byte getByte(int index)  {
  checkIndex(index);
  return getRequiredProperty(RDF.li(index)).getByte();
}

代码示例来源:origin: apache/jena

@Override
public short getShort(int index)  {
  checkIndex(index);
  return getRequiredProperty(RDF.li(index)).getShort();
}

代码示例来源:origin: apache/jena

@Override
public Seq getSeq(int index)  {
  checkIndex(index);
  return getRequiredProperty(RDF.li(index)).getSeq();
}

代码示例来源:origin: apache/jena

@Override
public Seq set(int index, long o)  {
  checkIndex(index);
  getRequiredProperty(RDF.li(index)).changeLiteralObject(o);
  return this;
}

代码示例来源:origin: apache/jena

@Override
public Container remove(int index, RDFNode object)  {
  remove(getModel().createStatement(this, RDF.li(index), object));
  return this;
}

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

@Override
public String getLanguage(int index)  {
  checkIndex(index);
  return getRequiredProperty(RDF.li(index)).getLanguage();
}

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

@Override
public Alt getAlt(int index)  {
  checkIndex(index);
  return getRequiredProperty(RDF.li(index)).getAlt();
}

代码示例来源:origin: apache/jena

protected void checkAdd(final int pos, final Node node)
    throws AddDeniedException, UpdateDeniedException,
    AuthenticationRequiredException {
  checkCreate(new Triple(holder.getBaseItem().asNode(), RDF.li(pos)
      .asNode(), node));
}

代码示例来源:origin: apache/jena

@Override
@Deprecated
public SecuredResource getResource(final int index, final ResourceF f)
    throws ReadDeniedException, AuthenticationRequiredException {
  checkRead();
  final Resource retval = holder.getBaseItem().getResource(index, f);
  checkRead(new Triple(holder.getBaseItem().asNode(), RDF.li(index)
      .asNode(), retval.asNode()));
  return SecuredResourceImpl.getInstance(getModel(), retval);
}

代码示例来源:origin: apache/jena

@Override
public boolean getBoolean(final int index) throws ReadDeniedException,
    AuthenticationRequiredException {
  checkRead();
  final boolean retval = holder.getBaseItem().getBoolean(index);
  checkRead(new Triple(holder.getBaseItem().asNode(), RDF.li(index)
      .asNode(), asObject(retval).asNode()));
  return retval;
}

代码示例来源:origin: apache/jena

@Override
public byte getByte(final int index) throws ReadDeniedException,
    AuthenticationRequiredException {
  checkRead();
  final byte retval = holder.getBaseItem().getByte(index);
  checkRead(new Triple(holder.getBaseItem().asNode(), RDF.li(index)
      .asNode(), asObject(retval).asNode()));
  return retval;
}

代码示例来源:origin: apache/jena

@Override
public int getInt(final int index) throws ReadDeniedException,
    AuthenticationRequiredException {
  checkRead();
  final int retval = holder.getBaseItem().getInt(index);
  checkRead(new Triple(holder.getBaseItem().asNode(), RDF.li(index)
      .asNode(), asObject(retval).asNode()));
  return retval;
}

代码示例来源:origin: apache/jena

@Override
public String getString(final int index) throws ReadDeniedException,
    AuthenticationRequiredException {
  checkRead();
  final String retval = holder.getBaseItem().getString(index);
  checkRead(new Triple(holder.getBaseItem().asNode(), RDF.li(index)
      .asNode(), ResourceFactory.createTypedLiteral(retval).asNode()));
  return retval;
}

代码示例来源:origin: apache/jena

@Override
public SecuredAlt getAlt(final int index) throws ReadDeniedException,
    AuthenticationRequiredException {
  checkRead();
  final Alt a = holder.getBaseItem().getAlt(index);
  checkRead(new Triple(holder.getBaseItem().asNode(), RDF.li(index)
      .asNode(), a.asNode()));
  return SecuredAltImpl.getInstance(getModel(), a);
}

代码示例来源:origin: apache/jena

@Override
public SecuredLiteral getLiteral(final int index)
    throws ReadDeniedException, AuthenticationRequiredException {
  checkRead();
  final Literal literal = holder.getBaseItem().getLiteral(index);
  checkRead(new Triple(holder.getBaseItem().asNode(), RDF.li(index)
      .asNode(), literal.asNode()));
  return SecuredLiteralImpl.getInstance(getModel(), literal);
}

相关文章