Code example for URI

Methods: toASCIIString

0
        OntModel model = ModelFactory.createOntologyModel(modelSpec);
 
        Stopwatch stopwatch = new Stopwatch();
        stopwatch.start();
        // Fetch the model 
        model.read(modelUri.toASCIIString(), syntax);
        stopwatch.stop();
 
        log.info("Remote ontology fetched - {} . Time taken: {}", modelUri, stopwatch);
 
        return model;
    } 
} 
 
Connect your IDE to all the code out there  Get Codota for Java