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

Andy Seaborne commented on JENA-1966:
-------------------------------------

Works for me.

If you are using a development build, not a local build, then full snapshot 
build happens overnight. I've triggered an extra deployment - in an hour or so, 
it'll be done. 

Any Jena PR is reviewed before merge. Merge happen this morning.

Ensure you pick up the latest SNAPSHOT by e.g. deleting the old one, and also 
do a maven refresh of your project because the POMs and recursive dependencies 
have changed.

{{mvn dependency:resolve dependency:sources}}

{{mvn dependency:tree}}

{noformat}
[INFO] org.apache.jena:jena-arq:jar:3.17.0-SNAPSHOT
...
[INFO] +- com.github.jsonld-java:jsonld-java:jar:0.13.1:compile
{noformat}


> The base URI of a jsonLD file doesn't appear to be swapped out correctly.  
> The first "./" is replaced correctly with the specified base, but after that, 
> blank nodes that don't end up in the final graph seem to be created.
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JENA-1966
>                 URL: https://issues.apache.org/jira/browse/JENA-1966
>             Project: Apache Jena
>          Issue Type: Bug
>    Affects Versions: Jena 3.16.0
>            Reporter: Erich Bremer
>            Assignee: Andy Seaborne
>            Priority: Minor
>             Fix For: Jena 3.17.0
>
>
> The base URI of a jsonLD file doesn't appear to be swapped out correctly.  
> The first "./" is replaced correctly with the specified base, but after that, 
> blank nodes that don't end up in the final graph seem to be created.
>   
>  See:
>   
>  [https://github.com/ebremer/jenabug]
>   
>  using the following code to read in a JSON-LD file:
>  
> {noformat}
>          Model m = ModelFactory.createDefaultModel();
>          InputStream inputStream = new FileInputStream("demo.jsonld");
>          
> RDFParser.create().base("https://demo.com";).source(inputStream).lang(RDFLanguages.JSONLD).parse(m);
>          System.out.println("Number of triples : "+m.size());
>          RDFDataMgr.write(System.out, m, Lang.NQUADS);
> {noformat}
> demo.jsonld:
> {noformat}
> {
>       "@context": [
>               "https://w3id.org/ro/crate/1.0/context";
>       ],
>       "@graph": [
>               {
>                       "@id": "another/local/3223423423/blam.ttl",
>                       "@type": "CreativeWork"
>               },
>               {
>                       "@type": "CreativeWork",
>                       "@id": "ro-crate-metadata.jsonld",
>                       "conformsTo": {
>                               "@id": "https://w3id.org/ro/crate/1.0";
>                       },
>                       "about": {
>                               "@id": "./"
>                       }
>               }
>       ]
> }
> {noformat}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to