Hello,
I'm performing some queries using SPARQL with Jena in an Ontology created using
Protégé, where I wanna receive the name of the element and some characteristics.
My problem is that when I perform my query it always returns me the pieces of
information I need, but the table has also the datatype explicit after my
results, as I you can see in this example:
----------------------------------------------------------------------------------------------------
| Instancias |
Nome
|
==================================================================
| dea:B-98540AB | "Elemento B-98540 A e
B"^^<http://www.w3.org/2001/XMLSchema#string> |
| dea:B-98541AB | "Elemento B-98541 A e
B"^^<http://www.w3.org/2001/XMLSchema#string> |
----------------------------------------------------------------------------------------------------
I've tried to find a way of supressing the datatype and have only the lexical
form. Somebody suggested using STR, but it didn't work.
I know that I can use commands in Java to manipulate Strings, but it would be
better receiving just the lexical form of the elements directly from SPARQL.
Does anybody know how can I do that or can indicate some documentation about
SPARQL, other than the one provided by the W3C (I've already read it and
couldn't find an answer)?
Thanks for your help,
Anthony Andrey