Re: create HTML based on RDF?

May I tout my own work. I have a lightweight PHP library I use for this 
called Graphite. It is designed to work with small RDF documents (small 
is thousands of triples not millions!). I needed it to solve problems 
just like this.

It's designed to be quick to work with and quite easy to read and 
maintain the code. It's built on top of the ARC2 library, but provides 
functions to quickly navigate an RDF graph.

Regardless of the tool you use, I think you are on the correct track, 
design-wise. For our Open Data site, http://data.southampton.ac.uk/ I 
have a single php file to process each 'type' of item. First of all it 
gets all the triples from the backend, then depending on the suffix it 
either prints them as RDF/XML, Turtle or N-Triples, or if it's .html it 
loads them into a graphite graph and uses that to output an HTML page. 
This gives the same benefit as your approach-- the HTML is the same 
exact data as the RDF document.

http://graphite.ecs.soton.ac.uk/

The above URL gives the download & install instructions, some 
lightweight examples and documentation.



On 06/05/11 12:02, Frans Knibbe wrote:
> Hello,
>
> I am continuing my efforts with publishing Linked Data. I am trying to 
> that step by step. I have now managed to publish data in static RDF 
> files. Also, I have managed to configure my web server to do 303 
> redirection, returning either a HTML file or the RDF file, depending 
> on the client request. I understand that it is good practice to offer 
> a HTML representation of the data if the client is unable to handle RDF.
>
> I notice that it would be really helpful if I could automatically 
> generate HTML files based on the RDF files. That way I can focus on 
> just keeping the RDF file in good shape. After creating or editing an 
> RDF file I could run something that makes a HTML representation.
>
> Is anyone aware of software that can be used to automatically export a 
> RDF file to a HTML file that looks nice in an internet browser? Or 
> isn't this a common problem? I have to admit that I might thinking in 
> the wrong way about this.
>
> Regards,
> Frans
>
>
>

-- 
Christopher Gutteridge -- http://id.ecs.soton.ac.uk/person/1248

/ Lead Developer, EPrints Project, http://eprints.org/
/ Web Projects Manager, ECS, University of Southampton, http://www.ecs.soton.ac.uk/
/ Webmaster, Web Science Trust, http://www.webscience.org/

Received on Friday, 6 May 2011 13:04:54 UTC