/** * <p>Set the URI of the ontology to use for models that conform to * this specification.</p> * @param languageURI The new language URI * @exception OntologyException if the URI does not map to a known language profile */ public void setLanguage( String languageURI ) { m_languageURI = languageURI; m_profile = ProfileRegistry.getInstance().getProfile( m_languageURI ); if (m_profile == null) { throw new OntologyException( "Could not determine an ontology language profile for URI " + m_languageURI ); } }
if (getReasoner() != null && getProfile().equals( ProfileRegistry.getInstance().getProfile( ProfileRegistry.OWL_LANG ) )) {