How to display rdf file in web browser

2019-07-08 03:42发布

问题:

I have some web services which return RDF file. Now I need to display this RDF file like: http://dbpedia.org/page/Berlin. Is there some Java library which can do this, because now it looks like just as XML.

回答1:

Try Pubby, a Java webapp that can connect to an RDF data source and presents an HTML view. Usually the RDF data is stored in a SPARQL store, but you can also just load it from an RDF file using the conf:loadRDF configuration option.



回答2:

Try Jena, it will parse the RDF into Java structures which you can use to generate HTML. Also see the answers here: XSLT transformation from RDF to html