RMLio / RML-Mapper

Generate High Quality Linked Data from multiple originally (semi-)structured data (legacy)
http://RML.io
52 stars 20 forks source link

publishing while mapping? #8

Open seralf opened 8 years ago

seralf commented 8 years ago

Hi

I'm working with my colleagues on a prototype in which we are experimenting with RML mapping. For our testing it could be helpful to publish the triples extracted during the mapping phase: since the process at the moment actually creates a local sesame repository on disk, I wonder if there is some chance to configure it to publish instead the triples on a remote one?

thanks in advance

andimou commented 8 years ago

The latest version (after the upgrade to rdf4j but not publicly pushed yet) allows not to define the output (i.e. skip the -o parameter). In this case, it writes to System.out and one can handle the output stream as preferred. Is this close to what you are asking for?

seralf commented 8 years ago

uhm, it would be great if I could be able to add the triples directly on an existing triplestores. With RDF4J it should be not so complex to accomplish that, I could maybe provide a pull if someone gives me some hint on the involved classes in the current architecture. Our use case it's a bit peculiar probably, since we need to map a bunch of JSON from an API, but we also need to reconcile them by using some information describing arcs, which we need to query on before the actual mapping. We can do this by a pre-processing phase, but if we'd have the chance to publish while mapping, we could be able to adopt not only JSON but also SPARQL as a datasource, and focus instead on conventions on uri for reconciliation. Just an idea :-)

2016-10-27 18:15 GMT+02:00 andimou notifications@github.com:

The latest version (after the upgrade to rdf4j but not publicly pushed yet) allows not to define the output (i.e. skip the -o parameter). In this case, it writes to System.out and one can handle the output stream as preferred. Is this close to what you are asking for?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RMLio/RML-Mapper/issues/8#issuecomment-256693366, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFYfPHYuoSk0avO6fugSzasUap8Qr0-ks5q4M4HgaJpZM4Kiawk .

andimou commented 8 years ago

Hm, so you prefer to have a SPARQL Repository instead of Native Repository?

That can be configurable.. I'll come back to you regarding this

seralf commented 8 years ago

yes, having this option could be useful in some case! thank you very much :-)

canarvaeza commented 6 years ago

Hi,

Do you know if there's a way to get the output as a String and not as a file, up she says calling the program without -o works but for me that doesn't.