How can I add qualified cardinality restriction in Jena? I can not use `createCardinalityQRestriction` because the `OntModelSpec` is for the first version of OWL, not OWL2. In ModelFactory's createOntologyModel, is there a way to create an OWL2 ontology? I need a class expression like

> 
> JeVysledkom **exactly** 1 Kolik\_Fazovy
> 
> 
> 

I've tried using this code:

```java
OntModel ontModel = ModelFactory.createOntologyModel();
OntClass ret = ontModel.createCardinalityQRestriction(null, ontProperty, cardinality,    ontClass2 );
ontClass.addSuperClass(ret);

```

but I get this exception:

> 
> com.hp.hpl.jena.ontology.ProfileException: Attempted to use language construct CARDINALITY\_Q that is not supported in the current language profile: OWL Full
> 
> 
>