W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > December 2008

RE: Markup questions: html/body, datatype="", double predicates

From: Hausenblas, Michael <michael.hausenblas@joanneum.at>
Date: Wed, 10 Dec 2008 09:20:16 +0100
Message-ID: <768DACDC356ED04EA1F1130F97D2985201A3DA06@RZJC2EX.jr1.local>
To: "Richard Cyganiak" <richard@cyganiak.de>, <public-rdfa@w3.org>, "Ivan Herman" <ivan@w3.org>
Cc: "RDFa" <public-rdf-in-xhtml-tf@w3.org>


Richard,

This is actually the best place to ask, yes :)

I CC'd the 'old', rather RDFa TF-internal list as well for now, just in
case not all TF members read this one (which I can't imagine, though ;)

>1. Behaviour of RDFa markup on <html> and <body> elements. Let's say  
>my file contains these markup bits (doctype, namespace declarations  
>etc omitted):

Good question. It's valid RDFa but it seems we have not tested it
(--mhausenblas :).
The trouble seems to start as you have <html rel="foaf:maker"
rev="foaf:homepage">, that is start at the top-level, which is, again,
perfectly valid, as far as I can tell. Maybe Distiller makes some hidden
assumptions? Ivan?

I ran it trough bengee's ARC2 [1] and this seems fine, or?

>2. Behaviour of datatype="" when the content includes *RDFa* markup.  
>Let's say I have this in my HTML:

Again, seems to be Distiller-specific as far as I can tell, again cf.
[1] ...

>3. Double predicates. Just to confirm, is it always allowed to have  
>multiple CURIEs in the CURIE-accepting properties?

True for @rel, @rev, @property, @typeof - see [2].

Cheers,
	Michael

[1]
http://arc.web-semantics.org/demos/rdfa_tests/extract.php?url=http://ric
hard.cyganiak.de/2008/12/rdfa-test.html
[2] http://www.w3.org/TR/rdfa-syntax/#rdfa-attributes

----------------------------------------------------------
 Dr. Michael Hausenblas
 Institute of Information Systems & Information Management
 JOANNEUM RESEARCH Forschungsgesellschaft mbH
  
 http://www.joanneum.at/iis/
----------------------------------------------------------
 

>-----Original Message-----
>From: public-rdfa-request@w3.org 
>[mailto:public-rdfa-request@w3.org] On Behalf Of Richard Cyganiak
>Sent: Wednesday, December 10, 2008 12:29 AM
>To: public-rdfa@w3.org
>Subject: Markup questions: html/body, datatype="", double predicates
>
>
>Hi,
>
>I'm getting my feet wet with RDFa authoring. So far, it's a nice  
>enough experience, but I'm running into some issues that I cannot  
>answer myself. I'm not sure if this is the best list to ask these  
>questions, if there is a better one then please let me know.
>
>
>I'm using the RDFa Distiller at
>http://www.w3.org/2007/08/pyRdfa/
>to look at the triples. My test file is here:
>http://richard.cyganiak.de/2008/12/rdfa-test.html
>
>My problems are the following.
>
>
>1. Behaviour of RDFa markup on <html> and <body> elements. Let's say  
>my file contains these markup bits (doctype, namespace declarations  
>etc omitted):
>
><html rel="foaf:maker" rev="foaf:homepage">
>   <body about="#me">
>     ...
>
>I expect this to generate these triples:
>
><> foaf:maker <#me> .
><#me> foaf:homepage <> .
>
>But what I get from the RDFa Distiller:
>
><> foaf:maker <#me> .
><#me> foaf:homepage <> .
><> foaf:maker <> .
><> foaf:homepage <> .
>
>Why is this?
>
>
>2. Behaviour of datatype="" when the content includes *RDFa* markup.  
>Let's say I have this in my HTML:
>
><p about="#me" property="bio:olb">
>   I work at
>   <a rel="foaf:workplaceHomepage" href="http://www.deri.ie/">DERI
>   Galway</a>.
></p>
>
>This works as expected, it creates two triples, a bio:olb 
>triple whose  
>value is an rdf:XMLLiteral, and a foaf:workplaceHomepage triple whose  
>value is the DERI URL.
>
>Now I want the bio:olb as a plain literal, so I add 
>datatype="" to the  
><p> tag. This creates the expected plain literal, but the  
>foaf:workplaceHomepage triple disappears. Annoying! Is this the  
>correct result? I sort of hope that it's a bug in the RDFa Distiller...
>
>
>3. Double predicates. Just to confirm, is it always allowed to have  
>multiple CURIEs in the CURIE-accepting properties?
>
>rel="foo:prop1 bar:prop2"
>rev="foo:prop1 bar:prop2"
>property="foo:prop1 bar:prop2"
>typeof="foo:prop1 bar:prop2"
>
>I assume that all of these are legal and will result in two triples  
>instead of one?
>
>
>That's all for now. Finally, in case that some of the folks who  
>influenced the design of RDFa on this list: Let me say that I'm  
>impressed with the result. Obviously a lot of thought went into every  
>detail of the language and the result is pleasing and elegant.  
>Finally, here's an RDF syntax that does not suck and makes RDF  
>publishing fun!
>
>Cheers,
>Richard
>
>
Received on Wednesday, 10 December 2008 08:22:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:01:59 UTC