Hi,
You can define several prefixes if needed, e.g.:
query = "PREFIX onto: <..> PREFIX onto2: <..> SELECT ?o WHERE {onto:Apple onto2:prop ?o. }"
You may also not use prefix at all, but full IRI, e.g.:
query = "SELECT ?p ?o WHERE {<
http://test.org/onto.owl#Apple> ?p ?o. }"
Jiba