本文整理了Java中org.eclipse.rdf4j.query.Dataset.getDefaultInsertGraph()
方法的一些代码示例,展示了Dataset.getDefaultInsertGraph()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dataset.getDefaultInsertGraph()
方法的具体详情如下:
包路径:org.eclipse.rdf4j.query.Dataset
类名称:Dataset
方法名:getDefaultInsertGraph
[英]Gets the default insert graph URI of this dataset. An null value indicates that the store's default behaviour should be used, if not otherwise indicated in the operation.
[中]获取此数据集的默认插入图URI。如果操作中未另行指示,则null值表示应使用存储的默认行为。
代码示例来源:origin: eclipse/rdf4j
@Override
public IRI getDefaultInsertGraph() {
IRI graph = primary.getDefaultInsertGraph();
if (graph == null)
return fallback.getDefaultInsertGraph();
return graph;
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-query
public IRI getDefaultInsertGraph() {
IRI graph = primary.getDefaultInsertGraph();
if (graph == null)
return fallback.getDefaultInsertGraph();
return graph;
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
public IRI getDefaultInsertGraph() {
IRI graph = primary.getDefaultInsertGraph();
if (graph == null)
return fallback.getDefaultInsertGraph();
return graph;
}
代码示例来源:origin: eclipse/rdf4j
new BasicNameValuePair(Protocol.REMOVE_GRAPH_PARAM_NAME, String.valueOf(graphURI)));
if (dataset.getDefaultInsertGraph() != null) {
queryParams.add(new BasicNameValuePair(Protocol.INSERT_GRAPH_PARAM_NAME,
String.valueOf(dataset.getDefaultInsertGraph())));
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
if (dataset.getDefaultInsertGraph() != null) {
if (!dataset.getDefaultInsertGraph().equals(graphURI)) {
logger.warn(
"ambiguous dataset spec for SPARQL endpoint: default insert graph ({}) and default remove graph ({}) both defined but not equal. ",
dataset.getDefaultInsertGraph(), graphURI);
if (dataset.getDefaultInsertGraph() != null) {
if (!dataset.getDefaultGraphs().isEmpty()) {
if (!(dataset.getDefaultGraphs().size() == 1
&& dataset.getDefaultGraphs().contains(dataset.getDefaultInsertGraph())))
dataset.getDefaultInsertGraph());
String.valueOf(dataset.getDefaultInsertGraph())));
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-http-client
if (dataset.getDefaultInsertGraph() != null) {
if (!dataset.getDefaultInsertGraph().equals(graphURI)) {
logger.warn(
"ambiguous dataset spec for SPARQL endpoint: default insert graph ({}) and default remove graph ({}) both defined but not equal. ",
dataset.getDefaultInsertGraph(), graphURI);
if (dataset.getDefaultInsertGraph() != null) {
if (!dataset.getDefaultGraphs().isEmpty()) {
if (!(dataset.getDefaultGraphs().size() == 1
&& dataset.getDefaultGraphs().contains(dataset.getDefaultInsertGraph())))
dataset.getDefaultInsertGraph());
String.valueOf(dataset.getDefaultInsertGraph())));
代码示例来源:origin: eclipse/rdf4j
if (dataset.getDefaultInsertGraph() != null) {
if (!dataset.getDefaultInsertGraph().equals(graphURI)) {
logger.warn(
"ambiguous dataset spec for SPARQL endpoint: default insert graph ({}) and default remove graph ({}) both defined but not equal. ",
dataset.getDefaultInsertGraph(), graphURI);
if (dataset.getDefaultInsertGraph() != null) {
if (!dataset.getDefaultGraphs().isEmpty()) {
if (!(dataset.getDefaultGraphs().size() == 1
&& dataset.getDefaultGraphs().contains(dataset.getDefaultInsertGraph())))
dataset.getDefaultInsertGraph());
String.valueOf(dataset.getDefaultInsertGraph())));
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
new BasicNameValuePair(Protocol.REMOVE_GRAPH_PARAM_NAME, String.valueOf(graphURI)));
if (dataset.getDefaultInsertGraph() != null) {
queryParams.add(new BasicNameValuePair(Protocol.INSERT_GRAPH_PARAM_NAME,
String.valueOf(dataset.getDefaultInsertGraph())));
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-http-client
new BasicNameValuePair(Protocol.REMOVE_GRAPH_PARAM_NAME, String.valueOf(graphURI)));
if (dataset.getDefaultInsertGraph() != null) {
queryParams.add(new BasicNameValuePair(Protocol.INSERT_GRAPH_PARAM_NAME,
String.valueOf(dataset.getDefaultInsertGraph())));
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-repository-sail
@Override
protected void addStatement(Resource subj, IRI pred, Value obj, Resource ctxt)
throws RDF4JException
{
if (enforcesContext()) {
addStatement(uc, subj, pred, obj, contexts);
}
else {
if (uc != null && ctxt == null) {
final IRI insertGraph = uc.getDataset().getDefaultInsertGraph();
if (insertGraph != null) {
addStatement(uc, subj, pred, obj, insertGraph);
}
else {
addStatement(uc, subj, pred, obj);
}
}
else {
addStatement(uc, subj, pred, obj, ctxt);
}
}
}
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryparser-api
final boolean hasWithClause = sparqlDefinedDataset.getDefaultInsertGraph() != null;
final Set<IRI> sparqlDefaultGraphs = sparqlDefinedDataset.getDefaultGraphs();
mergedDataset.setDefaultInsertGraph(sparqlDefinedDataset.getDefaultInsertGraph());
mergedDataset.setDefaultInsertGraph(dataset.getDefaultInsertGraph());
for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
mergedDataset.addDefaultRemoveGraph(graphURI);
代码示例来源:origin: eclipse/rdf4j
final boolean hasWithClause = sparqlDefinedDataset.getDefaultInsertGraph() != null;
final Set<IRI> sparqlDefaultGraphs = sparqlDefinedDataset.getDefaultGraphs();
mergedDataset.setDefaultInsertGraph(sparqlDefinedDataset.getDefaultInsertGraph());
mergedDataset.setDefaultInsertGraph(dataset.getDefaultInsertGraph());
for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
mergedDataset.addDefaultRemoveGraph(graphURI);
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
final boolean hasWithClause = sparqlDefinedDataset.getDefaultInsertGraph() != null;
final Set<IRI> sparqlDefaultGraphs = sparqlDefinedDataset.getDefaultGraphs();
mergedDataset.setDefaultInsertGraph(sparqlDefinedDataset.getDefaultInsertGraph());
mergedDataset.setDefaultInsertGraph(dataset.getDefaultInsertGraph());
for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
mergedDataset.addDefaultRemoveGraph(graphURI);
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryparser-api
final boolean hasWithClause = sparqlDefinedDataset.getDefaultInsertGraph() != null;
final Set<IRI> sparqlDefaultGraphs = sparqlDefinedDataset.getDefaultGraphs();
mergedDataset.setDefaultInsertGraph(sparqlDefinedDataset.getDefaultInsertGraph());
mergedDataset.setDefaultInsertGraph(dataset.getDefaultInsertGraph());
for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
mergedDataset.addDefaultRemoveGraph(graphURI);
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
final boolean hasWithClause = sparqlDefinedDataset.getDefaultInsertGraph() != null;
final Set<IRI> sparqlDefaultGraphs = sparqlDefinedDataset.getDefaultGraphs();
mergedDataset.setDefaultInsertGraph(sparqlDefinedDataset.getDefaultInsertGraph());
mergedDataset.setDefaultInsertGraph(dataset.getDefaultInsertGraph());
for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
mergedDataset.addDefaultRemoveGraph(graphURI);
代码示例来源:origin: eclipse/rdf4j
final boolean hasWithClause = sparqlDefinedDataset.getDefaultInsertGraph() != null;
final Set<IRI> sparqlDefaultGraphs = sparqlDefinedDataset.getDefaultGraphs();
mergedDataset.setDefaultInsertGraph(sparqlDefinedDataset.getDefaultInsertGraph());
mergedDataset.setDefaultInsertGraph(dataset.getDefaultInsertGraph());
for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
mergedDataset.addDefaultRemoveGraph(graphURI);
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-repository-sail
IRI with = uc.getDataset().getDefaultInsertGraph();
if (with == null && toBeInserted.getContext() == null) {
con.addStatement(uc, toBeInserted.getSubject(), toBeInserted.getPredicate(),
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-http-protocol
if (dataset.getDefaultInsertGraph() != null) {
xmlWriter.textElement(TransactionXMLConstants.DEFAULT_INSERT_GRAPH,
dataset.getDefaultInsertGraph().stringValue());
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client
if (dataset.getDefaultInsertGraph() != null) {
xmlWriter.textElement(TransactionXMLConstants.DEFAULT_INSERT_GRAPH,
dataset.getDefaultInsertGraph().stringValue());
代码示例来源:origin: eclipse/rdf4j
if (dataset.getDefaultInsertGraph() != null) {
xmlWriter.textElement(TransactionXMLConstants.DEFAULT_INSERT_GRAPH,
dataset.getDefaultInsertGraph().stringValue());
内容来源于网络,如有侵权,请联系作者删除!