Re: Various writer issues

2021-09-16 Thread Andy Seaborne
Hi Brian, The tests for these area are TestEscapeStr AbstractTestPrefixMap but the tests for PrefixMapAdapter aren't being run. Jena itself does not use PrefixMapAdapter during Turtle writing. Writing uses PrefixMap and, for performance and safety reasons, writing starts by copying prefixes

Re: How to keep Prefixes using Algebra

2021-09-16 Thread Andy Seaborne
On 15/09/2021 20:55, Martynas Jusevičius wrote: You could maybe getPrologue() from the original query and then setPrologue() on the resulting one. https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/query/Query.html#getPrologue() Yes. The algebra tralsation does include (pref

CVE-2021-39239: Apache Jena: XML External Entity (XXE) vulnerability

2021-09-16 Thread Andy Seaborne
Severity: high Description: A vulnerability in XML processing in Apache Jena, in versions up to 4.1.0, may allow an attacker to execute XML External Entities (XXE), including exposing the contents of local files to a remote server. Mitigation: Users are advised to upgrade to Apache Jena 4.2.0

[ANN] Apache Jena 4.2.0

2021-09-16 Thread Andy Seaborne
The Apache Jena development community is pleased to announce the release of Apache Jena 4.2.0 In this release: * ShEx engine JENA-2112 See https://jena.apache.org/documentation/shex/ * Support for reading JSON-LD 1.1 JENA-1948 JSON-LD 1.1 uses the Titanium system. https://github.com/f