我正试图将个人插入ARC 2,暂时没有任何成功......
我使用了INSERT INTO ...CONSTRUCT
$query = 'PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX untitled-ontology-120:
<http://www.semanticweb.org/usuario/ontologies/2017/2/untitled-ontology-120>
INSERT INTO <http://localhost:80/proyecto1/data/mp2.rdf> CONSTRUCT
{?c rdf:label untitled-ontology-120:Pamplona.}
WHERE{?c rdf:type owl:NamedIndividual.
}';
我收到的Tee错误是
" executed INSERT, returned: int(0) Query errorsArray ( [0] => Could not properly handle "PREFIX owl:
当我尝试不使用CONSTRUCT
$query = 'PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX untitled-ontology-120:
<http://www.semanticweb.org/usuario/ontologies/2017/2/untitled-ontology-120>
INSERT INTO <http://localhost:80/proyecto1/data/mp2.rdf>
{untitled-ontology-120:Pamplona rdf:type owl:NamedIndividual.
}';
我收到了回复:
executed INSERT, returned:
array(3) { ["query_type"]=> string(6) "insert" ["result"]=> array(2)
{ ["t_count"]=> int(1) ["load_time"]=> float(0.0396) }
["query_time"]=> float(0.047343969345093) }
这个响应在我看来好像已经完成了smth,但是......没有任何东西添加到带有本体的RDF文件中
有人能帮帮我吗? 的 AKSW !!!! S.O.S。