@ Override public Service getService ( URI serviceUri ) throws ServiceException { if ( serviceUri == null || ! serviceUri . isAbsolute ( ) ) { log . warn ( "The Service URI is either absent or relative. Provide an absolute URI" ) ; return null ; } OntModel model = null ; try { model = this . graphStoreManager . getGraph ( URIUtil . getNameSpace ( serviceUri ) ) ; } catch ( URISyntaxException e ) { log . error ( "The namespace of the service is not a correct URI" , e ) ; return null ; } // Parse the service. There should only be one in the response ServiceReaderImpl reader = new ServiceReaderImpl ( ) ; List < Service > services = reader . parseService ( model ) ; if ( services != null && ! services . isEmpty ( ) ) { return services . get ( 0 ) ; } return null ; }
Obtains the service description of the service identified by the URI