<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Soprano: Soprano Development Tools</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.1 --> <script type="text/javascript"> function hasClass(ele,cls) { return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)')); } function addClass(ele,cls) { if (!this.hasClass(ele,cls)) ele.className += " "+cls; } function removeClass(ele,cls) { if (hasClass(ele,cls)) { var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)'); ele.className=ele.className.replace(reg,' '); } } function toggleVisibility(linkObj) { var base = linkObj.getAttribute('id'); var summary = document.getElementById(base + '-summary'); var content = document.getElementById(base + '-content'); var trigger = document.getElementById(base + '-trigger'); if ( hasClass(linkObj,'closed') ) { summary.style.display = 'none'; content.style.display = 'block'; trigger.src = 'open.png'; removeClass(linkObj,'closed'); addClass(linkObj,'opened'); } else if ( hasClass(linkObj,'opened') ) { summary.style.display = 'block'; content.style.display = 'none'; trigger.src = 'closed.png'; removeClass(linkObj,'opened'); addClass(linkObj,'closed'); } return false; } </script> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li class="current"><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="navpath"> <ul> <li><a class="el" href="index.html">Soprano (aka QRDF) - A modular RDF storage framework</a> </li> </ul> </div> </div> <div class="header"> <div class="headertitle"> <h1><a class="el" href="namespaceSoprano.html">Soprano</a> Development Tools </h1> </div> </div> <div class="contents"> <p>Soprano provides two small tools that can make the life of a developer easier.</p> <h2><a class="anchor" id="sopranocmd"></a> sopranocmd</h2> <p>sopranocmd is a simple command line client to access Soprano repositories or the <a class="el" href="namespaceSoprano_1_1Server.html">Soprano::Server</a>. sopranocmd's usage is rather simple. It provides a comprehensive help message which can be accessed via:</p> <div class="fragment"><pre class="fragment"> sopranocmd --help </pre></div><h2><a class="anchor" id="onto2vocabularyclass"></a> onto2vocabularyclass</h2> <p>onto2vocabularyclass is a small tool which creates C++ namespaces for ontologies such as <a class="el" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html">Soprano::Vocabulary::RDF</a> or <a class="el" href="namespaceSoprano_1_1Vocabulary_1_1NRL.html">Soprano::Vocabulary::NRL</a>. Usage is as follows:</p> <div class="fragment"><pre class="fragment"> onto2vocabularyclass --name <name> --encoding <encoding> [--namespace <ns>] [--export-module <module>|--no-visibility-export] <ontologyfile> </pre></div><p>The value of <code>--name</code> is use as the name of the generated namespace (the RDF in <a class="el" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html">Soprano::Vocabulary::RDF</a>).</p> <p>The optional value of <code>--namespace</code> is used as the surrounding namespace (the <a class="el" href="namespaceSoprano_1_1Vocabulary.html">Soprano::Vocabulary</a> in <a class="el" href="namespaceSoprano_1_1Vocabulary_1_1RDF.html">Soprano::Vocabulary::RDF</a>). If none is specified the global namespace is used.</p> <p>The value of <code>--encoding</code> specifies the encoding of the ontologyfile used for parsing.</p> <p>For historical reasons by default the Soprano visibility macro SOPRANO_EXPORT is used. This can be changed by specifying the visibility export module through <code>--export-module</code> or disabling visibility all together with <code>--no-visibility-export</code>. The latter is useful if the namespace is not part of a public API. When using the <code>--export-module</code> parameter the value is used to generate the macro (<module>_EXPORT) and to generate the include file (<module>_export.h) which has to exist and define the macro.</p> <p>See <a class="el" href="soprano_howto.html#cmake_magic">Some CMake Magic</a> for simple integration of onto2vocabularyclass in the build system. </p> </div> <hr class="footer"/><address class="footer"><small>Generated on Thu Oct 21 2010 for Soprano by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address> </body> </html>