Our team is using an off-the-shelf library to deserialize some XML into Java objects. We want to turn these java objects into a reasonable RDF representation in order to work with them in Stardog. We looked at the pinto project(https://github.com/stardog-union/pinto) and found that it does almost exactly what we want, except with some undesirable results for java object properties with types like “XMLGregorianCalendar”. This class has many properties that we don’t care to see in our RDF result and would like to ignore all together. Where an XML serialization would simply output a timestamp, pinto seems to do examine a lot of unnecessary properties and generates RDF that is more complex than what is desired. Does pinto or any other library that you guys might know of, allow a fine tuning of the mapping used to get from Java to RDF?
Thanks for your help!
Dallas Phillips
Champion Technology Company
Dallas, I'm not aware of anything else, but Pinto "allow[s] a fine tuning of the mapping": it's open source with a liberal license and we're happy to accept good PRs. Cheers, Kendall |
--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
Our team is using an off-the-shelf library to deserialize some XML into Java objects. We want to turn these java objects into a reasonable RDF representation in order to work with them in Stardog. We looked at the pinto project(https://github.com/stardog-union/pinto) and found that it does almost exactly what we want, except with some undesirable results for java object properties with types like “XMLGregorianCalendar”. This class has many properties that we don’t care to see in our RDF result and would like to ignore all together. Where an XML serialization would simply output a timestamp, pinto seems to do examine a lot of unnecessary properties and generates RDF that is more complex than what is desired. Does pinto or any other library that you guys might know of, allow a fine tuning of the mapping used to get from Java to RDF?
Thanks for your help!
Dallas Phillips
Champion Technology Company
--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
> For more options, visit this group at
> http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Stardog" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to stardog+unsubscribe@clarkparsia.com.
--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
---
You received this message because you are subscribed to the Google Groups "Stardog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stardog+unsubscribe@clarkparsia.com.
It does a straight forward conversion from XML to RDF with a fair number of configurable conversion options. The most important focus has been speed and low memory footprint. It support converting XML to RDF turtle and an output stream or to a Sesame Repository or Jena Model for further transformations with Sparql.
We use it to convert Noark 4 and 5 to RDF and then store that in Stardog.
Thanks all for the suggestions.
We chose not to use XSLT because we're dealing with a fairly complex XML schema. Fortunately, the providers that schema offer a jaxb based library to de/serialize their XML and our current strategy is use this library in combination with pinto and hopefully avoid the work of creating lots of scary xslt transforms.
Michael, thanks for pointing me to the RDFCodec example. I think this is the missing piece for us. :)
-Dallas Phillips
Champion Technology Company.