View Source

The RDF Import tool is used to import [RDF|] 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}

|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 :// >*. 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 ** 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: