- From: Thomas Francart <thomas.francart@sparna.fr>
- Date: Mon, 9 Jan 2017 11:30:11 +0100
- To: public-rdfa@w3.org
- Message-ID: <CAPugn7UA6GENmqqY4=y+p19mRAdeuYVzuFAGpeEVnhgxQSx3og@mail.gmail.com>
Hello RDFa mailing list
I am using Semargl [1] to parse HTML+RDFa pages. I have reported what I
think is bug [2], but I would like to be sure so if anyone can help with
the following questions this would be terrific.
Consider the following HTML+RDFa 1.0 snippet :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "
http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dcterms="
http://purl.org/dc/terms/" xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:eli="http://data.europa.eu/eli/ontology#" version="XHTML+RDFa 1.0"
lang="fr">
<head>
<title>xxx</title>
<meta property="eli:passed_by" content="Foo" />
</head>
<body>
</body>
</html>
Is it valid XHTML+RDFa 1.0 ?
Is it valid XHTML+RDFa 1.1 ?
Is the namespace declaration using xmlns valid ?
Can the structure of the above HTML be improved with respect to RDFa
metadata publishing (e.g. use "prefix" instead of xmlns declarations ?)
while retaining XHTML compatibility ? (I can give recommendation to the
publishers of such web pages)
The above snippet parses fine in rdfa.info/play and gives the following
output :
<http://rdfa.info/play/>
<http://data.europa.eu/eli/ontology#passed_by> "Foo"@fr .
But Semargl seems to ignore the prefix declarations in xmlns and produces
the following :
<...>
<eli:passed_by> "Foo"@fr
Thanks for any help/answer you can provide.
Cheers
Thomas
[1] : https://github.com/semarglproject/semargl
[2] : https://github.com/semarglproject/semargl/issues/49
--
*Thomas Francart* -* SPARNA*
Web de *données* | Architecture de l'*information* | Accès aux
*connaissances*
blog : blog.sparna.fr, site : sparna.fr, linkedin :
fr.linkedin.com/in/thomasfrancart
tel : +33 (0)6.71.11.25.97, skype : francartthomas
Received on Monday, 9 January 2017 10:31:12 UTC