Protege中的SPARQL INSERT查询

时间:2014-10-15 21:20:30

标签: insert mapping sparql protege4

我正在尝试将我在Protege中的数据属性映射到带有Sparql的owl:Class但它不起作用。如果有人有例子,请不要犹豫,给我一个答案。

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX myOnto: <http://imis/SNI/9.4.3#>

INSERT DATA

   { 

      ?s rdf:type owl:Class

   }

WHERE {  ?s  ?o owl:DatatypeProperty}   

当我运行它时,我收到了这条消息。请帮我解决这个问题。

Error 61 Logged at Wed Oct 15 23:11:26 CEST 2014
SparqlReasonerException: org.openrdf.query.MalformedQueryException: Encountered "   "insert" "INSERT "" at line 7, column 1.
Was expecting one of:
"base" ...
"prefix" ...
"select" ...
"construct" ...
"describe" ...
"ask" ...    

0 个答案:

没有答案