Quantcast

swap-scala's RDFa parser deployed on google app engine

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

swap-scala's RDFa parser deployed on google app engine

Dan Connolly
quickly... gotta rush off...

See http://dckc-swap.appspot.com/

Its Crazy Ivan interface is:
  http://dckc-swap.appspot.com/rdfa?addr=

It's only passing about 70% of the tests, but I'm getting there.

for reference:

126:79cec064df26 2010-02-05 Google App Engine deployment command
125:c32bf44027e7 2010-02-05 dckc-swap web service home/cover page


--
Dan Connolly, W3C http://www.w3.org/People/Connolly/
gpg D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E


Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: swap-scala's RDFa parser deployed on google app engine

Dan Connolly
On Fri, 2010-02-05 at 19:52 -0600, Dan Connolly wrote:
> quickly... gotta rush off...
>
> See http://dckc-swap.appspot.com/

make that: http://dckc-swap.appspot.com/index.html

I thought my servlet's web.xml file would make those
equivalent, but evidently not; I'm still really new
to all this Java stuff.

> Its Crazy Ivan interface is:
>   http://dckc-swap.appspot.com/rdfa?addr=
>
> It's only passing about 70% of the tests, but I'm getting there.

EARL report:
http://lists.w3.org/Archives/Public/www-archive/2010Feb/att-0011/_earl.rdf
attached to
http://lists.w3.org/Archives/Public/www-archive/2010Feb/0011.html

I'm down to about 17 failures.

Summary of today's hacking fun...

130:0ecacabe6f4f 2010-02-06 - handle multiple values in RDFa @property
129:84b2c10cc6e6 2010-02-06 add parseType="Literal" for xml terms
128:4aef97707df2 2010-02-06 oops... fix lang symbol->string in RDFXML
serialization
127:6b48fc6c1d07 2010-02-05 - handle IOException etc. in RDFa servlet
126:79cec064df26 2010-02-05 Google App Engine deployment command
125:c32bf44027e7 2010-02-05 dckc-swap web service home/cover page
124:ac5302572da0 2010-02-05 tee-hee... use the RDFa parser, silly
123:6c0eaf3d9319 2010-02-05 oops; lang/string were backwards in RDF/XML
serializer
122:db539158f521 2010-02-05 minimal appengine-web.xml Google App Engine
config file
121:aa817c8811fc 2010-02-05 RDFa extractor servlet works in one case
120:67e5be541e6b 2010-02-05 move WebData from swap.test to swap
119:893406b91beb 2010-02-05 hello-world servlet infrastructure, aiming
for Google App Engine deployment

--
Dan Connolly, W3C http://www.w3.org/People/Connolly/
gpg D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E


Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: swap-scala's RDFa parser deployed on google app engine

Michael Hausenblas

Thanks a lot DanC! Awesome. I'll update the IR soon together with Damian's
java-rdfa parser, which is still on my todo list. Any other implementation I
might have missed out?

Cheers,
      Michael

--
Dr. Michael Hausenblas
LiDRC - Linked Data Research Centre
DERI - Digital Enterprise Research Institute
NUIG - National University of Ireland, Galway
Ireland, Europe
Tel. +353 91 495730
http://linkeddata.deri.ie/
http://sw-app.org/about.html



> From: Dan Connolly <[hidden email]>
> Date: Sat, 06 Feb 2010 01:39:49 -0600
> To: RDFa TF list <[hidden email]>
> Cc: <[hidden email]>
> Subject: Re: swap-scala's RDFa parser deployed on google app engine
> Resent-From: RDFa TF list <[hidden email]>
> Resent-Date: Sat, 06 Feb 2010 07:39:52 +0000
>
> On Fri, 2010-02-05 at 19:52 -0600, Dan Connolly wrote:
>> quickly... gotta rush off...
>>
>> See http://dckc-swap.appspot.com/
>
> make that: http://dckc-swap.appspot.com/index.html
>
> I thought my servlet's web.xml file would make those
> equivalent, but evidently not; I'm still really new
> to all this Java stuff.
>
>> Its Crazy Ivan interface is:
>>   http://dckc-swap.appspot.com/rdfa?addr=
>>
>> It's only passing about 70% of the tests, but I'm getting there.
>
> EARL report:
> http://lists.w3.org/Archives/Public/www-archive/2010Feb/att-0011/_earl.rdf
> attached to
> http://lists.w3.org/Archives/Public/www-archive/2010Feb/0011.html
>
> I'm down to about 17 failures.
>
> Summary of today's hacking fun...
>
> 130:0ecacabe6f4f 2010-02-06 - handle multiple values in RDFa @property
> 129:84b2c10cc6e6 2010-02-06 add parseType="Literal" for xml terms
> 128:4aef97707df2 2010-02-06 oops... fix lang symbol->string in RDFXML
> serialization
> 127:6b48fc6c1d07 2010-02-05 - handle IOException etc. in RDFa servlet
> 126:79cec064df26 2010-02-05 Google App Engine deployment command
> 125:c32bf44027e7 2010-02-05 dckc-swap web service home/cover page
> 124:ac5302572da0 2010-02-05 tee-hee... use the RDFa parser, silly
> 123:6c0eaf3d9319 2010-02-05 oops; lang/string were backwards in RDF/XML
> serializer
> 122:db539158f521 2010-02-05 minimal appengine-web.xml Google App Engine
> config file
> 121:aa817c8811fc 2010-02-05 RDFa extractor servlet works in one case
> 120:67e5be541e6b 2010-02-05 move WebData from swap.test to swap
> 119:893406b91beb 2010-02-05 hello-world servlet infrastructure, aiming
> for Google App Engine deployment
>
> --
> Dan Connolly, W3C http://www.w3.org/People/Connolly/
> gpg D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E
>
>


Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: swap-scala's RDFa parser deployed on google app engine

