"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>",
"PREFIX owl: <http://www.w3.org/2002/07/owl#>",
"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>") ;
Query query = QueryFactory.create(preamble+"\n"+qs, Syntax.syntaxARQ) ;
QueryExecution qexec = QueryExecutionFactory.create(query, model) ;
ResultSet rs = qexec.execSelect() ;
for ( ; rs.hasNext() ; )
{
QuerySolution soln= rs.next() ;
Node x = soln.get("x").asNode() ;
Node y = soln.get("y").asNode() ;
if ( ! multimap.containsKey(x) )
multimap.put(x, new ArrayList<Node>()) ;
multimap.get(x).add(y) ;