Queries and Export Tab

From Protege Wiki
Revision as of 14:51, July 17, 2013 by JenniferVendetti (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Queries and Export Tab

by Daniel Schober, Tania Tudorache

This plug-in allows you to query knowledge-bases and export the results. An export button was added to the query-results window to allow for tabular export of selectable slot values of all found result-instances.

Versions & Compatibility

This section lists available versions of Queries and Export Tab.

No version information available.

If you click on the button below to add a new version of Queries and Export Tab, you will be asked to define a page title for the new version. Please adhere to the naming convention of Queries and Export Tab X.X.X when you define the new page!

Changelog

No version information available.



Querying the knowledge-base

Querying the knowledge-base is described in detail in the Protege Getting Started Guide.


Exporting query results to a tab delimited file

You can export the query results to a tab delimited file (the delimiter is configurable) by clicking on the E icon at the top of the search result list. The exported file will contain a row for each exported entity. The row will contain the values for the exported slots/properties separate by the slot delimiter.


QueriesTab.png


After clicking on the Export icon, you will get an export configuration dialog:


Export To CSV configuration.png


The configuration dialog allows you to configure:

  • Exported file: the file to export the results to
  • Slots to export: the slots/properties for which the values at the individuals will be exported. To add a new slot/property to export, click on the "Add slot" icon at the top of the "Slots to export" text area.
  • Slot delimiter: the delimiter between different slots/properties
  • Slot values delimiter: the delimiter between different values of a slot/property
  • Export slot names as first line in the file
  • Export instances types: add a column to the exported file with the type of the exported instance


To start the export, press the "OK" button of the Export Configuration Dialog. After the export, you will get a message dialog as to whether the export was successful or not. If the export was successful, a file was generated in the configured location. It can be opened either with a text editor, or spreadsheet software (e.g., Open Office Spreadsheet, or Microsoft Office Excel). The result in Open Office will look as follows (similar also in Excel):


ThesaurusSm exported.csv.png


This plug-in is distributed with the default Protege installation and is supported and maintained by the Protege team.


The original documentation for exporting still exists here (this documentation is outdated).