On Wed, Jun 6, 2012 at 12:03 PM, Dimitris Kontokostas <[email protected]> wrote:
> To be more accurate, this is a trick to make a triple valid in RDF/XML
>
>>
>> <p: xmlns:p="http://dbpedia.org/property/h%C3%B6he";
>> rdf:datatype="http://www.w3.org/2001/XMLSchema#int";>144</p:>
>
>
> xml elements do not allow all characters, thus making the namespace
> 'http://dbpedia.org/property/h%C3%B6he' instead of
> 'http://dbpedia.org/property/' generates a valid xml document.
> <p:h%C3%B6he is invalid because of the '%' character
>
>> I guess that properties like these used to cause errors. I also guess
>> that OpenLink recently upgraded Virtuoso to omit such properties from
>> RDF/XML.
>>
>> In the upcoming 3.8 release, problems like these are much reduced:
>> Most datasets use IRIs instead of URIs. The property URI above is now
>> extracted as <http://dbpedia.org/property/höhe>, which can be
>> represented in RDF/XML as  <p:höhe
>> xmlns:p="http://dbpedia.org/property/"; ...
>
>
> The same applies for IRIs. Not all IRI characters are valid for an XML
> element thus serializing IRI predicates in RDF/XML may (or probably) result
> in invalid files.
>
>
>>
>> There still are some properties that could not be represented in
>> RDF/XML, for example <http://dbpedia.org/property/audioSample%3F>. We
>> now append an underscore to such properties:
>> <http://dbpedia.org/property/audioSample%3F_> can be represented as
>> <p:_ xmlns:p="http://dbpedia.org/property/audioSample%3F"; ... It's a
>> bit ugly, but there's no other way to deal with this in RDF/XML.
>
>
> This is an example where the URI representation could result in valid
> RDF/XML using the 1st trick while not in IRI (because it ends with '?')
>
> My point is that since it is valid RDF we should not change only because
> of one spec
>

I understand your concerns. I'm also not a big fan of this underscore
trick, but in the end I think the advantages outweigh the
disadvantages:

- only properties from the http://dbpedia.org/property/ namespace are
affected - the generic properties extracted from templates / infoboxes
without much cleanup.
- only about one in a thousand of these triples is affected
- in the last few months, there have been quite a few bug reports and
mailing list requests about broken RDF/XML. OpenLink updated Virtuoso
so that these properties are commented out in RDF/XML, but this may
also confuse some users.

Cheers,
JC

> Cheers
> Dimitris
>
>> In short, all properties in DBpedia 3.8 can be represented in RDF/XML.
>> The XML namespaces and names will sometimes be ugly, but they'll be
>> well-formed.
>>
>> Cheers,
>> JC
>>
>> On Tue, Jun 5, 2012 at 6:41 PM, Jona Christopher Sahnwaldt
>> <[email protected]> wrote:
>> > Works for me... what was the error message? Do you have other examples?
>> >
>> > On Jun 5, 2012 5:42 PM, "Heiko Paulheim" <[email protected]>
>> > wrote:
>> >>
>> >> Hi all,
>> >>
>> >> I've noticed that there are some resources in DBpedia that returned
>> >> non-well-formed RDF/XML, e.g.
>> >> http://dbpedia.org/data/Darmstadt.rdf
>> >>
>> >>
>> >> http://validator.w3.org/check?uri=http%3A%2F%2Fdbpedia.org%2Fdata%2FDarmstadt.rdf&charset=%28detect+automatically%29&doctype=Inline&group=0
>> >>
>> >> Is that problem known? And is there a simple workaround for dealing
>> >> with
>> >> such non-well-formed RDF/XML documents, e.g., when processing them with
>> >> Jena?
>> >>
>> >> Best,
>> >> Heiko.
>> >>
>> >>
>> >> --
>> >> Dr. Heiko Paulheim
>> >> Knowledge Engineering Group
>> >> Technische Universität Darmstadt
>> >> Phone: +49 6151 16 6634
>> >> Fax:   +49 6151 16 5482
>> >> http://www.ke.tu-darmstadt.de/staff/heiko-paulheim
>> >>
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Live Security Virtual Conference
>> >> Exclusive live event will cover all the ways today's security and
>> >> threat landscape has changed and how IT managers can respond.
>> >> Discussions
>> >> will include endpoint security, mobile security and the latest in
>> >> malware
>> >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> >> _______________________________________________
>> >> Dbpedia-discussion mailing list
>> >> [email protected]
>> >> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Dbpedia-discussion mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>
>
>
>
> --
> Kontokostas Dimitris

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to