convert an owl file in a Jena TDB

565 views
Skip to first unread message

Guilherme Scomparim

unread,
Feb 2, 2011, 7:50:32 AM2/2/11
to TopBraid Suite Users
Hi All,

I am trying to convert an owl file in a Jena TDB using the Vanilla
TDB in TBC.

I already managed to create a new Jena TDB and import the owl files,
however I would like to save some models I have saved in .owl in a new
Jena TDB

Is that possible, or the import already does the work?

Many thanks
Guil

Irene Polikoff

unread,
Feb 2, 2011, 10:12:37 AM2/2/11
to topbrai...@googlegroups.com
Hi Guil,

Open your OWL file and do Export -> Export/Merge/Convert RDF Graphs, then
select .tdb as a target format.

Regards,

Irene

Hi All,

Many thanks
Guil

--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
topbrai...@googlegroups.com
To unsubscribe from this group, send email to
topbraid-user...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Scott Henninger

unread,
Feb 2, 2011, 10:30:05 AM2/2/11
to TopBraid Suite Users
Guilherme; To convert a file in an RDF/XML text serialization (.owl
files), open the file in Composer and use Export... Export/Merge/
Convert RDF Graphs. Choose the format you want to convert to,
including TDB and click finish. A .tdb connector is created along
with a folder that holds the memory-mapped files representing the
triples. (A useful tip is to invoke Export by clicking on the target
folder/project in the Navigator View so you know where the file is
saved.)

For "or the import already does the work? ", the answer is "yes".
The .tdb file can be used to import to any other model, and vice-
versa. I.e. if you have a .owl file and want to import the contents
of a TDB data store, then open the .owl file and drag/drop the .tdb
connector files into the .owl file's import tab. This creates the
owl:imports triple (in the .owl file) that imports the contents of the
TDB data store. The reverse is also possible - a TDB data store can
import a .ttl/.rdf/.owl file.

Some other things to know that may be useful:

- If you want to merge triples from multiple graphs into TDB or any
other RDF format, start by setting up a file with all graphs you want
to import. Then use Export/Merge... and choose the graphs you want to
merge at the bottom of the Export wizard.

- Note that the export supports named graphs in TDB (each .tdb
connector addresses a named graph).

- If the .owl file is too large to load into memory, you can use the
streaming importer. Place your .owl (or other text serialization) in
the Workspace (Navigator view). Create an empty TDB connector (or
reuse an existing one to merge data) and open it. Right-click the
file and choose Import... > Import Triples from this File into current
Model. The triples will be added to the open TDB model.

That should cove the question, and a bit more :)

-- Scott
Reply all
Reply to author
Forward
0 new messages