当前位置: 首页>>代码示例>>Java>>正文


Java GraphQuery.setBinding方法代码示例

本文整理汇总了Java中org.eclipse.rdf4j.query.GraphQuery.setBinding方法的典型用法代码示例。如果您正苦于以下问题:Java GraphQuery.setBinding方法的具体用法?Java GraphQuery.setBinding怎么用?Java GraphQuery.setBinding使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.rdf4j.query.GraphQuery的用法示例。


在下文中一共展示了GraphQuery.setBinding方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getQueryForResources

import org.eclipse.rdf4j.query.GraphQuery; //导入方法依赖的package包/类
@Override
protected GraphQuery getQueryForResources(RepositoryConnection conn) {
  String query = "CONSTRUCT { ?s ?p ?o } WHERE { ?s ?p ?o . ?s a ?type . }";
  GraphQuery graphQuery = conn.prepareGraphQuery(query);
  graphQuery.setBinding("type", ELMO.SITE);

  return graphQuery;
}
 
开发者ID:dotwebstack,项目名称:dotwebstack-framework,代码行数:9,代码来源:SiteResourceProvider.java

示例2: getQueryForResources

import org.eclipse.rdf4j.query.GraphQuery; //导入方法依赖的package包/类
@Override
protected GraphQuery getQueryForResources(RepositoryConnection conn) {
  String query = "CONSTRUCT { ?s ?p ?o } WHERE { ?s ?p ?o . ?s a ?type . }";
  GraphQuery graphQuery = conn.prepareGraphQuery(query);
  graphQuery.setBinding("type", ELMO.STAGE);

  return graphQuery;
}
 
开发者ID:dotwebstack,项目名称:dotwebstack-framework,代码行数:9,代码来源:StageResourceProvider.java

示例3: getQueryForResources

import org.eclipse.rdf4j.query.GraphQuery; //导入方法依赖的package包/类
@Override
protected GraphQuery getQueryForResources(RepositoryConnection conn) {
  String query = "CONSTRUCT { ?s ?p ?o } WHERE { ?s ?p ?o. ?rep ?parametermapper ?s. }";
  GraphQuery graphQuery = conn.prepareGraphQuery(query);
  graphQuery.setBinding("parametermapper", ELMO.PARAMETER_MAPPER_PROP);

  return graphQuery;
}
 
开发者ID:dotwebstack,项目名称:dotwebstack-framework,代码行数:9,代码来源:ParameterMapperResourceProvider.java

示例4: getQueryForResources

import org.eclipse.rdf4j.query.GraphQuery; //导入方法依赖的package包/类
@Override
protected GraphQuery getQueryForResources(RepositoryConnection conn) {
  String query = "CONSTRUCT { ?s ?p ?o } WHERE { ?s ?p ?o . ?s a ?type . }";
  GraphQuery graphQuery = conn.prepareGraphQuery(query);
  graphQuery.setBinding("type", ELMO.REDIRECTION);
  return graphQuery;
}
 
开发者ID:dotwebstack,项目名称:dotwebstack-framework,代码行数:8,代码来源:RedirectionResourceProvider.java

示例5: getQueryForResources

import org.eclipse.rdf4j.query.GraphQuery; //导入方法依赖的package包/类
@Override
protected GraphQuery getQueryForResources(RepositoryConnection conn) {
  final String query = "CONSTRUCT { ?s ?p ?o } WHERE { ?s ?p ?o . ?s a ?type . }";

  final GraphQuery graphQuery = conn.prepareGraphQuery(query);
  graphQuery.setBinding("type", ELMO.REPRESENTATION);

  return graphQuery;
}
 
开发者ID:dotwebstack,项目名称:dotwebstack-framework,代码行数:10,代码来源:RepresentationResourceProvider.java

示例6: getQueryForResources

import org.eclipse.rdf4j.query.GraphQuery; //导入方法依赖的package包/类
@Override
protected GraphQuery getQueryForResources(@NonNull RepositoryConnection conn) {
  String query = "CONSTRUCT { ?s ?p ?o } WHERE { ?s ?p ?o. ?rep ?appearance ?s. }";
  GraphQuery graphQuery = conn.prepareGraphQuery(query);
  graphQuery.setBinding("appearance", ELMO.APPEARANCE_PROP);

  return graphQuery;
}
 
开发者ID:dotwebstack,项目名称:dotwebstack-framework,代码行数:9,代码来源:AppearanceResourceProvider.java

示例7: getQueryForResources

import org.eclipse.rdf4j.query.GraphQuery; //导入方法依赖的package包/类
@Override
protected GraphQuery getQueryForResources(@NonNull RepositoryConnection connection) {
  String query = "PREFIX elmo: <http://dotwebstack.org/def/elmo#> "
      + "CONSTRUCT { ?s ?p ?o . ?o ?op ?oo . } "
      + "WHERE { ?s a ?type . ?type rdfs:subClassOf ?parameter . ?s ?p ?o . "
      + "OPTIONAL { ?o ?op ?oo } } ";

  GraphQuery graphQuery = connection.prepareGraphQuery(query);

  graphQuery.setBinding("parameter", ELMO.PARAMETER);

  return graphQuery;
}
 
开发者ID:dotwebstack,项目名称:dotwebstack-framework,代码行数:14,代码来源:ParameterDefinitionResourceProvider.java

示例8: getQueryForResources

import org.eclipse.rdf4j.query.GraphQuery; //导入方法依赖的package包/类
@Override
protected GraphQuery getQueryForResources(RepositoryConnection conn) {
  String query = "CONSTRUCT { ?s ?p ?o } WHERE { ?s ?p ?o . ?s a ?type . }";
  GraphQuery graphQuery = conn.prepareGraphQuery(query);
  graphQuery.setBinding("type", ELMO.INFORMATION_PRODUCT);

  return graphQuery;
}
 
开发者ID:dotwebstack,项目名称:dotwebstack-framework,代码行数:9,代码来源:InformationProductResourceProvider.java

示例9: getQueryForResources

import org.eclipse.rdf4j.query.GraphQuery; //导入方法依赖的package包/类
@Override
protected GraphQuery getQueryForResources(RepositoryConnection conn) {
  String query =
      "CONSTRUCT { ?s ?p ?o } WHERE { ?s ?p ?o . ?s a ?type . ?type rdfs:subClassOf ?backend }";
  GraphQuery graphQuery = conn.prepareGraphQuery(query);
  graphQuery.setBinding("backend", ELMO.BACKEND);

  return graphQuery;
}
 
开发者ID:dotwebstack,项目名称:dotwebstack-framework,代码行数:10,代码来源:BackendResourceProvider.java


注:本文中的org.eclipse.rdf4j.query.GraphQuery.setBinding方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。