Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-discussion] Loading an Ontology

Thomas Russ tar at ISI.EDU
Tue Mar 23 17:21:53 PDT 2010


On Mar 23, 2010, at 4:27 PM, Qingmai Wang wrote:

>      String path = file.getPath();
>       path = path.replaceAll("\\\\", "/");
>       String uri = "file:///" + path;

BTW, don't do this.  It makes your code fragile and not portable.

Instead use

        file.toURI();





More information about the protege-discussion mailing list