org.apache.jena.query.Query.addProjectVars()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(153)

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

Query.addProjectVars介绍

[英]Add a collection of projection variables to a SELECT query
[中]将投影变量集合添加到SELECT查询

代码示例

代码示例来源:origin: SmartDataAnalytics/DL-Learner

newQuery.addProjectVars(query.getProjectVars());
ElementTriplesBlock el = new ElementTriplesBlock();
for (Triple triple : Sets.union(outgoingTriplePatterns, incomingTriplePatterns)) {

代码示例来源:origin: SmartDataAnalytics/DL-Learner

q.addProjectVars(Collections.singleton(targetVar));
ElementTriplesBlock el = new ElementTriplesBlock();
for (Triple triple : cluster) {

代码示例来源:origin: SmartDataAnalytics/DL-Learner

q.addProjectVars(Collections.singleton(targetVar));
ElementTriplesBlock el = new ElementTriplesBlock();
for (Triple triple : cluster) {

代码示例来源:origin: SmartDataAnalytics/DL-Learner

newQuery.addProjectVars(query.getProjectVars());
ElementTriplesBlock el = new ElementTriplesBlock();
for (Triple triple : triplePatterns) {

代码示例来源:origin: SmartDataAnalytics/DL-Learner

q.addProjectVars(Collections.singleton(targetVar));
ElementTriplesBlock el = new ElementTriplesBlock();
for (Triple triple : cluster) {

代码示例来源:origin: SmartDataAnalytics/DL-Learner

q.addProjectVars(Collections.singleton(targetVar));
ElementTriplesBlock el = new ElementTriplesBlock();
for (Triple triple : cluster) {

代码示例来源:origin: SmartDataAnalytics/DL-Learner

q.setQuerySelectType();
q.setDistinct(true);
q.addProjectVars(query.getProjectVars());
    q.setQuerySelectType();
    q.setDistinct(true);
    q.addProjectVars(query.getProjectVars());
    List<Triple> allTriplePatterns = new ArrayList<>(existingTriplePatterns);
    allTriplePatterns.addAll(newTriplePatterns);
      q.setQuerySelectType();
      q.setDistinct(true);
      q.addProjectVars(query.getProjectVars());
      tripleBlock = new ElementTriplesBlock(BasicPattern.wrap(existingTriplePatterns));
      eg = new ElementGroup();

代码示例来源:origin: SmartDataAnalytics/DL-Learner

newQuery.setQuerySelectType();
newQuery.setQueryPattern(eg);
newQuery.addProjectVars(query.getProjectVars());
newQuery.setDistinct(true);
queries.add(newQuery);

代码示例来源:origin: SmartDataAnalytics/DL-Learner

q.setQuerySelectType();
q.setDistinct(true);
q.addProjectVars(query.getProjectVars());
    q.setQuerySelectType();
    q.setDistinct(true);
    q.addProjectVars(query.getProjectVars());
    List<Triple> allTriplePatterns = new ArrayList<>(existingTriplePatterns);
    allTriplePatterns.addAll(newTriplePatterns);
      q.setQuerySelectType();
      q.setDistinct(true);
      q.addProjectVars(query.getProjectVars());
      tripleBlock = new ElementTriplesBlock(BasicPattern.wrap(existingTriplePatterns));
      eg = new ElementGroup();

代码示例来源:origin: SmartDataAnalytics/DL-Learner

q.setQuerySelectType();
q.setDistinct(true);
q.addProjectVars(query.getProjectVars());
    q.setQuerySelectType();
    q.setDistinct(true);
    q.addProjectVars(query.getProjectVars());
    List<Triple> allTriplePatterns = new ArrayList<>(existingTriplePatterns);
    allTriplePatterns.addAll(newTriplePatterns);
      q.setQuerySelectType();
      q.setDistinct(true);
      q.addProjectVars(query.getProjectVars());
      tripleBlock = new ElementTriplesBlock(BasicPattern.wrap(existingTriplePatterns));
      eg = new ElementGroup();

代码示例来源:origin: SmartDataAnalytics/DL-Learner

q.addProjectVars(query.getProjectVars());
ElementTriplesBlock tripleBlock = new ElementTriplesBlock();
for (Triple triple : newTriplePatterns) {

代码示例来源:origin: SmartDataAnalytics/DL-Learner

q.addProjectVars(query.getProjectVars());
ElementTriplesBlock tripleBlock = new ElementTriplesBlock();
for (Triple triple : newTriplePatterns) {

代码示例来源:origin: SmartDataAnalytics/DL-Learner

q.addProjectVars(query.getProjectVars());
ElementTriplesBlock tripleBlock = new ElementTriplesBlock();
for (Triple triple : newTriplePatterns) {

代码示例来源:origin: SmartDataAnalytics/DL-Learner

newQuery.addProjectVars(query.getProjectVars());
newQuery.setDistinct(true);

相关文章