Re: N3 in XHTML / META tag

On 11 Aug 2009, at 19:19, Martin Hepp (UniBW) wrote:

> <meta name="text/n3"
>    content="@prefix foo: &lt;http://www.example.com/xyz#&gt; .
>    @prefix gr:  &lt;http://purl.org/goodrelations/v1#&gt; .
>    @prefix xsd:  &lt;http://www.w3.org/2001/XMLSchema#&gt; .
>    @prefix rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt; .
>    foo:myCompany
>        a gr:BusinessEntity ;
>        rdfs:seeAlso &lt;http://www.example.com/xyz&gt; ;
>        gr:hasLegalName &quot;Hepp Industries  
> Ltd.&quot;^^xsd:string."/>


Maybe:

<link rel="meta" href="#my_data" />
<script type="text/n3" id="my_data">
   @prefix foo:  &lt;http://www.example.com/xyz#> .
   @prefix gr:   &lt;http://purl.org/goodrelations/v1#> .
   @prefix xsd:  &lt;http://www.w3.org/2001/XMLSchema#> .
   @prefix rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#> .
   foo:myCompany
     a gr:BusinessEntity ;
     rdfs:seeAlso &lt;http://www.example.com/xyz> ;
     gr:hasLegalName "Hepp Industries Ltd."^^xsd:string.
</script>

Note that while script@id is valid in HTML5 and all versions of  
XHTML, it is invalid in HTML4.

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>

Received on Tuesday, 11 August 2009 20:56:24 UTC