I'm really getting mad with this! I nead to create a query for a graph, using rdf lib. This is the query:
queryCompetence = """prefix context: <http://www.ontologydesignpatterns.org/ont/mine/context.owl#>
select ?score where { <""" + \
str(elem) + """> context.hasProperty ?MyProperty. ?MyProperty ttt:hasScore ?score}."""
Where elem is a URI. I get the error: "ParseException: Expected "}" (at char 129), (line:2, col:51)", corresponding to the beginning of the elem URI in the query. Can anyone help me?