Generate RDF From XML file

Generate RDF From XML file

Posted in the Semantic Web Forum


Sheffield, UK

#1 May 7, 2012
I have the following xml file, I need to create RDF triples from it using jena, please help
<website url=" ">contact1</website >
<website url=" ">contact2</website >

I need to obtain the following RDFs from the above files
<rdf:Description rdf:about=""> ;
<j.0:hasCritic>Joe</j .0:hasCritic>
<rdf:Description rdf:about=Joe >
<j.0:haswebsite>" "</j.0:haswebsite>
<j.0:hascontact>contact1 </j.0:hascontact>
<j.0:hasvote>80</j.0: hasvote>
<j.0:hasCritic>Anna</ j.0:hasCritic>
<rdf:Description rdf:about=Anna>
<j.0:haswebsite>" "</j.0:haswebsite>
<j.0:hascontact>contact2 </j.0:hascontact>
<j.0:hasvote>20</j.0: hasvote>

Tell me when this thread is updated:

Subscribe Now Add to my Tracker

Add your comments below

Characters left: 4000

Please note by submitting this form you acknowledge that you have read the Terms of Service and the comment you are posting is in compliance with such terms. Be polite. Inappropriate posts may be removed by the moderator. Send us your feedback.

Semantic Web Discussions

Title Updated Last By Comments
Visualization Tool For RDF Triple Store Apr '17 courterc 1
Sematic Web Thesis (Aug '08) Dec '16 star515 33
Anyone familiar with Compositional Semantics an... (Oct '16) Oct '16 dannybunce 1
How to integrate Open Government Data (Sep '16) Sep '16 Asadun 1
Error in creating owl ontology from rdf alignment (Aug '16) Aug '16 soheil08 1
How can i fix this SPARQL query? (May '16) May '16 deldev 1
How can I diplay simple text with line breaks v... (Apr '16) Apr '16 Brummelen 1
More from around the web