org.eclipse.rdf4j.query.Dataset.getDefaultRemoveGraphs()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(174)

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

Dataset.getDefaultRemoveGraphs介绍

[英]Gets the default remove graph URIs of this dataset. An empty set indicates the the store's default behaviour should be used, if not otherwise indicated in the operation.
[中]获取此数据集的默认删除图URI。如果操作中未另行指示,则空集表示应使用存储的默认行为。

代码示例

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

public Set<IRI> getDefaultRemoveGraphs() {
  Set<IRI> set = primary.getDefaultRemoveGraphs();
  if (set == null || set.isEmpty())
    return fallback.getDefaultRemoveGraphs();
  return set;
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-query

public Set<IRI> getDefaultRemoveGraphs() {
  Set<IRI> set = primary.getDefaultRemoveGraphs();
  if (set == null || set.isEmpty())
    return fallback.getDefaultRemoveGraphs();
  return set;
}

代码示例来源:origin: eclipse/rdf4j

@Override
public Set<IRI> getDefaultRemoveGraphs() {
  Set<IRI> set = primary.getDefaultRemoveGraphs();
  if (set == null || set.isEmpty())
    return fallback.getDefaultRemoveGraphs();
  return set;
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-repository-sail

private IRI[] getDefaultRemoveGraphs(Dataset dataset) {
  if (dataset == null) {
    return new IRI[0];
  }
  Set<IRI> set = new HashSet<>(dataset.getDefaultRemoveGraphs());
  if (set.isEmpty()) {
    return new IRI[0];
  }
  if (set.remove(SESAME.NIL)) {
    set.add(null);
  }
  return set.toArray(new IRI[set.size()]);
}

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
  queryParams.add(
      new BasicNameValuePair(Protocol.REMOVE_GRAPH_PARAM_NAME, String.valueOf(graphURI)));

代码示例来源:origin: eclipse/rdf4j

for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
  queryParams.add(
      new BasicNameValuePair(Protocol.REMOVE_GRAPH_PARAM_NAME, String.valueOf(graphURI)));

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-http-client

for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
  queryParams.add(
      new BasicNameValuePair(Protocol.REMOVE_GRAPH_PARAM_NAME, String.valueOf(graphURI)));

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-http-client

if (dataset.getDefaultRemoveGraphs().size() > 0) {
  if (!(dataset.getDefaultRemoveGraphs().equals(dataset.getDefaultGraphs()))) {
    logger.warn(
        "ambiguous dataset spec for SPARQL endpoint: default graphs and default remove graphs both defined but not equal");
  for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
    if (dataset.getDefaultInsertGraph() != null) {
      if (!dataset.getDefaultInsertGraph().equals(graphURI)) {

代码示例来源:origin: eclipse/rdf4j

if (dataset.getDefaultRemoveGraphs().size() > 0) {
  if (!(dataset.getDefaultRemoveGraphs().equals(dataset.getDefaultGraphs()))) {
    logger.warn(
        "ambiguous dataset spec for SPARQL endpoint: default graphs and default remove graphs both defined but not equal");
  for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
    if (dataset.getDefaultInsertGraph() != null) {
      if (!dataset.getDefaultInsertGraph().equals(graphURI)) {

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

if (dataset.getDefaultRemoveGraphs().size() > 0) {
  if (!(dataset.getDefaultRemoveGraphs().equals(dataset.getDefaultGraphs()))) {
    logger.warn(
        "ambiguous dataset spec for SPARQL endpoint: default graphs and default remove graphs both defined but not equal");
  for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
    if (dataset.getDefaultInsertGraph() != null) {
      if (!dataset.getDefaultInsertGraph().equals(graphURI)) {

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-repository-sail

final Set<IRI> removeGraphs = uc.getDataset().getDefaultRemoveGraphs();
if (!removeGraphs.isEmpty()) {
  con.removeStatement(uc, subj, pred, obj, new IRI[removeGraphs.size()]);

代码示例来源:origin: eclipse/rdf4j

for (IRI drg : sparqlDefinedDataset.getDefaultRemoveGraphs()) {
    mergedDataset.addDefaultRemoveGraph(drg);
for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
  mergedDataset.addDefaultRemoveGraph(graphURI);

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryparser-api

for (IRI drg : sparqlDefinedDataset.getDefaultRemoveGraphs()) {
    mergedDataset.addDefaultRemoveGraph(drg);
for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
  mergedDataset.addDefaultRemoveGraph(graphURI);

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

for (IRI drg : sparqlDefinedDataset.getDefaultRemoveGraphs()) {
    mergedDataset.addDefaultRemoveGraph(drg);
for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
  mergedDataset.addDefaultRemoveGraph(graphURI);

代码示例来源:origin: eclipse/rdf4j

for (IRI drg : sparqlDefinedDataset.getDefaultRemoveGraphs()) {
    mergedDataset.addDefaultRemoveGraph(drg);
for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
  mergedDataset.addDefaultRemoveGraph(graphURI);

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryparser-api

for (IRI drg : sparqlDefinedDataset.getDefaultRemoveGraphs()) {
    mergedDataset.addDefaultRemoveGraph(drg);
for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
  mergedDataset.addDefaultRemoveGraph(graphURI);

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

for (IRI drg : sparqlDefinedDataset.getDefaultRemoveGraphs()) {
    mergedDataset.addDefaultRemoveGraph(drg);
for (IRI graphURI : dataset.getDefaultRemoveGraphs()) {
  mergedDataset.addDefaultRemoveGraph(graphURI);

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-http-protocol

for (IRI defaultRemoveGraph : dataset.getDefaultRemoveGraphs()) {
  xmlWriter.textElement(TransactionXMLConstants.GRAPH_TAG, defaultRemoveGraph.stringValue());

代码示例来源:origin: org.eclipse.rdf4j/rdf4j-client

for (IRI defaultRemoveGraph : dataset.getDefaultRemoveGraphs()) {
  xmlWriter.textElement(TransactionXMLConstants.GRAPH_TAG, defaultRemoveGraph.stringValue());

代码示例来源:origin: eclipse/rdf4j

for (IRI defaultRemoveGraph : dataset.getDefaultRemoveGraphs()) {
  xmlWriter.textElement(TransactionXMLConstants.GRAPH_TAG, defaultRemoveGraph.stringValue());

相关文章