You cannot assert anything with ASK (or SELECT) queries. The patterns
in these queries would be matched against the database (with reasoning
if enabled). If you want to check that a property is functional then
again a schema query would be enough. You can check if OP is
functional "ASK { OP a owl:FunctionalProperty }", or you can ask for
all the types of OP "SELECT ?type { OP a ?type }", or you can get all
functional properties "SELECT ?p { ?p a owl:FunctionalProperty }".
If you really need to make some temporary changes and query that state
you can do so by starting a transaction and query before committing.
In the end you can rollback the transaction and all changes will
disappear. But querying uncommitted state has certain overhead so you
will pay a performance penalty.
Best,
Evren