- From: Gregg Kellogg <gregg@greggkellogg.net>
- Date: Sun, 2 Oct 2016 11:33:50 -0700
- To: Robert Sanderson <azaroth42@gmail.com>
- Cc: Ivan Herman <ivan@w3.org>, Randall Leeds <randall@bleeds.info>, W3C Public Annotation List <public-annotation@w3.org>
- Message-Id: <244EBDA3-D31D-4800-AC54-FB8E71F61B5A@greggkellogg.net>
> On Oct 1, 2016, at 4:03 PM, Robert Sanderson <azaroth42@gmail.com> wrote: > > > What RDFa? Where ever that is ... it should go away as we're not maintaining it! :) You can see some particulars from my test results in the RESULDS.md file: https://github.com/Spec-Ops/web-platform-tests/blob/annotation-vocabulary-setup/annotation-vocab/tools/ruby-rdf/RESULTS.md The HTML+RDFa is simply asserting the Respec triples: @prefix dc: <http://purl.org/dc/terms/> . @prefix foaf: <http://xmlns.com/foaf/0.1/> . @prefix oa: <http://www.w3.org/ns/oa#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . <http://www.w3.org/ns/oa> dc:title "Web Annotation Ontology"; <bibo:editor> []; xhv:license <http://www.w3.org/Consortium/Legal/copyright-documents> . oa:respecDocument xhv:role xhv:document . oa:respecHeader xhv:role xhv:contentinfo . ([ a foaf:Person; foaf:homepage <http://www.paolociccarese.info>; foaf:mbox <mailto:paolo.ciccarese@gmail.com>; foaf:name "Paolo Ciccarese" ] [ a foaf:Person; foaf:homepage <http://bigbluehat.com/>; foaf:mbox <mailto:byoung@bigbluehat.com>; foaf:name "Benjamin Young" ]) . _:g70220666792480 a foaf:Person; foaf:homepage <http://www.stanford.edu/~azaroth/>; foaf:mbox <mailto:azaroth42@gmail.com>; foaf:name "Robert Sanderson"; foaf:workplaceHomepage <http://www.stanford.edu/> . Not a bug, unless you’re intending it to also provide the vocabulary; I simply reported it. > And I don't see any difference between the content of the comments between RDF/XML and the other serializations. If there is, it's a bug in rdflib as all three serializations are produced from the same graph. > > See: https://github.com/w3c/web-annotation/blob/gh-pages/vocab/wd/ontology/mk-ontology.py#L131-L139 <https://github.com/w3c/web-annotation/blob/gh-pages/vocab/wd/ontology/mk-ontology.py#L131-L139> > > Is it that the comment text is wrapped in a CDATA, and nokogiri is having a bad day? Yeah, it seems to be that the comment for oa:annotationService is in CDATA. This is because the parser uses the text value of the element, and Nokogiri doesn’t show CDATA as text, but as a separate child node of type CDATA. The parser uses text nodes. It’s not clear to me from the RDF/XML spec how these are to be treated, but the RDFLib-based parser at http://rdf-translator.appspot.com handles it, so it’s arguably a bug in Nokogiri or the Ruby RDF/XML reader. Still, it’s a bit unusual to see CDATA used here. In any case, this is simply informational, and if it’s doing what you expect, then you would seem to be clear. > R > > > On Sat, Oct 1, 2016 at 1:03 PM, Gregg Kellogg <gregg@greggkellogg.net <mailto:gregg@greggkellogg.net>> wrote: > Yes, my tests for the context and expected results for turning annotations into RDF now all pass. > > I do still note problems with the different ontology definitions, as they produce different triples. RDFa is not even close, RDF/XML is close to Turtle and JSON-LD, but has some minor differences. > > The RDF/XML version of the vocabulary is not identical (even allowing for differences in literal whitespace) with the JSON-LD. This includes at least the rdfs:comment on oa:annotationService. > > (This was noted in https://github.com/Spec-Ops/web-platform-tests/pull/8 <https://github.com/Spec-Ops/web-platform-tests/pull/8>). > > I updated the results in the annotation-vocabulary-setup branch on GitHub. > > Gregg Kellogg > gregg@greggkellogg.net <mailto:gregg@greggkellogg.net> > >> On Oct 1, 2016, at 11:44 AM, Ivan Herman <ivan@w3.org <mailto:ivan@w3.org>> wrote: >> >> I made the changes at around 10am French time earlier today (Saturday) >> >> Ivan >> >> --- >> Ivan Herman >> Tel:+31 641044153 <tel:%2B31%20641044153> >> http://www.ivan-herman.net <http://www.ivan-herman.net/> >> >> (Written on mobile, sorry for brevity and misspellings...) >> >> >> >> On 1 Oct 2016, at 19:59, Randall Leeds <randall@bleeds.info <mailto:randall@bleeds.info>> wrote: >> >>> I don't know when you did it, but I was poking around these last night and they looked good. I was playing with the context in the JSON-LD playground last night. >>> >>> >>> On Sat, Oct 1, 2016, 01:26 Ivan Herman <ivan@w3.org <mailto:ivan@w3.org>> wrote: >>> Ie, the ontology files (oa.{html,ttl,jsonld,rdf,owl}) as well as the jsonld context file (anno.{jsonld,json}). >>> >>> A quick check from somebody would be good, just to be on the safe side! >>> >>> (Thanks Rob for the fixes.) >>> >>> Ivan >>> >>> ---- >>> Ivan Herman, W3C >>> Digital Publishing Technical Lead >>> Home: http://www.w3.org/People/Ivan/ <http://www.w3.org/People/Ivan/> >>> mobile: +31-641044153 <tel:%2B31-641044153> >>> ORCID ID: http://orcid.org/0000-0003-0782-2704 <http://orcid.org/0000-0003-0782-2704> >>> >>> >>> >>> > > > > > -- > Rob Sanderson > Semantic Architect > The Getty Trust > Los Angeles, CA 90049
Received on Monday, 3 October 2016 01:50:02 UTC