- From: David Decraene <David@landcglobal.com>
- Date: Tue, 4 Nov 2008 10:40:18 +0100
- To: "Toby A Inkster" <tai@g5n.co.uk>, "Semantic Web" <semantic-web@w3.org>
- Cc: <lee@thefigtrees.net>
Perhaps interesting to you is that this is exactly what is done at the page: http://jowl.ontologyonline.org/documentation.html Where instead of loading an OWL (xml) file, we embed owl syntax directly into the HTML with RDFa. The visualization library (jOWL) then extracts an OWL-document from the syntax and displays it in it's own way. <div content="#Functions" property="rdfs:subClassOf" about="#parse" typeof="owl:Class"> <span property="rdfs:label">jOWL.parse</span> <div property="rdfs:comment"><h3>jOWL.parse = function(document, options)</h3> <p>initialize jOWL with an existing OWL DOM document. Most users will have no need for this function. See <span class="owlClass" title="load">jOWL.load instead.</span></p> </div> </div> It's a simple implementation, to suit documentation needs, it may be improved in various ways, but works very well. ____ Rdfa distiller: http://www.w3.org/2007/08/pyRdfa/extract?uri=http%3A%2F%2Fjowl.ontologyo nline.org%2Fdocumentation.html&format=pretty-xml&warnings=false&parser=l ax&space-preserve=true&submit=Go! Related blog post (2007): http://ontologyonline.blogspot.com/2007/11/embedding-owl-rdfs-syntax-in- xhtml-with.html -----Original Message----- From: semantic-web-request@w3.org [mailto:semantic-web-request@w3.org] On Behalf Of Toby A Inkster Sent: dinsdag 4 november 2008 9:52 To: Semantic Web Cc: lee@thefigtrees.net Subject: Re: RDFS / OWL to HTML Lee Feigenbaum wrote: > Are there any tools out there that will read in an RDF Schema and/ > or OWL > file and produce an HTML summary of the schema/ontology? Assuming that your ultimate aim is to have HTML and RDF/XML representations of the same information without having to manually maintain both, then probably the best solution would be to flip your question on its head: is there a way to convert an HTML representation of an ontology into RDF/XML? There are various solution, but RDFa[1] is probably your best choice. You'd mark your schema up in XHTML like: <div about="#xyzzy" typeof="rdfs:Property" id="term_xyzzy"> <h2> <dfn property="rdfs:label">xyzzy</dfn> <a href="#term_xyzzy" rel="rdfs:isDefinedBy">#</a> </h2> <p property="rdfs:comment">The xyzzy of the thing.</p> <p>Sub-property of: <a rel="rdfs:subPropertyOf" href="#term_foo" resource="#foo">foo</a>.</p> </div> Then you'd pass the XHTML+RDFa document through an RDFa implementation [2] to produce an RDF/XML version. ____ 1. http://www.w3.org/TR/rdfa-syntax/ 2. http://www.w3.org/2006/07/SWD/RDFa/implementation-report/ -- Toby A Inkster <mailto:mail@tobyinkster.co.uk> <http://tobyinkster.co.uk>
Received on Tuesday, 4 November 2008 09:41:40 UTC