在JENA Triplestore中替换域

时间:2015-09-08 19:11:07

标签: sparql apache-jena

我想替换存储在基于Jena的三重商店中的所有主题的服务器。

我试过这种方式,但服务器没有被替换......

DELETE { ?s ?p ?o }
INSERT { ?s1 ?p ?o }
WHERE { 
    { SELECT (uri(concat('http://localhost:8080/', SUBSTR(str(?s),22))) AS ?s1) 
        { 
          ?s ?p ?o . 
          FILTER regex(str(?s), '^https://somedomain.org/')
        }
     }
}

当我只运行以下查询时

SELECT (uri(concat('http://localhost:8080/', SUBSTR(str(?s),22)) ) AS ?s1) ?s 
{ 
  ?s ?p ?o . 
  FILTER regex(str(?s), '^https://somedomain.org/')
}

'?的'和'?s1'确实有正确的价值观。

看起来像是'?s'和'?s1'在DELETE / INSERT块中不可用。 我的更新查询有什么问题?

0 个答案:

没有答案