开发者

RDF/XML to XHTML/HTML5 for Semantic web [closed]

开发者 https://www.devze.com 2023-03-19 04:40 出处:网络
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing th
Closed. This question is opinion-based. It is not currently accepting answers.

Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.

Closed 2 years ago.

Improve this question

So, I have numerous files in RDF/XML format which I want to use on the web. I want to be part of the Linked Data community and have HTML and RDF versions of my data files. Usually, what I've found is information about going the other way. However, if one had RDF data and wanted to share it, in a format that could be read by people on a web page, what would be the best way to do this?

1) I found a nice tool at: foaf-visualizer.org, which uses JQuery and CSS to present foaf files. It is a rather nice tool but I didn't see that the code itself was avai开发者_如何学Golable so that one could extend it for other tags besides the ones that the author chose to display. Maybe, I should create my own JQuery solution. I took an RDF file and converted it online to RDFa and could then use that, or the RDF file to display content from the RDF/XML file.

2) Use some form of style sheet transformation to convert either the rdf or the rdfa into an HTML version of the file. This second option would require manually inserting text into the document. The tool that created RDFa from RDF/XML just created a bunch of div tags using XSLT. Nothing that would display in the browser.

3) Some other version or approach to this might be possible. Thanks, Bruce


One option (but not necessarily the simplest) would be to load all the RDF/XML files into a triple store, and use a front-end such as Pubby or Linked Data Pages to generate the published HTML and RDF versions.


I faced the same problem you describe over and over again and - apart from the solution suggested by Richard - I am sorry to say that there is no definitive solution.

However, I found at least two tools that could be of help:

  • Rhizomic ReDeFer: even if conceived for a very different purpose, its RDF2HTML+RDFa service could be used to convert an RDF file to an HTML page with also RDFa embedded
  • Parrot: on the contrary, this tool was explicitly designed for documenting RDF and OWL files; however, last time I tried to use it I got some problems with the Javascript

Personally I prefer the former and used it extensively, but in perspective the latter is more promising for your purpose. The interesting thing is that both of them produce the HTML page with RDFa annotations.

0

精彩评论

暂无评论...
验证码 换一张
取 消