Title: Issue with language-tagged literals in nested XML using languageMap · Issue #262 · RMLio/rmlmapper-java · GitHub
Open Graph Title: Issue with language-tagged literals in nested XML using languageMap · Issue #262 · RMLio/rmlmapper-java
X Title: Issue with language-tagged literals in nested XML using languageMap · Issue #262 · RMLio/rmlmapper-java
Description: I'm working with nested XML input where elements like
Open Graph Description: I'm working with nested XML input where elements like X Description: I'm working with nested XML input where elements like <title> contain a language attribute, e.g.: <myElement> <title language="fi">Automaalari</title> <titl...
Opengraph URL: https://github.com/RMLio/rmlmapper-java/issues/262
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue with language-tagged literals in nested XML using languageMap","articleBody":"I'm working with nested XML input where elements like `\u003ctitle\u003e` contain a language attribute, e.g.:\n\n```\n\u003cmyElement\u003e\n \u003ctitle language=\"fi\"\u003eAutomaalari\u003c/title\u003e\n \u003ctitle language=\"sv\"\u003eBillackerare\u003c/title\u003e\n\u003c/myElement\u003e\n```\nIn the past, I successfully used this mapping to generate properly language-tagged literals:\n\n```\nrr:predicate dc:title ;\nrr:objectMap [\n rml:reference \"./*[local-name()='title']\" ;\n rr:termType rr:Literal ;\n rml:languageMap [\n rr:class rdf:langString ;\n rml:reference \"./@*[local-name()='language']\"\n ]\n] .\n```\nHowever, in the latest version of RMLMapper that I tried (currently using the cli jar), all language literals that are using this kind of mapping are missing from the output.\n\nI have tried to modify the mapping based on the [test case](https://github.com/RMLio/rmlmapper-java/blob/a6e67cd9c95d220ce9b6d071836a3d98c509255b/src/test/resources/test-cases/RMLTC1032-XML/mapping.ttl)\nas follows:\n\n```\nrr:predicate dc:title ;\nrr:objectMap [\n rml:reference \"./title\" ;\n rr:termType rr:Literal ;\n rml:languageMap [\n rr:class rdf:langString ;\n rml:reference \"./title/@language\"\n ]\n] .\n```\nbut all language values appear to be taken from the first \u003ctitle\u003e, resulting in:\n`dc:title \"Automaalari\"@fi , \"Billackerare\"@fi .`\n\nThis seems to indicate that `rml:languageMap` does not correctly align language attributes with their respective values when dealing with sibling elements in XML.\n\nI've tried adjusting the reference paths and iterators, but results didn't change. Either the attribute was missing completely or all attributes were getting the same language tag.\n\nIs this a known regression or change in how `rml:languageMap` is evaluated with sibling XML elements?\nWhat is the recommended way to generate correct language-tagged literals from repeated XML child elements like `\u003ctitle\u003e` in the current version of RMLMapper?\n","author":{"url":"https://github.com/marianna-tselepi","@type":"Person","name":"marianna-tselepi"},"datePublished":"2025-07-22T08:21:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/262/rmlmapper-java/issues/262"}
route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:1d6ee5ee-8fb1-f4d8-68b1-e981a250979d current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id DE6E:3F42A4:C2A97:10726B:6A5547EE html-safe-nonce 6015ebc839b39fb098c9e24407d15499151b6ff22dbd83dd3936ba864f798c1a visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTZFOjNGNDJBNDpDMkE5NzoxMDcyNkI6NkE1NTQ3RUUiLCJ2aXNpdG9yX2lkIjoiODk2NTM3ODcwNDY5NzI4MDQ5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 visitor-hmac 40e344108d10b332cf5256ff4633618e5eb62f2b9ee2a286535d71371a47248d hovercard-subject-tag issue:3251643294 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/RMLio/rmlmapper-java/262/issue_layout twitter:image https://opengraph.githubassets.com/3ef972f36de01f9cd06a95b28987006855ac16cb22c92dab4cc73d8f7c818b6f/RMLio/rmlmapper-java/issues/262 twitter:card summary_large_image og:image https://opengraph.githubassets.com/3ef972f36de01f9cd06a95b28987006855ac16cb22c92dab4cc73d8f7c818b6f/RMLio/rmlmapper-java/issues/262 og:image:alt I'm working with nested XML input where elements like og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username marianna-tselepi hostname github.com expected-hostname github.com None cd9eea424140838b22e9eabd53d92b5702617ddd6d76efcd3a37f08d44309ca5 turbo-cache-control no-preview go-import github.com/RMLio/rmlmapper-java git https://github.com/RMLio/rmlmapper-java.git octolytics-dimension-user_id 12096796 octolytics-dimension-user_login RMLio octolytics-dimension-repository_id 138707242 octolytics-dimension-repository_nwo RMLio/rmlmapper-java octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 138707242 octolytics-dimension-repository_network_root_nwo RMLio/rmlmapper-java turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 3084b9f587e8f1e19803bbe0c77ac77ce3c99c5c ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.