fuseki 在线更新数据库命令:
s-update --service=http://localhost:3030/ds/update --file=update.ru
fuseki 的官网上写的命令是 s-update --service http://localhost:3030/ds/update --file=update.ru,其中--service之后没有写“=”,有误。
update.ru 的格式为:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ab: <http://learningsparql.com/ns/addressbook#>
PREFIX d: <http://learningsparql.com/ns/data#>
INSERT
{
d:i8301 ab:homeTel "(718) 440-9821" .
ab:Person a rdfs:Class .
}
WHERE {}