704998200 opened a new issue, #2102: URL: https://github.com/apache/jena/issues/2102
### Version 4.10 ### Question This query works in Jena 3.16 ``` PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX brick: <https://brickschema.org/schema/Brick#> SELECT ?room WHERE { ?room brick:isPartOf <https://brickschema.org/schema/1.0.2/building_example#building:gtc/vavs/2/port[zn]>. } ```  But throw an error in Jena 4.10 ```[line: 5, col: 31] Bad IRI: 'https://brickschema.org/schema/1.0.2/building_example#building:gtc/vavs/2/port[zn]': <https://brickschema.org/schema/1.0.2/building_example#building:gtc/vavs/2/port[zn]> Code: 0/ILLEGAL_CHARACTER in FRAGMENT: The character violates the grammar rules for URIs/IRIs.``` I know it's the problem of '[zn]'. I try to excape '[zn]',but it also throw an error ``` PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX brick: <https://brickschema.org/schema/Brick#> SELECT ?room WHERE { ?room brick:isPartOf <https://brickschema.org/schema/1.0.2/building_example#building:gtc/vavs/2/port\[zn\]>. } ``` How can i fix it -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
