[ 
https://issues.apache.org/jira/browse/JENA-889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14343897#comment-14343897
 ] 

Andy Seaborne commented on JENA-889:
------------------------------------

This work (2.13.0-SNAPSHOT):
{noformat}
ublic static void main(String[] args) {
        Model m = RDFDataMgr.loadModel("location-mapping.ttl") ;
        FileManager.get().getLocationMapper().processConfig(m);
        Model m2 = ModelFactory.createDefaultModel() ;
        FileManager.get().readModel(m2, "file:foo.n3") ;
        System.out.println("DONE") ;
{noformat}
with a location mapping file of:
{noformat}
@prefix lm: <http://jena.hpl.hp.com/2004/08/location-mapping#> .

[] lm:mapping
   [ lm:name "file:foo.n3" ;     lm:altName "file:foo.ttl" ]
   .
{noformat}

{{foo.ttl}} is read by "readModel".

> FileManager/LocationMapper does not work with file: prefix for 
> LocatorClassLoader
> ---------------------------------------------------------------------------------
>
>                 Key: JENA-889
>                 URL: https://issues.apache.org/jira/browse/JENA-889
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Jena
>    Affects Versions: Jena 2.12.1
>            Reporter: Jan Vlug
>
> I tried to use a LocationMapper configuration file as described at: 
> https://jena.apache.org/documentation/notes/file-manager.html. This worked 
> fine in an old Jena version. But now I upgraded to 2.12.1 it seems that I 
> have to omit the file: prefix in the mapped URL.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to