RDF Import

<< Creating knowlegde bases and ontologies | User's guide | Exporting data >>

The RDF Import tool is used to import new entries described by OWL, RDFS or ntriples files. Given a folder (batchFolder) it walks through the directory tree and collects all files of type provided by the filesType parameter. Then it imports the contents of these files into the semantic repository. The tool requires a running instance of KIM!

Usage:

Usage : toolRdfImport.cmd (.sh) <batchFolder> [<baseURI>] [<filesType>]
         - batchFolder  - should point to a folder (may include subfolders)
                          with *.rdf; *.rdfs; *.owl; *.nt files
         - baseURI      - base URI to import the files with,
                          if none is provided then the default NS will be:
                          <http://www.ontotext.com/kim/2005/04/wkb#>
         - filesType    - either nt or rdfxml 

It is provided both for Linux (toolRdfImport.sh) and Windows (toolRdfImport.cmd) platforms. The script is located in KIM's tools folder <KIM_INSTALL_FOLDER>/bin/tools.

Parameters:

  • batchFolder: The tool walks through this folder and its subfolders in search for files of type, given by the <filesType> parameter (the default behaviour is to search for files of type rdf, rdfs or owl). This parameter is mandatory!
  • baseURI: The base URI to import the files with, if none is provided then the default NS will be: <http://www.ontotext.com/kim/2006/05/wkb#>
  • filesType : The possible choices are nt and rdfxml. nt tells the tool to search for .nt files containing ntriples definitions and rdfxml tells the tool to search for .rdf,.rdfs and .owl files containing ontology description. If not provided, the tool searches for .rdf,.rdfs and .owl files by default!
Note: In order to make it more convinient, if exactly 2 parameters are provided, there are two cases. If the second parameter is one of nt or rdfxml then it will be treated as <filesType> parameter, otherwise it will be treated as <baseURI> parameter!
Page last modified on July 18, 2008, at 03:56 PM