1

http://stardog.com/docs/using/#export shows help for exporting a db into "ttl" file.
I wanted to export the database into some common formats like "rdf" or "owl".

How to export to OWL format or RDF format?

Ben Companjen
  • 1,417
  • 10
  • 24
Vishnudev K
  • 2,874
  • 3
  • 27
  • 42
  • OWL files are RDF files (and by RDF, you presumably mean RDF/XML). OWL is the name of an [ontology](http://en.wikipedia.org/wiki/Ontology_%28information_science%29) language, and is used to define classes and properties (amongst other things). Unless you *only* store ontologies in your database, exporting all data to an OWL file doesn't make sense, or should be done using a SPARQL `CONSTRUCT` query that only selects OWL concepts. – Ben Companjen Mar 22 '13 at 13:22

1 Answers1

4

The following command should do the job (export in RDF/XML, classical RDF):

$ stardog export -c myDatabase --format RDFXML myDatabase_output.rdf
loopasam
  • 3,027
  • 2
  • 21
  • 22
  • This has changed recently, it is now: `stardog data export --format RDFXML -u -p myDatabase_output.rdf` –  Oct 15 '15 at 23:14