%META:TOPICPARENT{name="VirtTipsAndTricksGuide"}% ---+How to construct query to change all the values of properties in a triple to strings? Suppose for given graph all values of properties are a mixture of strings and decimals. SELECT DISTINCT ?sa ?oa FROM WHERE { ?sa a . ?sa ?oa . FILTER regex(?oa, '-','i') } In order to change the values to string, should be executed the following statement: SQL> SPARQL INSERT INTO GRAPH { ?sa `str (?oa)` } WHERE { ?sa ?oa . FILTER regex(?oa, '-','i') } ---+++Related * [[VirtTipsAndTricksGuide][Virtuoso Tips and Tricks Collection]] * [[http://docs.openlinksw.com/virtuoso/rdfandsparql.html][RDF Data Access and Data Management]]