Toby Inkster-4
On Sat, 2010-02-06 at 11:21 +0000, Michael Hausenblas wrote:
> Thanks a lot DanC! Awesome. I'll update the IR soon together with
> Damian's java-rdfa parser, which is still on my todo list. Any other
> implementation I might have missed out?

I'd appreciate it if you dropped Swignition and replaced it with
RDF::RDFa::Parser. The latter is passing the full test suite (or at
least it does when run locally on my computer). I have a web service
here though it can be a little slow:

        http://srv.buzzword.org.uk/rdfa-to-xml.cgi?uri=

For those who are interested, Swignition (formerly known as Cognition)
is more or less dead. However, its carrion will provide food for various
spin-offs that I'm releasing (of which RDF::RDFa::Parser is the first).
Swignition was too monolithic - the spin-offs will be smaller, more
modular parsers and serialisers/writers.

--
Toby A Inkster
<mailto:[hidden email]>
<http://tobyinkster.co.uk>


Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: swap-scala's RDFa parser deployed on google app engine

Gregg Kellogg
I'd appreciate it if you'd add the RdfContext Ruby gem (http://github.com/gkellogg/rdf_context) to the rdfa.info wiki. It includes a previously released RdfaParser, along with N3, RDF/XML parsers and persistent context-based triple storage. It, too, has a distiller available here: http://kellogg-assoc.com/distiller. This parser is also referenced from Manu's test sute.

RdfContext passes all W3C RDfa and RDF/XML parser tests and is implemented in pure Ruby.

Gregg Kellogg

e: [hidden email]
c: (415) 686-8603
p: (415) 459-3202
f: (317) 642-2755

On Feb 6, 2010, at 11:13 AM, Toby Inkster wrote:

On Sat, 2010-02-06 at 11:21 +0000, Michael Hausenblas wrote:
Thanks a lot DanC! Awesome. I'll update the IR soon together with
Damian's java-rdfa parser, which is still on my todo list. Any other
implementation I might have missed out?

I'd appreciate it if you dropped Swignition and replaced it with
RDF::RDFa::Parser. The latter is passing the full test suite (or at
least it does when run locally on my computer). I have a web service
here though it can be a little slow:

http://srv.buzzword.org.uk/rdfa-to-xml.cgi?uri=

For those who are interested, Swignition (formerly known as Cognition)
is more or less dead. However, its carrion will provide food for various
spin-offs that I'm releasing (of which RDF::RDFa::Parser is the first).
Swignition was too monolithic - the spin-offs will be smaller, more
modular parsers and serialisers/writers.

--
Toby A Inkster
<mailto:[hidden email]>
<http://tobyinkster.co.uk>



Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: swap-scala's RDFa parser deployed on google app engine

Michael Hausenblas
In reply to this post by Toby Inkster-4

Toby,

Yup, will take care of it. Thanks for the reminder ;)

Cheers,
      Michael

--
Dr. Michael Hausenblas
LiDRC - Linked Data Research Centre
DERI - Digital Enterprise Research Institute
NUIG - National University of Ireland, Galway
Ireland, Europe
Tel. +353 91 495730
http://linkeddata.deri.ie/
http://sw-app.org/about.html



> From: Toby A Inkster <[hidden email]>
> Date: Sat, 06 Feb 2010 19:13:40 +0000
> To: Michael Hausenblas <[hidden email]>
> Cc: Dan Connolly <[hidden email]>, RDFa TF list
> <[hidden email]>, <[hidden email]>
> Subject: Re: swap-scala's RDFa parser deployed on google app engine
>
> On Sat, 2010-02-06 at 11:21 +0000, Michael Hausenblas wrote:
>> Thanks a lot DanC! Awesome. I'll update the IR soon together with
>> Damian's java-rdfa parser, which is still on my todo list. Any other
>> implementation I might have missed out?
>
> I'd appreciate it if you dropped Swignition and replaced it with
> RDF::RDFa::Parser. The latter is passing the full test suite (or at
> least it does when run locally on my computer). I have a web service
> here though it can be a little slow:
>
> http://srv.buzzword.org.uk/rdfa-to-xml.cgi?uri=
>
> For those who are interested, Swignition (formerly known as Cognition)
> is more or less dead. However, its carrion will provide food for various
> spin-offs that I'm releasing (of which RDF::RDFa::Parser is the first).
> Swignition was too monolithic - the spin-offs will be smaller, more
> modular parsers and serialisers/writers.
>
> --
> Toby A Inkster
> <mailto:[hidden email]>
> <http://tobyinkster.co.uk>
>


Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: swap-scala's RDFa parser deployed on google app engine

Dan Connolly
In reply to this post by Dan Connolly
On Sat, 2010-02-06 at 01:39 -0600, Dan Connolly wrote:
> I'm down to about 17 failures.

I think my parser is compliant now, i.e. as of rev 144:f8638002afd5 .
http://code.google.com/p/swap-scala/source/detail?r=f8638002afd5523a70016dedfdb101cead824dee

Updated EARL report:
http://lists.w3.org/Archives/Public/www-archive/2010Feb/att-0018/_earl.rdf
http://lists.w3.org/Archives/Public/www-archive/2010Feb/0018.html

It shows some XMLLiteral failures (#101, #102, #103) and one
for Test #134 Uppercase reserved words.

I consider the XMLLiteral problems limitations of the test
harness; I suggest more subtle SPARQL queries. I don't recommend
a strict canonical-xml requirement on RDFa parsers; I hope
we can find some equivalence test from XQuery that will serve
better.

As I said in my recent comment,
I don't see any justification in the spec for test #134.


> make that: http://dckc-swap.appspot.com/index.html
>
> > Its Crazy Ivan interface is:
> >   http://dckc-swap.appspot.com/rdfa?addr=


--
Dan Connolly, W3C http://www.w3.org/People/Connolly/
gpg D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E


Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: swap-scala's RDFa parser deployed on google app engine

Philip Taylor-5
Dan Connolly wrote:
> [...]
> I consider the XMLLiteral problems limitations of the test
> harness; I suggest more subtle SPARQL queries. I don't recommend
> a strict canonical-xml requirement on RDFa parsers; I hope
> we can find some equivalence test from XQuery that will serve
> better.

The exclusive Canonical XML requirement is a feature of RDF, not RDFa.
http://www.w3.org/TR/rdf-concepts/#dfn-rdf-XMLLiteral says:

   "The lexical space is the set of all strings [...] for which encoding
as UTF-8 [RFC 2279] yields exclusive Canonical XML (with comments, with
empty InclusiveNamespaces PrefixList) [XML-XC14N]"

so if an RDF producer (e.g. an RDFa parser) produces an RDF triple whose
object is a typed literal with datatype rdf:XMLLiteral and with a
lexical form that is *not* in exclusive canonical form, then it is not
conforming RDF, and I would expect a test suite for an RDF-based
technology to flag it as an error. Until/unless RDF changes the
definition of rdf:XMLLiteral, I don't believe RDFa has any choice in this.

--
Philip Taylor
[hidden email]

Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

XML Literals and canonicalization [was: swap-scala's RDFa ...]

Dan Connolly
On Tue, 2010-02-09 at 09:15 +0000, Philip Taylor wrote:

> Dan Connolly wrote:
> > [...]
> > I consider the XMLLiteral problems limitations of the test
> > harness; I suggest more subtle SPARQL queries. I don't recommend
> > a strict canonical-xml requirement on RDFa parsers; I hope
> > we can find some equivalence test from XQuery that will serve
> > better.
>
> The exclusive Canonical XML requirement is a feature of RDF, not RDFa.
> http://www.w3.org/TR/rdf-concepts/#dfn-rdf-XMLLiteral says:
>
>    "The lexical space is the set of all strings [...] for which encoding
> as UTF-8 [RFC 2279] yields exclusive Canonical XML (with comments, with
> empty InclusiveNamespaces PrefixList) [XML-XC14N]"

I'm painfully aware... that seems like premature standardization,
in retrospect; I thought I argued against it in the RDF Core WG,
but I can't confirm from records.
http://www.w3.org/2000/03/rdf-tracking/#rdfms-xml-literal-namespaces

> so if an RDF producer (e.g. an RDFa parser) produces an RDF triple whose
> object is a typed literal with datatype rdf:XMLLiteral and with a
> lexical form that is *not* in exclusive canonical form, then it is not
> conforming RDF, and I would expect a test suite for an RDF-based
> technology to flag it as an error. Until/unless RDF changes the
> definition of rdf:XMLLiteral, I don't believe RDFa has any choice in this.

Of course the object is in canonical form, by definition. But
RDFa can allow canonical forms of more than one literal value
to be legal outputs for a given input.



--
Dan Connolly, W3C http://www.w3.org/People/Connolly/
gpg D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E


Loading...