本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}