I have got two RDF documents:
I would like to merge them into one file, e.g., purl_foaf.rdf
. I am working in Java; how can I do this with Jena?
Jena has a built-in command line utility to do this: rdfcat. So, to join those two RDF files together and write the results as Turtle in the file purl_foaf.rdf
, do the following from your command line. It should be on one line, but I've split it up for readability:
rdfcat -out Turtle "http://dublincore.org/2012/06/14/dcterms.rdf" \
"http://xmlns.com/foaf/spec/index.rdf" > purl_foaf.rdf
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With