title: How to set a label to a resource with jena
body: <p>In my ontology I'm using <a href="http://www.w3.org/2004/02/skos/" rel="nofollow">SKOS</a> concepts. In the documentation there are labels (like <code>prefLabel</code>, etc., <code>mentioned</code>): <code>http://www.w3.org/TR/skos-reference/#labels</code>.
  How can I set such a label to a resource in Jena with defining the language?
  My example to add a concept looks like this:</p>
  
  <pre class="lang-java prettyprint-override"><code> Resource skosConcept = infModel.createResource("http://www.w3.org/2004/02/skos/core#Concept");
   Resource instance =  infModel.createResource("http://eg.com#Instance");
   infModel.add(instance, RDF.type, skosConcept);
  </code></pre>
  
  <p>But how can I define, for example, the <code>skos:prefLabel</code>? With a property to my instance resource? And how to set the language?  The class <a href="http://jena.apache.org/documentation/javadoc/jena/com/hp/hpl/jena/ontology/OntResource.html" rel="nofollow">OntResource</a> seems to have such a property for adding a label with language . But I'm using an <a href="http://jena.apache.org/documentation/javadoc/jena/com/hp/hpl/jena/rdf/model/InfModel.html" rel="nofollow">InfModel</a> so I can't get the resource as an <code>OntResource</code>.</p>