本文整理了Java中org.eclipse.rdf4j.repository.RepositoryConnection.getRepository
方法的一些代码示例,展示了RepositoryConnection.getRepository
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RepositoryConnection.getRepository
方法的具体详情如下:
包路径:org.eclipse.rdf4j.repository.RepositoryConnection
类名称:RepositoryConnection
方法名:getRepository
[英]Returns the Repository object to which this connection belongs.
[中]返回此连接所属的存储库对象。
代码示例来源:origin: eclipse/rdf4j
public ContextAwareConnection(RepositoryConnection connection)
throws RepositoryException
{
this(connection.getRepository(), connection);
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
public ContextAwareConnection(RepositoryConnection connection)
throws RepositoryException
{
this(connection.getRepository(), connection);
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-repository-contextaware
public ContextAwareConnection(RepositoryConnection connection)
throws RepositoryException
{
this(connection.getRepository(), connection);
}
代码示例来源:origin: fr.lirmm.graphik/graal-store-rdf4j
@Override
public boolean isWriteable() {
return this.connection.getRepository().isWritable();
}
代码示例来源:origin: apache/incubator-rya
private BNode mapBNode(BNode bNode) {
BNode result = bNodesMap.get(bNode.getID());
if (result == null) {
result = con.getRepository().getValueFactory().createBNode();
bNodesMap.put(bNode.getID(), result);
}
return result;
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
private static Statement getIDStatement(RepositoryConnection con, String repositoryID)
throws RepositoryException, RepositoryConfigException
{
Literal idLiteral = con.getRepository().getValueFactory().createLiteral(repositoryID);
List<Statement> idStatementList = Iterations.asList(
con.getStatements(null, REPOSITORYID, idLiteral, true));
if (idStatementList.size() == 1) {
return idStatementList.get(0);
}
else if (idStatementList.isEmpty()) {
return null;
}
else {
throw new RepositoryConfigException("Multiple ID-statements for repository ID " + repositoryID);
}
}
}
代码示例来源:origin: eclipse/rdf4j
private static Statement getIDStatement(RepositoryConnection con, String repositoryID)
throws RepositoryException, RepositoryConfigException
{
Literal idLiteral = con.getRepository().getValueFactory().createLiteral(repositoryID);
List<Statement> idStatementList = Iterations.asList(
con.getStatements(null, REPOSITORYID, idLiteral, true));
if (idStatementList.size() == 1) {
return idStatementList.get(0);
}
else if (idStatementList.isEmpty()) {
return null;
}
else {
throw new RepositoryConfigException("Multiple ID-statements for repository ID " + repositoryID);
}
}
}
代码示例来源:origin: eclipse/rdf4j
if (!SystemRepository.ID.equals(repositoryID)) {
addRepositoryConfig(
RepositoryConfigUtil.getRepositoryConfig(con.getRepository(), repositoryID),
false);
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
if (!SystemRepository.ID.equals(repositoryID)) {
addRepositoryConfig(
RepositoryConfigUtil.getRepositoryConfig(con.getRepository(), repositoryID),
false);
代码示例来源:origin: ontop/ontop
final ValueFactory vf = con.getRepository().getValueFactory();
RDFParser rdfParser = Rio.createParser(RDFFormat.TURTLE, vf);
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
throws RepositoryException, RepositoryConfigException
ValueFactory vf = con.getRepository().getValueFactory();
代码示例来源:origin: eclipse/rdf4j
throws RepositoryException, RepositoryConfigException
ValueFactory vf = con.getRepository().getValueFactory();
代码示例来源:origin: franzinc/agraph-java-client
final ValueFactory vf = con.getRepository().getValueFactory();
RDFParser rdfParser = new TurtleParser();
rdfParser.setValueFactory(vf);
内容来源于网络,如有侵权,请联系作者删除!