Hello
I'm using VOS 6.1.2 Win x64 and trying to insert triples against built-in 
SPARQL endpoint /sparql
A have problem with the such query:

INSERT DATA IN GRAPH <http://testgraph/> 
{<http://test.tomsk.ru/ontologies/test.owl#email> 
<http://www.w3.org/2000/01/rdf-schema#label> 
"E-mail"^^<http://www.w3.org/2001/XMLSchema#string> .
}

37000 Error SP031: SPARQL compiler: The query can be compiled and executed but 
not translated to an accurate SQL text

SPARQL query:
define sql:signal-void-variables 1 INSERT DATA IN GRAPH <http://testgraph/> 
{<http://test.tomsk.ru/ontologies/test.owl#email> 
<http://www.w3.org/2000/01/rdf-schema#label> 
"E-mail"^^<http://www.w3.org/2001/XMLSchema#string> .
}

But the similar queries works fine:

INSERT IN GRAPH <http://testgraph/> 
{<http://test.tomsk.ru/ontologies/test.owl#email> 
<http://www.w3.org/2000/01/rdf-schema#label> 
"E-mail"^^<http://www.w3.org/2001/XMLSchema#string> .
}

(without "DATA")

and 

INSERT DATA IN GRAPH <http://testgraph/> 
{<http://test.tomsk.ru/ontologies/test.owl#email> 
<http://www.w3.org/2000/01/rdf-schema#label> "E-mail" .
}

(without "^^<http://www.w3.org/2001/XMLSchema#string>").

My current solution is using INSERT instead of INSERT DATA, but according to 
SPARUL specification, INSERT DATA should be faster (I'm use only triples 
without any patterns and templates). 

Best regards, Alexander A. Zaripov
[email protected]

Reply via email to