Skip to content
mrreynolds edited this page Apr 5, 2012 · 9 revisions

iQvoc supports importing SKOS vocabularies out of the box. You can choose between a rake-based CLI import and a web based import in the latest core version.

To use the CLI importer:

rake iqvoc:import:url URL=<filename> NAMESPACE='<URI>'

For example, to import the default sample data (list of hobbies; RDF/XML, Turtle), execute the following command from the repository's root directory:

rake iqvoc:import:url URL=data/hobbies.nt NAMESPACE='http://hobbies.com#'

(those sample files also serve as an example of the expected format and structure)

Important: Import data must be in N-Triples format. Use Tools like the Raptor to convert your data into N-Triples:

rapper -i <InputFormat> -o ntriples <YourFile>