I tried something, but I think it is wrong semantically. Someone smart please suggest a better combination of types?

<html xmlns:foaf="http://xmlns.com/foaf/0.1/";>
 <head>
   <title>Test 0126</title>
       <base href="http://www.example.org/me";>
 </head>
 <body>
<div id="mark" about="#mark" typeof="foaf:Person foaf:name">Mark Birbeck</div>
 </body>
</html>

with a sparql of

ASK WHERE {
<http://www.example.org/me#mark> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> . <http://www.example.org/me#mark> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/name> .
}

and an annotation of:

   <TestCase rdf:about="Test0126">
       <dc:contributor>Shane McCarron</dc:contributor>
       <dc:title>Multiple types for an object</dc:title>
       <informationResourceInput rdf:resource="0126.html"/>
       <informationResourceResults rdf:resource="0126.sparql"/>
       <purpose>Checks to ensure that multiple curies in a typeof are
               parser correctly.</purpose>
<reviewStatus rdf:resource="http://www.w3.org/2006/03/test-description#unreviewed"/>
       <specificationReference></specificationReference>
   </TestCase>


Mark Birbeck wrote:
Hello all,

In Drupal 7, each page will be marked up something like this:

  <div typeof="foaf:Document sioc:Post" about="/d701/node/2#this">
    ...
  </div>

My parser got this wrong, treating the two @typeof values as one
string. As I started work on fixing this, I looked through the
manifest for a unit-test to work against, and I couldn't find one.

If Michael or someone knows that there is such a test, would they mind
giving me the number? (Sorry to be a pain...)

And if there is no such test at present, I think it might be worth adding one.

Regards,

Mark


--
Shane P. McCarron                          Phone: +1 763 786-8160 x120
Managing Director                            Fax: +1 763 786-8180
ApTest Minnesota                            Inet: sh...@aptest.com



Reply via email to