-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse XML with namespace #132
Comments
Hi! Unfortunately, this is a long standing issue we haven't been able to properly resolve. but without a proper resolution. |
Humm... maybe extract the source's I think it's better "mapping man" experience than the declarative way of the Carmel implementation seems to do this :
Linked to kg-construct/rml-fno-spec#9 |
That might be a possibility to workaround this problem, we always welcome any PRs to help out! In the meantime, I brought this to the attention of the W3C Community Group working around RML and other mapping language to have a standard like R2RML for transforming heterogeneous data into RDF, see kg-construct/rml-io#4 |
Hi, |
Hi @florent-andre You can also read the |
@DylanVanAssche please find a PR for solving Please note, that it fix work for Another remark: XPath xPath = XPathFactory.newInstance().newXPath();
xPath.setNamespaceContext(new NamespaceResolver(document)); |
@florent-andre Thanks for the PR! I will have a look next week :)
I'm not that familiar with XML namespaces, but I think this is PR is a good start in general, we can just mention it with a TODO comment that this case is not explored.
That would actually be better I think... Feel free to try it :) |
Regarding avoiding creating multiple |
Get your point about Singleton. |
As this PR was merged, I close this issue. |
Hello,
First, thanks for this promising tool set. And I hope I send the question on the good canal and repository.
I try to map an xml with namespaces for nodes (an
xsd
type file).When I remove the namespaces from my source file, the test triples are generated.
But when I restaure namespace in the xml file and add xsd: ns to xpath, I get an empty set of triples.
As I find no example of "xml with namespace" parsing, I ask myself how I can do that.
Here is the example I try to tackle, this can be added to mattey.
Thanks for you help,
regards
The text was updated successfully, but these errors were encountered: