You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Håvard Mikkelsen Ottestad <ha...@acando.no> on 2016/07/29 08:28:55 UTC

XML to RDF

Hi,

I just wanted to give some publicity to a library I have worked on for some time. An XML to RDF Java library (open source / apache 2) that’s compatible with  Jena.

It’s blazingly fast and highly configurable. Available on GitHub https://github.com/AcandoNorway/XmlToRdf and on Maven http://mvnrepository.com/artifact/no.acando/xmltordf

Regards,
Håvard M. Ottestad

Re: XML to RDF

Posted by Håvard Ottestad <hm...@gmail.com>.
Hi,

Thank you Paul and everyone else who has shown interest in my XmlToRdf library. 

I will definitely contact that w3c group you mention.

I realize my email got a bit long, so tldr; XmlToRdf streams XML and needs very little ram. It handles common transforms with configuration and also supports SPARQL for transforming. It also handles mixed content and can build an IRI for an element as a composite ID based off its children and attributes. 

I have seen various ways of converting XML to RDF, from XSLT to Topbraid Composer. When building XmlToRdf I sought to make something as fast and memory efficient as possible. This is why XmlToRdf can convert 100 MB file in just a few seconds using 50 MB RAM (mathematically it requires about O(log n) memory and takes O(n) time). 

Initially XmlToRdf was a generic convertor that used SPARQL update and construct to transform the data. It still supports this approach, and even supplies a helper class to chain the transforms (PostProcessing). 

However, after using the library internally at Acando for a while it became obvious that a number of patterns kept repeating. One was about handling SimpleType elements as predicates with literals. Or being able to rename an element, and also to insert a predicate between two elements. 

Transforming with SPARQL can be a bit time consuming, not just having to write the query, but also that if you need multiple queries to rename elements, then it's going to take longer than renaming them during the initial XML to RDF conversion using a HashMap. 

We also ran into a number of complex cases. One was handling mixed content. Mixed content is where an element can contain both text and other elements. Our case was with handling markup of text inside an element. XmlToRdf handles mixed content by giving you the raw text, all the elements, and also an RDF list of the text and elements together. 

Another complex case was handing composite identifiers. Where you want to build the IRI for an element based on attributes or child elements or both. Since XmlToRdf uses a SAX streamer to do it's conversion (for speed and being able to handle huge XML files) it will buffer the elements until it can resolve (build) the IRI for the parent element. 

I would gladly help anyone to get started with the XmlToRdf library, just send me an email with your use case and I can help you set up a conversion. 

Regards,
Håvard

From my personal email since I've gone on holiday. 

> On 31 Jul 2016, at 05:05, Paul Tyson <ph...@sbcglobal.net> wrote:
> 
> Håvard, 3 things:
> 
> 1. You should announce this to the RDF and XML Interoperability W3C
> community group [1], and pursue this discussion there.
> 
> 2. Were you aware of the early work on RDF schema for XML infoset? [2]
> 
> 3. I agree with Martynas that XSLT is often a better way to specify and
> run transformations on XML. In particular, it is as easy as falling off
> a log to specify a transform to the above-referenced infoset schema.
> 
> Regards,
> --Paul
> 
> [1] https://www.w3.org/community/rax/
> [2] https://www.w3.org/TR/2001/NOTE-xml-infoset-rdfs-20010406
> 
> 
>> On Fri, 2016-07-29 at 08:28 +0000, Håvard Mikkelsen Ottestad wrote:
>> Hi,
>> 
>> I just wanted to give some publicity to a library I have worked on for some time. An XML to RDF Java library (open source / apache 2) that’s compatible with  Jena.
>> 
>> It’s blazingly fast and highly configurable. Available on GitHub https://github.com/AcandoNorway/XmlToRdf and on Maven http://mvnrepository.com/artifact/no.acando/xmltordf
>> 
>> Regards,
>> Håvard M. Ottestad
> 
> 

Re: XML to RDF

Posted by Paul Tyson <ph...@sbcglobal.net>.
Håvard, 3 things:

1. You should announce this to the RDF and XML Interoperability W3C
community group [1], and pursue this discussion there.

2. Were you aware of the early work on RDF schema for XML infoset? [2]

3. I agree with Martynas that XSLT is often a better way to specify and
run transformations on XML. In particular, it is as easy as falling off
a log to specify a transform to the above-referenced infoset schema.

Regards,
--Paul

[1] https://www.w3.org/community/rax/
[2] https://www.w3.org/TR/2001/NOTE-xml-infoset-rdfs-20010406


On Fri, 2016-07-29 at 08:28 +0000, Håvard Mikkelsen Ottestad wrote:
> Hi,
> 
> I just wanted to give some publicity to a library I have worked on for some time. An XML to RDF Java library (open source / apache 2) that’s compatible with  Jena.
> 
> It’s blazingly fast and highly configurable. Available on GitHub https://github.com/AcandoNorway/XmlToRdf and on Maven http://mvnrepository.com/artifact/no.acando/xmltordf
> 
> Regards,
> Håvard M. Ottestad



Re: XML to RDF

Posted by Paul Houle <on...@gmail.com>.
I think for my purposes "bullshit" is the accidental complexity that Fred
Brooks talks about in the mythical man month.  The core of RDF is pretty
good,  but there is a lot of "BS" in the surrounding standards,  tools,
 etc.

* For instance,  somebody writes
solution.get("varname").asLiteral().getByte() when working with a
QuerySolution in Jena and there are a few ways they could end up with an
N.P.E. that is not well described if that is what you write.  So maybe
somebody writes something that is longer and error prone in some other way.
[a Jena problem]
* There is a CSV and a TSV format for writing SPARQL result sets and if you
don't read the specification carefully you might think they are similar and
just have different separators,  but if you do you find that one of them is
lossy and the other one is lossless and worse yet,  you might not learn
this until you've got some code in place are afraid to change. [a standards
problem]
* The distinction between Literal-typed and Resource-typed properties in
OWL has some bad consequences,  for instance it is just one more reason why
Protoge looks like the cockpit on one of the original 747-100's (as opposed
to a recent 747 which has a glass cockpit)

All of the above complexities pretty clearly are cases where additional
complexity forces a decision you can make right or wrong.

Whether programmers are particularly talented or not,  they end up making
thousands and thousands of decisions -- for instance a real life business
application could very well have a thousand or so queries in it so multiply
all of the little cuts and confusions by a factor like that and you are
talking about a large human and economic cost.

When you get closer to the core of RDF standards you occasionally run into
other problems,  such as the "no validation of predicate names" that I
think is the #1 people new users abandon SPARQL.  Here's a case where the
*simplicity* of the underlying standard means that the process of writing
SPARQL problems are error prone,  but that's a solvable problem by putting
complexity into the query editor and possibly an error message generator.

You've got to be afraid of complexity however because it is so easy to get
into the "old lady who swallowed a mouse" problem.

On Fri, Jul 29, 2016 at 6:12 PM, Martynas Jusevičius <ma...@graphity.org>
wrote:

> Paul,
>
> I meant non-RDF XML to RDF/XML (triples) or to TriX (quads). As soon as we
> have RDF, SPARQL from there (CONSTRUCT for transformations).
>
> What is the RDF bullshit?
>
> On Fri, 29 Jul 2016 at 23:17, Paul Houle <on...@gmail.com> wrote:
>
> > @Martynas,  With XSLT are you talking about using XSLT to generate an
> > XML/RDF document?  Or punching in some UDFs that generate triples?
> >
> > One advantage of the low-to-no-configuration route is that you can start
> > doing SPARQL queries on the data on an exploratory basis without having
> to
> > do much or any work on setting up a transformation.
> >
> > If you translate XML to RDF in a transparent way,  you will also find
> that
> > many of the pattern matching things you could do with XPath,  XQuery or
> > XSLT can be done in ways that are much more transparent with SPARQL,
> Jena
> > rules,  etc.
> >
> > XML has a quite a bit of funkiness in it that leads to non-essential
> > complexity such as asymmetries in the handling of attributes and elements
> > such as attributes almost always being the default namespace.
> Individually
> > these are not so bad but when you add them up they introduce a large
> number
> > of latent errors and cognitive load on the part of users and programmers.
> >
> > A big difference also has to do with the handling of ordering of things.
> > For instance in an XML document the order of elements matters,  whereas
> in
> > RDF world the order of things doesn't matter unless you actually use the
> > list constructions.  Sometimes in the problem space the order does not
> > matter and then the "order-matters" semantics implicit to XML leads to a
> > conceptual gap that causes lots of little practical problems.
> >
> > With the "low-to-no-configuration" route you also can use one set of
> tools
> > (SPARQL,  Jena Rules) for XML,  JSON,  Relational,  YAML,  Stuff imported
> > directly from Java,  etc.
> >
> > My take is that programmers already need to learn too many things and
> know
> > too many different tools and we are too proud to admit we have cognitive
> > limits -- if we add RDF to a system we are adding the (unavoidable)
> > bullshit that comes with RDF and unless we can subtract at least as much
> > bullshit from the system from the benefits of RDF,  RDF is part of the
> > problem and not part of the solution.
> >
> > On Fri, Jul 29, 2016 at 4:06 PM, Martynas Jusevičius <
> > martynas@graphity.org>
> > wrote:
> >
> > > Hey,
> > >
> > > I am all for RDF conversion tools, but I think this would be much more
> > > reusable and portable if done as an XSLT stylesheet -- and probably
> > > more readable, too.
> > >
> > > I don't think there is a better tool than XSLT (2.0) when it comes to
> > > XML conversion.
> > >
> > > On Fri, Jul 29, 2016 at 10:28 AM, Håvard Mikkelsen Ottestad
> > > <ha...@acando.no> wrote:
> > > > Hi,
> > > >
> > > > I just wanted to give some publicity to a library I have worked on
> for
> > > some time. An XML to RDF Java library (open source / apache 2) that’s
> > > compatible with  Jena.
> > > >
> > > > It’s blazingly fast and highly configurable. Available on GitHub
> > > https://github.com/AcandoNorway/XmlToRdf and on Maven
> > > http://mvnrepository.com/artifact/no.acando/xmltordf
> > > >
> > > > Regards,
> > > > Håvard M. Ottestad
> > >
> >
> >
> >
> > --
> > Paul Houle
> >
> > *Applying Schemas for Natural Language Processing, Distributed Systems,
> > Classification and Text Mining and Data Lakes*
> >
> > (607) 539 6254    paul.houle on Skype   ontology2@gmail.com
> >
> > :BaseKB -- Query Freebase Data With SPARQL
> > http://basekb.com/gold/
> >
> > Legal Entity Identifier Lookup
> > https://legalentityidentifier.info/lei/lookup/
> > <http://legalentityidentifier.info/lei/lookup/>
> >
> > Join our Data Lakes group on LinkedIn
> > https://www.linkedin.com/grp/home?gid=8267275
> >
>



-- 
Paul Houle

*Applying Schemas for Natural Language Processing, Distributed Systems,
Classification and Text Mining and Data Lakes*

(607) 539 6254    paul.houle on Skype   ontology2@gmail.com

:BaseKB -- Query Freebase Data With SPARQL
http://basekb.com/gold/

Legal Entity Identifier Lookup
https://legalentityidentifier.info/lei/lookup/
<http://legalentityidentifier.info/lei/lookup/>

Join our Data Lakes group on LinkedIn
https://www.linkedin.com/grp/home?gid=8267275

Re: XML to RDF

Posted by Martynas Jusevičius <ma...@graphity.org>.
Paul,

I meant non-RDF XML to RDF/XML (triples) or to TriX (quads). As soon as we
have RDF, SPARQL from there (CONSTRUCT for transformations).

What is the RDF bullshit?

On Fri, 29 Jul 2016 at 23:17, Paul Houle <on...@gmail.com> wrote:

> @Martynas,  With XSLT are you talking about using XSLT to generate an
> XML/RDF document?  Or punching in some UDFs that generate triples?
>
> One advantage of the low-to-no-configuration route is that you can start
> doing SPARQL queries on the data on an exploratory basis without having to
> do much or any work on setting up a transformation.
>
> If you translate XML to RDF in a transparent way,  you will also find that
> many of the pattern matching things you could do with XPath,  XQuery or
> XSLT can be done in ways that are much more transparent with SPARQL,  Jena
> rules,  etc.
>
> XML has a quite a bit of funkiness in it that leads to non-essential
> complexity such as asymmetries in the handling of attributes and elements
> such as attributes almost always being the default namespace.  Individually
> these are not so bad but when you add them up they introduce a large number
> of latent errors and cognitive load on the part of users and programmers.
>
> A big difference also has to do with the handling of ordering of things.
> For instance in an XML document the order of elements matters,  whereas in
> RDF world the order of things doesn't matter unless you actually use the
> list constructions.  Sometimes in the problem space the order does not
> matter and then the "order-matters" semantics implicit to XML leads to a
> conceptual gap that causes lots of little practical problems.
>
> With the "low-to-no-configuration" route you also can use one set of tools
> (SPARQL,  Jena Rules) for XML,  JSON,  Relational,  YAML,  Stuff imported
> directly from Java,  etc.
>
> My take is that programmers already need to learn too many things and know
> too many different tools and we are too proud to admit we have cognitive
> limits -- if we add RDF to a system we are adding the (unavoidable)
> bullshit that comes with RDF and unless we can subtract at least as much
> bullshit from the system from the benefits of RDF,  RDF is part of the
> problem and not part of the solution.
>
> On Fri, Jul 29, 2016 at 4:06 PM, Martynas Jusevičius <
> martynas@graphity.org>
> wrote:
>
> > Hey,
> >
> > I am all for RDF conversion tools, but I think this would be much more
> > reusable and portable if done as an XSLT stylesheet -- and probably
> > more readable, too.
> >
> > I don't think there is a better tool than XSLT (2.0) when it comes to
> > XML conversion.
> >
> > On Fri, Jul 29, 2016 at 10:28 AM, Håvard Mikkelsen Ottestad
> > <ha...@acando.no> wrote:
> > > Hi,
> > >
> > > I just wanted to give some publicity to a library I have worked on for
> > some time. An XML to RDF Java library (open source / apache 2) that’s
> > compatible with  Jena.
> > >
> > > It’s blazingly fast and highly configurable. Available on GitHub
> > https://github.com/AcandoNorway/XmlToRdf and on Maven
> > http://mvnrepository.com/artifact/no.acando/xmltordf
> > >
> > > Regards,
> > > Håvard M. Ottestad
> >
>
>
>
> --
> Paul Houle
>
> *Applying Schemas for Natural Language Processing, Distributed Systems,
> Classification and Text Mining and Data Lakes*
>
> (607) 539 6254    paul.houle on Skype   ontology2@gmail.com
>
> :BaseKB -- Query Freebase Data With SPARQL
> http://basekb.com/gold/
>
> Legal Entity Identifier Lookup
> https://legalentityidentifier.info/lei/lookup/
> <http://legalentityidentifier.info/lei/lookup/>
>
> Join our Data Lakes group on LinkedIn
> https://www.linkedin.com/grp/home?gid=8267275
>

Re: XML to RDF

Posted by Paul Houle <on...@gmail.com>.
@Martynas,  With XSLT are you talking about using XSLT to generate an
XML/RDF document?  Or punching in some UDFs that generate triples?

One advantage of the low-to-no-configuration route is that you can start
doing SPARQL queries on the data on an exploratory basis without having to
do much or any work on setting up a transformation.

If you translate XML to RDF in a transparent way,  you will also find that
many of the pattern matching things you could do with XPath,  XQuery or
XSLT can be done in ways that are much more transparent with SPARQL,  Jena
rules,  etc.

XML has a quite a bit of funkiness in it that leads to non-essential
complexity such as asymmetries in the handling of attributes and elements
such as attributes almost always being the default namespace.  Individually
these are not so bad but when you add them up they introduce a large number
of latent errors and cognitive load on the part of users and programmers.

A big difference also has to do with the handling of ordering of things.
For instance in an XML document the order of elements matters,  whereas in
RDF world the order of things doesn't matter unless you actually use the
list constructions.  Sometimes in the problem space the order does not
matter and then the "order-matters" semantics implicit to XML leads to a
conceptual gap that causes lots of little practical problems.

With the "low-to-no-configuration" route you also can use one set of tools
(SPARQL,  Jena Rules) for XML,  JSON,  Relational,  YAML,  Stuff imported
directly from Java,  etc.

My take is that programmers already need to learn too many things and know
too many different tools and we are too proud to admit we have cognitive
limits -- if we add RDF to a system we are adding the (unavoidable)
bullshit that comes with RDF and unless we can subtract at least as much
bullshit from the system from the benefits of RDF,  RDF is part of the
problem and not part of the solution.

On Fri, Jul 29, 2016 at 4:06 PM, Martynas Jusevičius <ma...@graphity.org>
wrote:

> Hey,
>
> I am all for RDF conversion tools, but I think this would be much more
> reusable and portable if done as an XSLT stylesheet -- and probably
> more readable, too.
>
> I don't think there is a better tool than XSLT (2.0) when it comes to
> XML conversion.
>
> On Fri, Jul 29, 2016 at 10:28 AM, Håvard Mikkelsen Ottestad
> <ha...@acando.no> wrote:
> > Hi,
> >
> > I just wanted to give some publicity to a library I have worked on for
> some time. An XML to RDF Java library (open source / apache 2) that’s
> compatible with  Jena.
> >
> > It’s blazingly fast and highly configurable. Available on GitHub
> https://github.com/AcandoNorway/XmlToRdf and on Maven
> http://mvnrepository.com/artifact/no.acando/xmltordf
> >
> > Regards,
> > Håvard M. Ottestad
>



-- 
Paul Houle

*Applying Schemas for Natural Language Processing, Distributed Systems,
Classification and Text Mining and Data Lakes*

(607) 539 6254    paul.houle on Skype   ontology2@gmail.com

:BaseKB -- Query Freebase Data With SPARQL
http://basekb.com/gold/

Legal Entity Identifier Lookup
https://legalentityidentifier.info/lei/lookup/
<http://legalentityidentifier.info/lei/lookup/>

Join our Data Lakes group on LinkedIn
https://www.linkedin.com/grp/home?gid=8267275

Re: XML to RDF

Posted by Martynas Jusevičius <ma...@graphity.org>.
Hey,

I am all for RDF conversion tools, but I think this would be much more
reusable and portable if done as an XSLT stylesheet -- and probably
more readable, too.

I don't think there is a better tool than XSLT (2.0) when it comes to
XML conversion.

On Fri, Jul 29, 2016 at 10:28 AM, Håvard Mikkelsen Ottestad
<ha...@acando.no> wrote:
> Hi,
>
> I just wanted to give some publicity to a library I have worked on for some time. An XML to RDF Java library (open source / apache 2) that’s compatible with  Jena.
>
> It’s blazingly fast and highly configurable. Available on GitHub https://github.com/AcandoNorway/XmlToRdf and on Maven http://mvnrepository.com/artifact/no.acando/xmltordf
>
> Regards,
> Håvard M. Ottestad

Re: XML to RDF

Posted by Paul Houle <on...@gmail.com>.
(1) Nice Library
(2) Nice way of conceptualizing the x-to-RDF problem in general  (i.e.
vernacular data structures are graphs)

This kind of thing makes RDF look simple,  as it is.

On Fri, Jul 29, 2016 at 4:28 AM, Håvard Mikkelsen Ottestad <
haavard.ottestad@acando.no> wrote:

> Hi,
>
> I just wanted to give some publicity to a library I have worked on for
> some time. An XML to RDF Java library (open source / apache 2) that’s
> compatible with  Jena.
>
> It’s blazingly fast and highly configurable. Available on GitHub
> https://github.com/AcandoNorway/XmlToRdf and on Maven
> http://mvnrepository.com/artifact/no.acando/xmltordf
>
> Regards,
> Håvard M. Ottestad
>



-- 
Paul Houle

*Applying Schemas for Natural Language Processing, Distributed Systems,
Classification and Text Mining and Data Lakes*

(607) 539 6254    paul.houle on Skype   ontology2@gmail.com

:BaseKB -- Query Freebase Data With SPARQL
http://basekb.com/gold/

Legal Entity Identifier Lookup
https://legalentityidentifier.info/lei/lookup/
<http://legalentityidentifier.info/lei/lookup/>

Join our Data Lakes group on LinkedIn
https://www.linkedin.com/grp/home?gid=8267275

Re: XML to RDF

Posted by Paul Houle <on...@gmail.com>.
I very much like the idea of doing the lion's share of the thinking in RDF
world but there are some cases for configuration,  particularly when
performance is in mind.

In anything that is data-rich,  people are going to process as much data as
they feel comfortable doing,  so no matter how fast it is,  transformation
speed is going to be a limiting factor for some people.

The whole XML infoset has stuff it in that most people neither know or care
about and you don't want to materialize it all for everything although
somebody will probably want to materialize any particular part of it some
of the time.

Another interesting question is how to merge in knowledge from XML Schema.
For instance,  XML Schema is not just a validation schema,  it is also an
inference schema in that you can infer default values from an XML Schema.
Also of course an XML Schema (any schema) has documentation value,  and
generating something like an RDFS schema for the translated RDF would also
be a good thing.

On Fri, Jul 29, 2016 at 10:22 AM, Jean-Marc Vanel <je...@gmail.com>
wrote:

> Thanks for sharing
>
> There is also Gloze.
> The use case of Gloze is diferent from what I understand of your XmlToRdf .
> Basically Gloze has no configuration.
> There a canonical XML to RDF mapping.
> So you get easily RDF out of your XML, and then you use RDF tools like
> SPARQL or N3 (Euler/EYE) to transform the resulting RDF .
>
> The article:
>
> http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.88.8929&rep=rep1&type=pdf
> The source code:
> https://github.com/stevebattle/Gloze
> I have made enhancements to Gloze in another project that are maybe not in
> Github :( .
>
>
> 2016-07-29 10:28 GMT+02:00 Håvard Mikkelsen Ottestad <
> haavard.ottestad@acando.no>:
>
> > Hi,
> >
> > I just wanted to give some publicity to a library I have worked on for
> > some time. An XML to RDF Java library (open source / apache 2) that’s
> > compatible with  Jena.
> >
> > It’s blazingly fast and highly configurable. Available on GitHub
> > https://github.com/AcandoNorway/XmlToRdf and on Maven
> > http://mvnrepository.com/artifact/no.acando/xmltordf
> >
> > Regards,
> > Håvard M. Ottestad
> >
>
>
>
> --
> Jean-Marc Vanel
> Déductions SARL - Consulting, services, training,
> Rule-based programming, Semantic Web
> http://deductions-software.com/
> +33 (0)6 89 16 29 52
> Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui
>



-- 
Paul Houle

*Applying Schemas for Natural Language Processing, Distributed Systems,
Classification and Text Mining and Data Lakes*

(607) 539 6254    paul.houle on Skype   ontology2@gmail.com

:BaseKB -- Query Freebase Data With SPARQL
http://basekb.com/gold/

Legal Entity Identifier Lookup
https://legalentityidentifier.info/lei/lookup/
<http://legalentityidentifier.info/lei/lookup/>

Join our Data Lakes group on LinkedIn
https://www.linkedin.com/grp/home?gid=8267275

Re: XML to RDF

Posted by "Carlo.Allocca" <ca...@open.ac.uk>.
Very interesting thread.

I have also been working on similar topic but from CSV to RDF and reverse (http://bdj.pensoft.net/articles.php?id=5464).
But that paper takes the advantage of using RML mapping to compute the reverse.

Best,
Carlo


> On 29 Jul 2016, at 15:22, Jean-Marc Vanel <je...@gmail.com> wrote:
>
> Thanks for sharing
>
> There is also Gloze.
> The use case of Gloze is diferent from what I understand of your XmlToRdf .
> Basically Gloze has no configuration.
> There a canonical XML to RDF mapping.
> So you get easily RDF out of your XML, and then you use RDF tools like
> SPARQL or N3 (Euler/EYE) to transform the resulting RDF .
>
> The article:
> http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.88.8929&rep=rep1&type=pdf
> The source code:
> https://github.com/stevebattle/Gloze
> I have made enhancements to Gloze in another project that are maybe not in
> Github :( .
>
>
> 2016-07-29 10:28 GMT+02:00 Håvard Mikkelsen Ottestad <
> haavard.ottestad@acando.no>:
>
>> Hi,
>>
>> I just wanted to give some publicity to a library I have worked on for
>> some time. An XML to RDF Java library (open source / apache 2) that’s
>> compatible with  Jena.
>>
>> It’s blazingly fast and highly configurable. Available on GitHub
>> https://github.com/AcandoNorway/XmlToRdf and on Maven
>> http://mvnrepository.com/artifact/no.acando/xmltordf
>>
>> Regards,
>> Håvard M. Ottestad
>>
>
>
>
> --
> Jean-Marc Vanel
> Déductions SARL - Consulting, services, training,
> Rule-based programming, Semantic Web
> http://deductions-software.com/
> +33 (0)6 89 16 29 52
> Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui

-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.

Re: XML to RDF

Posted by Jean-Marc Vanel <je...@gmail.com>.
Thanks for sharing

There is also Gloze.
The use case of Gloze is diferent from what I understand of your XmlToRdf .
Basically Gloze has no configuration.
There a canonical XML to RDF mapping.
So you get easily RDF out of your XML, and then you use RDF tools like
SPARQL or N3 (Euler/EYE) to transform the resulting RDF .

The article:
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.88.8929&rep=rep1&type=pdf
The source code:
https://github.com/stevebattle/Gloze
I have made enhancements to Gloze in another project that are maybe not in
Github :( .


2016-07-29 10:28 GMT+02:00 Håvard Mikkelsen Ottestad <
haavard.ottestad@acando.no>:

> Hi,
>
> I just wanted to give some publicity to a library I have worked on for
> some time. An XML to RDF Java library (open source / apache 2) that’s
> compatible with  Jena.
>
> It’s blazingly fast and highly configurable. Available on GitHub
> https://github.com/AcandoNorway/XmlToRdf and on Maven
> http://mvnrepository.com/artifact/no.acando/xmltordf
>
> Regards,
> Håvard M. Ottestad
>



-- 
Jean-Marc Vanel
Déductions SARL - Consulting, services, training,
Rule-based programming, Semantic Web
http://deductions-software.com/
+33 (0)6 89 16 29 52
Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui