KeepAfterLastFunctionTest.java 文件源码

java
阅读 32 收藏 0 点赞 0 评论 0

项目:dotwebstack-framework 作者:
@Test
public void testKeepAfterLastFunction() throws ParseException {
  final String id = "baz";
  final String ldPath =
      String.format("fn:keepAfterLast(<%s>, \"%s\") :: xsd:string", predicate.stringValue(), "/");
  addStatement(repository.getValueFactory().createStatement(subject, predicate, iri("ex", id)));

  final ImmutableCollection<Object> values = evaluateRule(ldPath, subject);

  assertThat(values.size(), Matchers.equalTo(1));
  assertThat(values, Matchers.contains("example.com#baz"));
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号