Skip to content
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

No output when using joins #60

Open
felixp23 opened this issue Apr 19, 2024 · 2 comments
Open

No output when using joins #60

felixp23 opened this issue Apr 19, 2024 · 2 comments

Comments

@felixp23
Copy link

I am trying to map an xml mqtt stream to rdf using the followoing parent triples map and join condition:
rr:predicateObjectMap [
rr:predicate sosa:observes;
rr:objectMap [
rr:parentTriplesMap <#CapacitiveSensorObservationMap>;
rr:joinCondition [
rr:child "References/Reference[@ReferenceType='HasComponent' and not (@IsForward='false')]";
rr:parent "@ParentNodeId";
];
];
].
When using this join condition on a snapshot of the xml data stream I send via mqtt on RMLMapper it works. Also when I use this snapshot as xml-file input for RMLStreamer it works, but when I constantly send the xml data as a stream and I want to map it, all other predicateObjectMaps are being mapped, but the parentTriplesMaps don't. I also tried to use "marker" join conditions as mentioned in a previous issue, but that didn't work either. I don't know what could be the issue.

I have the used mapping file as .txt file attached together with a snapshot of the xml data.
Short_Mapping.txt
Snapshot.txt
This is the ouput I get from the streamer, every time a new xml instance is sent:
Output_streamer

Furthermore, I encountered the issue that when I use different TriplesMaps on the same stream, I have to use the same iterator in these maps, otherwise I don't get an output at all.
Thank you for your help.

@s-minoo
Copy link
Contributor

s-minoo commented Apr 22, 2024

Can you try something similar to this example stream-join mapping file to define your join?

Especially the part with rmls:joinConfig

Let me know if it works with that!

@felixp23 felixp23 closed this as not planned Won't fix, can't repro, duplicate, stale May 2, 2024
@felixp23 felixp23 reopened this May 2, 2024
@felixp23
Copy link
Author

felixp23 commented May 2, 2024

Hello thank you for your quick answer. I tried to do it exactly like the provided example and my predicateObjectMap now looks like this:
image
With the corresponding JoinConfigMap:
image
Unfortunately, this didn't change anything in my output, everything else is mapped, but there is no output concerning the join. I tried it again with the "marker" join condition as well but still no change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants