Jump to content

RDF problem.


ohayo85

Recommended Posts

:) Hi, i'm confuse about RDF. To make it simple, i got RDF file look like this: Example from w3school:
<?xml version="1.0"?><rdf:RDFxmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cd="http://www.recshop.fake/cd#"> <rdf:Description rdf:about="http://www.recshop.fake/cd/Empire Burlesque">  <cd:artist>Bob Dylan</cd:artist>  <cd:country>USA</cd:country>  <cd:company>Columbia</cd:company>  <cd:price>10.90</cd:price>  <cd:year>1985</cd:year></rdf:Description></rdf:RDF>

After that, what should i do to proceed on? Unlike XML, if XML file with data inside, it can use XSLT to transform the XML file into other document such as HTML and viewable by the browser as output or result.If code above i save it as .rdf file, is that possible to use XSLT to transform it to other document which can view as output? If yes, is there any site with examples? i really need reference on that.To make it simple:XML + XSLT ---> HTML(result)RDF/XML + ? ---> ? (result)What should i do in order to run that .rdf file?Any help will greatly appreciate... :)

Link to comment
Share on other sites

RDF/XML is still a XML file, so the same rules apply for it.RDF/XML + XSLT ---> HTML (result)In addition, because RDF is a standard, you may be able to use a certain RDF parser to get what you want, resulting in the process ofRDF + SPARQL (to query the RDF with all of it's linkings and stuff) ---> XML (only the data you need; the format is also a standard) + XSLT ---> HTML (result)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...