View Source

The RDF Import tool is used to import [RDF|http://en.wikipedia.org/wiki/Resource_Description_Framework] from a variety of formats like RDF/XML, NTriples and so on. That way you can import any existing knowledge base into KIM. The imported data will be immediately available for searching in the Structure or Patterns screens.

The tool is located in KIM tools folder {{*<KIM_HOME>/bin/tools{*}}} and requires a running instance of KIM.

Usage: {code}rdf import <folder> [<baseURI>]{code}

||Parameters||Description||
|folder| should point to a folder (may include subfolders) with \*.rdf; \*.rdfs; \*.owl, \*.nt, \*.n3 or \*.ttl files|
|baseURI| the base URI with which you import the files. If none is provided, the default namespace will be *<http :// www.ontotext.com/kim/2006/05/wkb# >*. The base URI rarely needs to be defined. It is required only if there are [URIs|Glossary#_Uniform Resource Identifier] s in the input files without a [namespace|Glossary#_Namespace]. As lack of namespaces is discouraged by the RDF standard, the output of most RDF editors and all of KIM tools will contain only fully qualified URIs.|

By default, the tool will import into KIM at {{localhost}}. To import data into a KIM Server, running on a remote machine, users need to create a configuration file named *kim_connection.properties* within the directory from which they are running the tool script. The file should contain at least two key-value pairs representing the KIM server host and port.

An example:

{code:title=kim_connection.properties|borderStyle=solid}
com.ontotext.kim.KIMConstants.RMI_HOST=192.168.1.200
com.ontotext.kim.KIMConstants.RMI_PORT=1199
{code}