bnouwt opened a new issue, #3042: URL: https://github.com/apache/jena/issues/3042
### Version 5.3.0 ### Feature Loading the following rule with the [`Rule.parseRules(...)`](https://github.com/apache/jena/blob/a50f0fe179c96e1e4e34ee7d7bab681bb94be8e6/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/Rule.java#L689) method gives an error. ``` -> (<http://example.org/#spiderman> <http://xmlns.com/foaf/0.1/name> "Человек-паук"@ru) . ``` ``` org.apache.jena.reasoner.rulesys.Rule$ParserException: Triple with 4 nodes! At '-> ( <http://example.org/#spiderman> <http://xmlns.com/foaf/0.1/name> " Человек-паук " @ru ) ' at org.apache.jena.reasoner.rulesys.Rule$Parser.parseClause(Rule.java:1016) at org.apache.jena.reasoner.rulesys.Rule$Parser.doParseRule(Rule.java:1081) at org.apache.jena.reasoner.rulesys.Rule$Parser.parseRule(Rule.java:1046) at org.apache.jena.reasoner.rulesys.Rule.parseRules(Rule.java:664) at org.apache.jena.reasoner.rulesys.Rule.parseRules(Rule.java:678) at org.apache.jena.reasoner.rulesys.Rule.parseRules(Rule.java:690) ... at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) ``` After checking [the source](https://github.com/apache/jena/blob/a50f0fe179c96e1e4e34ee7d7bab681bb94be8e6/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/Rule.java#L920-L950) it seems like literals with language tags are not supported by the current Rule syntax. We ran into this issue because we are trying to convert a string with RDF in turtle format into a string with every triple converted into the following Apache Jena's rule format: ``` -> ( <subject> <predicate> <object> ) . ``` The lack of support for language tags is currently not blocking for us. ### Are you interested in contributing a solution yourself? Perhaps? -- 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]
