title: Solving 3x3 Sudoku with SPARQL and OWL
body: <p>I'm trying to solve simple 3x3 Sudoku game inside query.wikidata.org using SPARQL and OWL.</p>
  <p><a href="https://i.stack.imgur.com/vmqsU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vmqsU.png" alt="3x3 Sudoku game" /></a></p>
  <pre><code>PREFIX owl: &lt;http://www.w3.org/2002/07/owl#&gt;
  SELECT ?a12 ?a13 ?a21 ?a23 ?a31 ?a32 WHERE{
  
  :Zahl a owl:Class;
          owl:oneOf (:1 :2 :3) .
  
   
  ?a12 a :Zahl.
  ?a13 a :Zahl.
  ?a21 a :Zahl.
  ?a23 a :Zahl.
  ?a31 a :Zahl.
  ?a32 a :Zahl.
         
  ?a11 owl:sameAs :1.
  ?a22 owl:sameAs :2.
  ?a33 owl:sameAs :3.
  
  ?a12 owl:differentFrom ?a11 ?a13 ?a22 ?a32.
  ?a13 owl:differentFrom ?a11 ?a12 ?a23 ?a33.
  ?a21 owl:differentFrom ?a22 ?a23 ?a11 ?a31.
  ?a23 owl:differentFrom ?a22 ?a21 ?a13 ?a33.
  ?a31 owl:differentFrom ?a11 ?a21 ?a32 ?a33.
  ?a32 owl:differentFrom ?a12 ?a22 ?a31 ?a33.
  }
  </code></pre>
  <p>But i get this error:</p>
  <pre><code>Query is malformed: Encountered &quot; &lt;PNAME_LN&gt; &quot;owl:oneOf &quot;&quot; at line 5, column 19.
  </code></pre>
  <p>Could somebody please point out my mistake?</p>