@consof: The PREFIX keyword describes prefix declarations for abbreviating URIs. Without a prefix, you would have to use the entire URI in the query. Thus the ms prefix on your query needs to be specified in the query as:
You will probably find the needed PREFIX line at the start of the .ttl file you loaded. It will start PREFIX ms: and end with something like <http://example.com/blah/#>.
The whole line should be added to the start of your SPARQL query.
Please let us know if this gets you past the error…