- From: Lee Feigenbaum <lee@thefigtrees.net>
- Date: Wed, 18 May 2011 14:34:43 -0400
- To: Richard Cyganiak <richard@cyganiak.de>
- CC: RDF Working Group WG <public-rdf-wg@w3.org>
On 5/18/2011 2:22 PM, Richard Cyganiak wrote:
> The RDF 1.1 Literal Quiz ------------------------
>
> Q1. Does this RDF graph (written in Turtle) have one triple?
>
> <a> <b> 1 . <a> <b> "1"^^xsd:integer .
Yes, definitely.
> Q2. Does this RDF graph (written in Turtle) have one triple?
>
> <a> <c> "foo" . <a> <c> "foo"^^xsd:string .
Prefer yes.
> Q3. Is this be a valid Turtle file?
>
> <a> <b> "foo"^^rdf:PlainLiteral .
Prefer no.
> Q4. Is a parser allowed to unify "foo" and "foo"^^xsd:string into a
> single form while parsing?
Yes, definitely. Prefer "should" instead of "allowed to".
> Q5. Is this a valid N-Triples file?
>
> <a> <b> "foo" .
Don't care.
> Q6. Is this a valid N-Triples file?
>
> <a> <b> "foo"^^rdf:PlainLiteral .
Prefer no.
> Q7. Is this a valid N-Triples file?
>
> <a> <b> "foo"@en .
Don't care.
> Q8. Is this a valid N-Triples file?
>
> <a> <b> "foo"^^xsd:string .
Prefer yes, but don't care that much.
> Q9. Is this true in SPARQL?
>
> datatype("foo") == xsd:string
Yes, definitely.
> Q10. Is this true in SPARQL?
>
> datatype("foo") == error
No.
> Q11. Is this true in SPARQL?
>
> datatype("foo") == rdf:PlainLiteral
No.
> Q12. Is this true in SPARQL?
>
> datatype("foo"@en) == xsd:string
Don't care.
> Q13. Is this true in SPARQL?
>
> datatype("foo"@en) == error
Don't care, but prefer empty string perhaps.
> Q14. Is this true in SPARQL?
>
> datatype("foo"@en) == rdf:PlainLiteral
Prefer not.
> Q15. Is this true in SPARQL?
>
> datatype("foo"@en) == rdflang:en
Don't care.
> Q16. Does the literal in this RDF/XML fragment have a language tag?
>
> <rdf:Description rdf:about="a" xml:lang="en"> <rdf:b>foo</rdf:b>
> </rdf:Description>
RDF/what? Don't care.
> Q17. Does the literal in this RDF/XML fragment have a language tag?
>
> <rdf:Description rdf:about="a" xml:lang="en"> <rdf:b
> rdf:datatype="&xsd;string">foo</rdf:b> </rdf:Description>
Don't care.
> For each of the following pairs of statements, if the statement on
> the left is true, then is the statement on the right true as well in
> a system that supports datatype inference (specifically,
> {xsd:string}-Entailment)?
>
> Q18. {<a> <b> "foo" . } => {<a> <b> "foo"^^xsd:string . }
Yes.
> Q19. {<a> <b> "foo"^^xsd:string . } => {<a> <b> "foo" . }
Yes.
> Q20. {<a> <b> "foo" . } => {<a> <b> "foo"@en . }
No.
> Q21. {<a> <b> "foo"@en . } => {<a> <b> "foo" . }
No.
> Q22. {<a> <b> "foo"@en . } => {<a> <b> "foo"@en-GB . }
No.
> Q23. {<a> <b> "foo"@en-GB . } => {<a> <b> "foo"@en . }
Don't know/don't care.
> Q24. {<a> <b> "foo"@fr . } => {<a> <b> "foo"@en . }
No.
Lee
Received on Wednesday, 18 May 2011 18:35:11 UTC