Added: websites/staging/marmotta/trunk/content/kiwi/sparql-full-text.html ============================================================================== --- websites/staging/marmotta/trunk/content/kiwi/sparql-full-text.html (added) +++ websites/staging/marmotta/trunk/content/kiwi/sparql-full-text.html Fri Sep 11 13:12:11 2015 @@ -0,0 +1,418 @@ +<!DOCTYPE html> +<!-- + | Generated by Apache Maven Doxia at 2015-09-11 + | Rendered using Apache Maven Fluido Skin 1.3.0 +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <link rel="schema.dcterms" href="http://purl.org/dc/terms/" /> + <meta name="dcterms.modified" content="2015-09-11" /> + <title>Apache Marmotta - SPARQL Full-Text Extension</title> + <meta name="description" content="Apache Marmotta - An Open Platform for Linked Data - SPARQL Full-Text Extension" /> + <meta name="keywords" content="Apache Marmotta, Linked Data, LDP, LDC, SPARQL, SPARQL, Full-Text, Extension" /> + <link rel="stylesheet" href="../css/apache-maven-fluido-1.3.0.min.css" /> + <link rel="stylesheet" href="../css/site.css" /> + <link rel="stylesheet" href="../css/print.css" media="print" /> + <link rel="stylesheet" href="../css/prettify.css" /> + <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,600" /> + + + + +<link rel="icon" type="image/png" href="/images/favicon_32.png"/> + + +<link title="doap" rel="meta" type="application/rdf+xml" href="/doap.rdf"/> + + +<script src="http://code.jquery.com/jquery-1.9.1.min.js" type="text/javascript"></script> + + <!-- awaiting for https://jira.codehaus.org/browse/DOXIA-472 --><meta name="keywords" content="KiWi, Triple Store, Quadrupel Store, KiWi Triple Store, RDF, Sesame API, Sail, Database, relational Database, RDB, SPARQL, PostgreSQL, MySQL, H2, Full-Text" /> <!-- Google Analytics --> + <script type="text/javascript"> + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-38225305-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + </script> + </head> + <body class="topBarEnabled"> + + + + + + <div id="topbar" class="navbar navbar-fixed-top "> + <div class="navbar-inner"> + <div class="container"><div class="nav-collapse"> + + + <a class="brand" href="../" title="Apache Marmotta"> + + + <img src="../images/Marmotta_Head.png" alt="Apache Marmotta" /> + + </a> + + <ul class="nav"> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache Marmotta <b class="caret"></b></a> + <ul class="dropdown-menu"> + + <li> <a href="../index.html" title="Home">Home</a> +</li> + + <li> <a href="../start.html" title="Getting Started">Getting Started</a> +</li> + + <li> <a href="../development.html" title="Development">Development</a> +</li> + + <li> <a href="../download.html" title="Download">Download</a> +</li> + + <li> <a href="../installation.html" title="Installation">Installation</a> +</li> + + <li> <a href="../configuration.html" title="Configuration">Configuration</a> +</li> + + <li> <a href="../team-list.html" title="Team">Team</a> +</li> + + <li> <a href="../mail-lists.html" title="Mailing Lists">Mailing Lists</a> +</li> + + <li> <a href="http://wiki.apache.org/marmotta" title="Wiki">Wiki</a> +</li> + + <li> <a href="http://issues.apache.org/jira/browse/MARMOTTA" title="Issue Tracker">Issue Tracker</a> +</li> + + <li class="dropdown-submenu"> + <a href="../events" title="Events">Events</a> + <ul class="dropdown-menu"> + <li> <a href="../events/iswc2014.html" title="ISWC2014 Tutorial">ISWC2014 Tutorial</a> +</li> + </ul> + </li> + + <li> <a href="../acknowledgements.html" title="Acknowledgements">Acknowledgements</a> +</li> + + <li> <a href="../license.html" title="License">License</a> +</li> + + <li> <a href="../privacy.html" title="Privacy">Privacy</a> +</li> + </ul> + </li> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">Platform <b class="caret"></b></a> + <ul class="dropdown-menu"> + + <li> <a href="../platform/index.html" title="Introduction">Introduction</a> +</li> + + <li> <a href="../platform/core-module.html" title="Core Module">Core Module</a> +</li> + + <li> <a href="../platform/sparql-module.html" title="SPARQL Module">SPARQL Module</a> +</li> + + <li> <a href="../platform/ldp-module.html" title="LDP Module">LDP Module</a> +</li> + + <li> <a href="../platform/backends.html" title="Backends">Backends</a> +</li> + + <li> <a href="../platform/ldcache-module.html" title="LDCache Module">LDCache Module</a> +</li> + + <li> <a href="../platform/ldpath-module.html" title="LDPath Module">LDPath Module</a> +</li> + + <li> <a href="../platform/reasoner-module.html" title="Reasoner Module">Reasoner Module</a> +</li> + + <li> <a href="../platform/security-module.html" title="Security Module">Security Module</a> +</li> + + <li> <a href="../platform/user-module.html" title="User Module">User Module</a> +</li> + + <li> <a href="../platform/versioning-module.html" title="Versioning Module">Versioning Module</a> +</li> + + <li> <a href="../platform/cloud.html" title="Cloud Setup">Cloud Setup</a> +</li> + </ul> + </li> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">Libraries <b class="caret"></b></a> + <ul class="dropdown-menu"> + + <li> <a href="../client-library.html" title="Client Library">Client Library</a> +</li> + + <li class="dropdown-submenu"> + <a href="../kiwi" title="KiWi Triple Store">KiWi Triple Store</a> + <ul class="dropdown-menu"> + <li> <a href="../kiwi/index.html" title="Introduction">Introduction</a> +</li> + <li> <a href="../kiwi/triplestore.html" title="Store">Store</a> +</li> + <li> <a href="../kiwi/sparql.html" title="SPARQL">SPARQL</a> +</li> + <li> <a href="../kiwi/sparql-extensions.html" title="SPARQL Extensions">SPARQL Extensions</a> +</li> + <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> +</li> + <li> <a href="../kiwi/tripletable.html" title="Triple Table">Triple Table</a> +</li> + <li> <a href="../kiwi/reasoner.html" title="Reasoner">Reasoner</a> +</li> + <li> <a href="../kiwi/versioning.html" title="Versioning">Versioning</a> +</li> + <li> <a href="../kiwi/loader.html" title="KiWi Loader">KiWi Loader</a> +</li> + <li> <a href="../kiwi/contextaware.html" title="Context Aware">Context Aware</a> +</li> + </ul> + </li> + + <li class="dropdown-submenu"> + <a href="../ldclient" title="LDClient">LDClient</a> + <ul class="dropdown-menu"> + <li> <a href="../ldclient/index.html" title="Introduction">Introduction</a> +</li> + <li> <a href="../ldclient/usage.html" title="Usage">Usage</a> +</li> + <li> <a href="../ldclient/modules.html" title="Modules">Modules</a> +</li> + <li> <a href="../ldclient/dataproviders.html" title="Data Providers">Data Providers</a> +</li> + </ul> + </li> + + <li class="dropdown-submenu"> + <a href="../ldcache" title="LDCache">LDCache</a> + <ul class="dropdown-menu"> + <li> <a href="../ldcache/index.html" title="Introduction">Introduction</a> +</li> + <li> <a href="../ldcache/usage.html" title="Usage">Usage</a> +</li> + <li> <a href="../ldcache/backends.html" title="Backends">Backends</a> +</li> + <li> <a href="../ldcache/wrappers.html" title="Wrappers">Wrappers</a> +</li> + </ul> + </li> + + <li class="dropdown-submenu"> + <a href="../ldpath" title="LDPath">LDPath</a> + <ul class="dropdown-menu"> + <li> <a href="../ldpath/index.html" title="Introduction">Introduction</a> +</li> + <li> <a href="../ldpath/language.html" title="Language">Language</a> +</li> + <li> <a href="../ldpath/usage.html" title="Usage">Usage</a> +</li> + <li> <a href="../ldpath/backends.html" title="Backends">Backends</a> +</li> + <li> <a href="../ldpath/functions.html" title="Functions">Functions</a> +</li> + <li> <a href="../ldpath/template.html" title="Template">Template</a> +</li> + </ul> + </li> + + <li> <a href="../sesame.html" title="Sesame Tools">Sesame Tools</a> +</li> + </ul> + </li> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">Project <b class="caret"></b></a> + <ul class="dropdown-menu"> + + <li class="dropdown-submenu"> + <a href="../project-info.html" title="Project Information">Project Information</a> + <ul class="dropdown-menu"> + <li> <a href="../index.html" title="About">About</a> +</li> + <li> <a href="../plugin-management.html" title="Plugin Management">Plugin Management</a> +</li> + <li> <a href="../distribution-management.html" title="Distribution Management">Distribution Management</a> +</li> + <li> <a href="../dependency-info.html" title="Dependency Information">Dependency Information</a> +</li> + <li> <a href="../source-repository.html" title="Source Repository">Source Repository</a> +</li> + <li> <a href="../mail-lists.html" title="Mailing Lists">Mailing Lists</a> +</li> + <li> <a href="../issue-tracking.html" title="Issue Tracking">Issue Tracking</a> +</li> + <li> <a href="../integration.html" title="Continuous Integration">Continuous Integration</a> +</li> + <li> <a href="../plugins.html" title="Project Plugins">Project Plugins</a> +</li> + <li> <a href="../license.html" title="Project License">Project License</a> +</li> + <li> <a href="../dependency-management.html" title="Dependency Management">Dependency Management</a> +</li> + <li> <a href="../team-list.html" title="Project Team">Project Team</a> +</li> + <li> <a href="../project-summary.html" title="Project Summary">Project Summary</a> +</li> + <li> <a href="../dependencies.html" title="Dependencies">Dependencies</a> +</li> + </ul> + </li> + + <li class="dropdown-submenu"> + <a href="../project-reports.html" title="Project Reports">Project Reports</a> + <ul class="dropdown-menu"> + <li> <a href="../apidocs/index.html" title="JavaDocs">JavaDocs</a> +</li> + </ul> + </li> + </ul> + </li> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">The ASF <b class="caret"></b></a> + <ul class="dropdown-menu"> + + <li> <a href="http://www.apache.org" title="The Apache Software Foundation">The Apache Software Foundation</a> +</li> + + <li> <a href="http://www.apache.org/foundation/how-it-works.html" title="How Apache Works">How Apache Works</a> +</li> + + <li> <a href="http://www.apache.org/security/" title="Security">Security</a> +</li> + + <li> <a href="http://www.apache.org/foundation/sponsorship.html" title="Become a Sponsor">Become a Sponsor</a> +</li> + + <li> <a href="http://www.apache.org/foundation/thanks.html" title="Thanks">Thanks</a> +</li> + </ul> + </li> + </ul> + + + + + </div> + + </div> + </div> + </div> + + <div class="container"> + <div id="banner"> + <div class="pull-left"> + <div id="bannerLeft"> + <h2>Apache Marmotta Site</h2> + </div> + </div> + <div class="pull-right"> <div id="bannerRight"> + <img src="../images/Marmotta_Logo_250x102.png" alt="Apache Marmotta"/> + </div> + </div> + <div class="clear"><hr/></div> + </div> + + <div id="breadcrumbs"> + <ul class="breadcrumb"> + + + <li id="publishDate">Last Published: 2015-09-11</li> + <li class="divider">|</li> <li id="projectVersion">Version: 3.3.0</li> + + + + + </ul> + </div> + + + + <div id="bodyColumn" > + + <p></p> +<h1>SPARQL Full-Text Extension</h1> +<p>Full-text search works over the literal values of nodes and differs from normal literal queries or regexp filters in that it applies language-specific lingustic processing (e.g. stemming and stop-word elimination).</p> +<p>Full-text search currently offers two <a href="sparql.html">SPARQL</a> functions that can be used in the <tt>FILTER</tt> part of a query and return boolean values (found or not found):</p> + +<ul> + +<li><tt>fulltext-search(text, query, [language])</tt>: searches “text” for the words occurring in “query”, optionally applying the language-specific processing for the given language; query is a simple text literal (list of words) without any boolean connectors; words are AND connected, i.e. all words have to be found in the text for a successful match</li> + +<li><tt>fulltext-query(text, query, [language])</tt>: searches “text” using the boolean query string passed in “query”, optionally applying language-specific processing for the given language; query is a boolean query string following the <a class="externalLink" href="http://www.postgresql.org/docs/9.3/static/textsearch-controls.html#TEXTSEARCH-PARSING-QUERIES">syntax used by PostgreSQL</a>.</li> +</ul> +<p>Note that full-text search is only available when using backend databases that support this functionality (currently only PostgreSQL and MySQL). Only PostgreSQL has real support for language specific processing. Also note that performance heavily depends on the availability of an appropriate full-text index in the database. The KiWi SPARQL module will automatically create full-text indexes for the languages configured in the KiWiConfiguration used for creating the triple store.</p> +<p>The KiWi SPARQL module comes with its own these extensions:</p> + +<div class="source"> +<pre>PREFIX mm: <http://marmotta.apache.org/vocabulary/sparql-functions#> +</pre></div> +<p>The following example searches for the word “software” occurring in the dc:description field of the resource using the literal language of dc:description:</p> + +<div class="source"> +<pre>PREFIX foaf: <http://xmlns.com/foaf/0.1/> +PREFIX dc: <http://purl.org/dc/elements/1.1/> +PREFIX mm: <http://marmotta.apache.org/vocabulary/sparql-functions#> + +SELECT ?p1 ?fn ?age WHERE { + ?p1 foaf:name ?fn . + ?p1 foaf:age ?age . + ?p1 dc:description ?desc . + FILTER( mm:fulltext-search(str(?desc), "software", lang(?desc)) ) +} +</pre></div> + </div> + </div> + + <hr/> + + <footer> + <div class="container"> + + <p id="poweredBy" class="pull-right"> + <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"> + <img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /> + </a> + </p> + + <p> + Copyright © 2012-2015 + <a href="http://www.apache.org">The Apache Software Foundation</a>. + All Rights Reserved. + + </p> + + +<p>Licensed under the Apache License, Version 2.0.</p> + +<p>Apache, Marmotta, the Apache feather and Marmotta logos are trademarks + of The Apache Software Foundation.</p> + + </div> + </footer> + + <script type="text/javascript" src="../js/prettify.js"></script> + <script type="text/javascript" src="../js/marmotta.js"></script> + <script type="text/javascript" src="../js/apache-maven-fluido-1.3.0.min.js"></script> + + </body> + +</html>
Added: websites/staging/marmotta/trunk/content/kiwi/sparql-mm.html ============================================================================== --- websites/staging/marmotta/trunk/content/kiwi/sparql-mm.html (added) +++ websites/staging/marmotta/trunk/content/kiwi/sparql-mm.html Fri Sep 11 13:12:11 2015 @@ -0,0 +1,470 @@ +<!DOCTYPE html> +<!-- + | Generated by Apache Maven Doxia at 2015-09-11 + | Rendered using Apache Maven Fluido Skin 1.3.0 +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <link rel="schema.dcterms" href="http://purl.org/dc/terms/" /> + <meta name="dcterms.modified" content="2015-09-11" /> + <title>Apache Marmotta - SPARQL-MM: Extending SPARQL to Multimedia</title> + <meta name="description" content="Apache Marmotta - An Open Platform for Linked Data - SPARQL-MM: Extending SPARQL to Multimedia" /> + <meta name="keywords" content="Apache Marmotta, Linked Data, LDP, LDC, SPARQL, SPARQL-MM:, Extending, SPARQL, to, Multimedia" /> + <link rel="stylesheet" href="../css/apache-maven-fluido-1.3.0.min.css" /> + <link rel="stylesheet" href="../css/site.css" /> + <link rel="stylesheet" href="../css/print.css" media="print" /> + <link rel="stylesheet" href="../css/prettify.css" /> + <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,600" /> + + + + +<link rel="icon" type="image/png" href="/images/favicon_32.png"/> + + +<link title="doap" rel="meta" type="application/rdf+xml" href="/doap.rdf"/> + + +<script src="http://code.jquery.com/jquery-1.9.1.min.js" type="text/javascript"></script> + + <!-- awaiting for https://jira.codehaus.org/browse/DOXIA-472 --><meta name="keywords" content="KiWi, Triple Store, Quadrupel Store, KiWi Triple Store, RDF, Sesame API, Sail, Database, relational Database, RDB, SPARQL, PostgreSQL, MySQL, H2, multimedia" /> <!-- Google Analytics --> + <script type="text/javascript"> + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-38225305-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + </script> + </head> + <body class="topBarEnabled"> + + + + + + <div id="topbar" class="navbar navbar-fixed-top "> + <div class="navbar-inner"> + <div class="container"><div class="nav-collapse"> + + + <a class="brand" href="../" title="Apache Marmotta"> + + + <img src="../images/Marmotta_Head.png" alt="Apache Marmotta" /> + + </a> + + <ul class="nav"> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache Marmotta <b class="caret"></b></a> + <ul class="dropdown-menu"> + + <li> <a href="../index.html" title="Home">Home</a> +</li> + + <li> <a href="../start.html" title="Getting Started">Getting Started</a> +</li> + + <li> <a href="../development.html" title="Development">Development</a> +</li> + + <li> <a href="../download.html" title="Download">Download</a> +</li> + + <li> <a href="../installation.html" title="Installation">Installation</a> +</li> + + <li> <a href="../configuration.html" title="Configuration">Configuration</a> +</li> + + <li> <a href="../team-list.html" title="Team">Team</a> +</li> + + <li> <a href="../mail-lists.html" title="Mailing Lists">Mailing Lists</a> +</li> + + <li> <a href="http://wiki.apache.org/marmotta" title="Wiki">Wiki</a> +</li> + + <li> <a href="http://issues.apache.org/jira/browse/MARMOTTA" title="Issue Tracker">Issue Tracker</a> +</li> + + <li class="dropdown-submenu"> + <a href="../events" title="Events">Events</a> + <ul class="dropdown-menu"> + <li> <a href="../events/iswc2014.html" title="ISWC2014 Tutorial">ISWC2014 Tutorial</a> +</li> + </ul> + </li> + + <li> <a href="../acknowledgements.html" title="Acknowledgements">Acknowledgements</a> +</li> + + <li> <a href="../license.html" title="License">License</a> +</li> + + <li> <a href="../privacy.html" title="Privacy">Privacy</a> +</li> + </ul> + </li> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">Platform <b class="caret"></b></a> + <ul class="dropdown-menu"> + + <li> <a href="../platform/index.html" title="Introduction">Introduction</a> +</li> + + <li> <a href="../platform/core-module.html" title="Core Module">Core Module</a> +</li> + + <li> <a href="../platform/sparql-module.html" title="SPARQL Module">SPARQL Module</a> +</li> + + <li> <a href="../platform/ldp-module.html" title="LDP Module">LDP Module</a> +</li> + + <li> <a href="../platform/backends.html" title="Backends">Backends</a> +</li> + + <li> <a href="../platform/ldcache-module.html" title="LDCache Module">LDCache Module</a> +</li> + + <li> <a href="../platform/ldpath-module.html" title="LDPath Module">LDPath Module</a> +</li> + + <li> <a href="../platform/reasoner-module.html" title="Reasoner Module">Reasoner Module</a> +</li> + + <li> <a href="../platform/security-module.html" title="Security Module">Security Module</a> +</li> + + <li> <a href="../platform/user-module.html" title="User Module">User Module</a> +</li> + + <li> <a href="../platform/versioning-module.html" title="Versioning Module">Versioning Module</a> +</li> + + <li> <a href="../platform/cloud.html" title="Cloud Setup">Cloud Setup</a> +</li> + </ul> + </li> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">Libraries <b class="caret"></b></a> + <ul class="dropdown-menu"> + + <li> <a href="../client-library.html" title="Client Library">Client Library</a> +</li> + + <li class="dropdown-submenu"> + <a href="../kiwi" title="KiWi Triple Store">KiWi Triple Store</a> + <ul class="dropdown-menu"> + <li> <a href="../kiwi/index.html" title="Introduction">Introduction</a> +</li> + <li> <a href="../kiwi/triplestore.html" title="Store">Store</a> +</li> + <li> <a href="../kiwi/sparql.html" title="SPARQL">SPARQL</a> +</li> + <li> <a href="../kiwi/sparql-extensions.html" title="SPARQL Extensions">SPARQL Extensions</a> +</li> + <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> +</li> + <li> <a href="../kiwi/tripletable.html" title="Triple Table">Triple Table</a> +</li> + <li> <a href="../kiwi/reasoner.html" title="Reasoner">Reasoner</a> +</li> + <li> <a href="../kiwi/versioning.html" title="Versioning">Versioning</a> +</li> + <li> <a href="../kiwi/loader.html" title="KiWi Loader">KiWi Loader</a> +</li> + <li> <a href="../kiwi/contextaware.html" title="Context Aware">Context Aware</a> +</li> + </ul> + </li> + + <li class="dropdown-submenu"> + <a href="../ldclient" title="LDClient">LDClient</a> + <ul class="dropdown-menu"> + <li> <a href="../ldclient/index.html" title="Introduction">Introduction</a> +</li> + <li> <a href="../ldclient/usage.html" title="Usage">Usage</a> +</li> + <li> <a href="../ldclient/modules.html" title="Modules">Modules</a> +</li> + <li> <a href="../ldclient/dataproviders.html" title="Data Providers">Data Providers</a> +</li> + </ul> + </li> + + <li class="dropdown-submenu"> + <a href="../ldcache" title="LDCache">LDCache</a> + <ul class="dropdown-menu"> + <li> <a href="../ldcache/index.html" title="Introduction">Introduction</a> +</li> + <li> <a href="../ldcache/usage.html" title="Usage">Usage</a> +</li> + <li> <a href="../ldcache/backends.html" title="Backends">Backends</a> +</li> + <li> <a href="../ldcache/wrappers.html" title="Wrappers">Wrappers</a> +</li> + </ul> + </li> + + <li class="dropdown-submenu"> + <a href="../ldpath" title="LDPath">LDPath</a> + <ul class="dropdown-menu"> + <li> <a href="../ldpath/index.html" title="Introduction">Introduction</a> +</li> + <li> <a href="../ldpath/language.html" title="Language">Language</a> +</li> + <li> <a href="../ldpath/usage.html" title="Usage">Usage</a> +</li> + <li> <a href="../ldpath/backends.html" title="Backends">Backends</a> +</li> + <li> <a href="../ldpath/functions.html" title="Functions">Functions</a> +</li> + <li> <a href="../ldpath/template.html" title="Template">Template</a> +</li> + </ul> + </li> + + <li> <a href="../sesame.html" title="Sesame Tools">Sesame Tools</a> +</li> + </ul> + </li> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">Project <b class="caret"></b></a> + <ul class="dropdown-menu"> + + <li class="dropdown-submenu"> + <a href="../project-info.html" title="Project Information">Project Information</a> + <ul class="dropdown-menu"> + <li> <a href="../index.html" title="About">About</a> +</li> + <li> <a href="../plugin-management.html" title="Plugin Management">Plugin Management</a> +</li> + <li> <a href="../distribution-management.html" title="Distribution Management">Distribution Management</a> +</li> + <li> <a href="../dependency-info.html" title="Dependency Information">Dependency Information</a> +</li> + <li> <a href="../source-repository.html" title="Source Repository">Source Repository</a> +</li> + <li> <a href="../mail-lists.html" title="Mailing Lists">Mailing Lists</a> +</li> + <li> <a href="../issue-tracking.html" title="Issue Tracking">Issue Tracking</a> +</li> + <li> <a href="../integration.html" title="Continuous Integration">Continuous Integration</a> +</li> + <li> <a href="../plugins.html" title="Project Plugins">Project Plugins</a> +</li> + <li> <a href="../license.html" title="Project License">Project License</a> +</li> + <li> <a href="../dependency-management.html" title="Dependency Management">Dependency Management</a> +</li> + <li> <a href="../team-list.html" title="Project Team">Project Team</a> +</li> + <li> <a href="../project-summary.html" title="Project Summary">Project Summary</a> +</li> + <li> <a href="../dependencies.html" title="Dependencies">Dependencies</a> +</li> + </ul> + </li> + + <li class="dropdown-submenu"> + <a href="../project-reports.html" title="Project Reports">Project Reports</a> + <ul class="dropdown-menu"> + <li> <a href="../apidocs/index.html" title="JavaDocs">JavaDocs</a> +</li> + </ul> + </li> + </ul> + </li> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">The ASF <b class="caret"></b></a> + <ul class="dropdown-menu"> + + <li> <a href="http://www.apache.org" title="The Apache Software Foundation">The Apache Software Foundation</a> +</li> + + <li> <a href="http://www.apache.org/foundation/how-it-works.html" title="How Apache Works">How Apache Works</a> +</li> + + <li> <a href="http://www.apache.org/security/" title="Security">Security</a> +</li> + + <li> <a href="http://www.apache.org/foundation/sponsorship.html" title="Become a Sponsor">Become a Sponsor</a> +</li> + + <li> <a href="http://www.apache.org/foundation/thanks.html" title="Thanks">Thanks</a> +</li> + </ul> + </li> + </ul> + + + + + </div> + + </div> + </div> + </div> + + <div class="container"> + <div id="banner"> + <div class="pull-left"> + <div id="bannerLeft"> + <h2>Apache Marmotta Site</h2> + </div> + </div> + <div class="pull-right"> <div id="bannerRight"> + <img src="../images/Marmotta_Logo_250x102.png" alt="Apache Marmotta"/> + </div> + </div> + <div class="clear"><hr/></div> + </div> + + <div id="breadcrumbs"> + <ul class="breadcrumb"> + + + <li id="publishDate">Last Published: 2015-09-11</li> + <li class="divider">|</li> <li id="projectVersion">Version: 3.3.0</li> + + + + + </ul> + </div> + + + + <div id="bodyColumn" > + + <p></p> +<p><a class="externalLink" href="https://github.com/tkurz/sparql-mm">SPARQL-MM</a> is a multimedia-extension for <a href="sparql.html">SPARQL 1.1</a> implemented for <a class="externalLink" href="http://www.openrdf.org/">Sesame</a>. By now it supports relation, aggregation and accessor functions for Media Fragments <a class="externalLink" href="http://www.w3.org/TR/media-frags/">URI 1.0</a> - and features are constantly extended. It is still an unofficial extension for Apache Marmotta, currently developed <a class="externalLink" href="https://github.com/tkurz/sparql-mm">at GitHub</a>.</p> +<p>SPARQL-MM can easily appended to any Sesame Triplestore via Java Class Loader Technology. The package is available on <a class="externalLink" href="http://search.maven.org/#artifactdetails%7Ccom.github.tkurz%7Csparql-mm%7C1.0%7Cjar">Maven Central</a>.</p> + +<div class="source"> +<pre><dependency> + <groupId>com.github.tkurz</groupId> + <artifactId>sparql-mm</artifactId> + <version>1.0</version> +</dependency> +</pre></div> +<p>Here we just show a few functions that are supported. Get more examples within the <a class="externalLink" href="https://github.com/tkurz/sparql-mm/blob/master/src/test/java/com/github/tkurz/sparqlmm">tests</a>. All list of all supported functions can be found <a class="externalLink" href="https://github.com/tkurz/sparql-mm/blob/master/ns/1.0.0/function/index.md">here</a>.</p> +<div class="section"> +<h2>Temporal Relations<a name="Temporal_Relations"></a></h2> + +<div class="source"> +<pre>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> +PREFIX mm: <http://linkedmultimedia.org/sparql-mm/ns/1.0.0/function#> + +SELECT ?t1 ?t2 WHERE { + ?f1 rdfs:label ?t1. + ?f2 rdfs:label ?t2. + FILTER mm:precedes(?f1,?f2) +} ORDER BY ?t1 ?t2 +</pre></div></div> +<div class="section"> +<h2>Temporal Aggregation<a name="Temporal_Aggregation"></a></h2> + +<div class="source"> +<pre>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> +PREFIX mm: <http://linkedmultimedia.org/sparql-mm/ns/1.0.0/function#> + +SELECT ?f1 ?f2 (mm:temporalIntermediate(?f1,?f2) AS ?box) WHERE { + ?f1 rdfs:label "a". + ?f2 rdfs:label "b". +} +</pre></div></div> +<div class="section"> +<h2>Spatial Relations<a name="Spatial_Relations"></a></h2> + +<div class="source"> +<pre>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> +PREFIX mm: <http://linkedmultimedia.org/sparql-mm/ns/1.0.0/function#> + +SELECT ?t1 ?t2 WHERE { + ?f1 rdfs:label ?t1. + ?f2 rdfs:label ?t2. + FILTER mm:rightBeside(?f1,?f2) +} ORDER BY ?t1 ?t2 +</pre></div></div> +<div class="section"> +<h2>Spatial Aggregation<a name="Spatial_Aggregation"></a></h2> + +<div class="source"> +<pre>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> +PREFIX mm: <http://linkedmultimedia.org/sparql-mm/ns/1.0.0/function#> + +SELECT ?f1 ?f2 (mm:spatialIntersection(?f1,?f2) AS ?box) WHERE { + ?f1 rdfs:label "a". + ?f2 rdfs:label "b". +} +</pre></div></div> +<div class="section"> +<h2>Combined Aggregation<a name="Combined_Aggregation"></a></h2> + +<div class="source"> +<pre>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> +PREFIX mm: <http://linkedmultimedia.org/sparql-mm/ns/1.0.0/function#> + +SELECT ?f1 ?f2 (mm:boundingBox(?f1,?f2) AS ?box) WHERE { + ?f1 rdfs:label "a". + ?f2 rdfs:label "b". +} +</pre></div> + +<div class="source"> +<pre>PREFIX ma: <http://www.w3.org/ns/ma-ont#> +PREFIX mm: <http://linkedmultimedia.org/sparql-mm/ns/1.0.0/function#> + +SELECT ?f1 WHERE { + ?f1 a ma:MediaFragment. +} ORDER BY mm:duration(?f1) +</pre></div></div> + </div> + </div> + + <hr/> + + <footer> + <div class="container"> + + <p id="poweredBy" class="pull-right"> + <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"> + <img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /> + </a> + </p> + + <p> + Copyright © 2012-2015 + <a href="http://www.apache.org">The Apache Software Foundation</a>. + All Rights Reserved. + + </p> + + +<p>Licensed under the Apache License, Version 2.0.</p> + +<p>Apache, Marmotta, the Apache feather and Marmotta logos are trademarks + of The Apache Software Foundation.</p> + + </div> + </footer> + + <script type="text/javascript" src="../js/prettify.js"></script> + <script type="text/javascript" src="../js/marmotta.js"></script> + <script type="text/javascript" src="../js/apache-maven-fluido-1.3.0.min.js"></script> + + </body> + +</html> Added: websites/staging/marmotta/trunk/content/kiwi/sparql-statistics.html ============================================================================== --- websites/staging/marmotta/trunk/content/kiwi/sparql-statistics.html (added) +++ websites/staging/marmotta/trunk/content/kiwi/sparql-statistics.html Fri Sep 11 13:12:11 2015 @@ -0,0 +1,397 @@ +<!DOCTYPE html> +<!-- + | Generated by Apache Maven Doxia at 2015-09-11 + | Rendered using Apache Maven Fluido Skin 1.3.0 +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <link rel="schema.dcterms" href="http://purl.org/dc/terms/" /> + <meta name="dcterms.modified" content="2015-09-11" /> + <title>Apache Marmotta - Statistical Aggregation Extension</title> + <meta name="description" content="Apache Marmotta - An Open Platform for Linked Data - Statistical Aggregation Extension" /> + <meta name="keywords" content="Apache Marmotta, Linked Data, LDP, LDC, SPARQL, Statistical, Aggregation, Extension" /> + <link rel="stylesheet" href="../css/apache-maven-fluido-1.3.0.min.css" /> + <link rel="stylesheet" href="../css/site.css" /> + <link rel="stylesheet" href="../css/print.css" media="print" /> + <link rel="stylesheet" href="../css/prettify.css" /> + <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,600" /> + + + + +<link rel="icon" type="image/png" href="/images/favicon_32.png"/> + + +<link title="doap" rel="meta" type="application/rdf+xml" href="/doap.rdf"/> + + +<script src="http://code.jquery.com/jquery-1.9.1.min.js" type="text/javascript"></script> + + <!-- awaiting for https://jira.codehaus.org/browse/DOXIA-472 --><meta name="keywords" content="KiWi, Triple Store, Quadrupel Store, KiWi Triple Store, RDF, Sesame API, Sail, Database, relational Database, RDB, SPARQL, PostgreSQL, MySQL, H2, stadistical, aggregation" /> <!-- Google Analytics --> + <script type="text/javascript"> + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-38225305-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + </script> + </head> + <body class="topBarEnabled"> + + + + + + <div id="topbar" class="navbar navbar-fixed-top "> + <div class="navbar-inner"> + <div class="container"><div class="nav-collapse"> + + + <a class="brand" href="../" title="Apache Marmotta"> + + + <img src="../images/Marmotta_Head.png" alt="Apache Marmotta" /> + + </a> + + <ul class="nav"> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache Marmotta <b class="caret"></b></a> + <ul class="dropdown-menu"> + + <li> <a href="../index.html" title="Home">Home</a> +</li> + + <li> <a href="../start.html" title="Getting Started">Getting Started</a> +</li> + + <li> <a href="../development.html" title="Development">Development</a> +</li> + + <li> <a href="../download.html" title="Download">Download</a> +</li> + + <li> <a href="../installation.html" title="Installation">Installation</a> +</li> + + <li> <a href="../configuration.html" title="Configuration">Configuration</a> +</li> + + <li> <a href="../team-list.html" title="Team">Team</a> +</li> + + <li> <a href="../mail-lists.html" title="Mailing Lists">Mailing Lists</a> +</li> + + <li> <a href="http://wiki.apache.org/marmotta" title="Wiki">Wiki</a> +</li> + + <li> <a href="http://issues.apache.org/jira/browse/MARMOTTA" title="Issue Tracker">Issue Tracker</a> +</li> + + <li class="dropdown-submenu"> + <a href="../events" title="Events">Events</a> + <ul class="dropdown-menu"> + <li> <a href="../events/iswc2014.html" title="ISWC2014 Tutorial">ISWC2014 Tutorial</a> +</li> + </ul> + </li> + + <li> <a href="../acknowledgements.html" title="Acknowledgements">Acknowledgements</a> +</li> + + <li> <a href="../license.html" title="License">License</a> +</li> + + <li> <a href="../privacy.html" title="Privacy">Privacy</a> +</li> + </ul> + </li> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">Platform <b class="caret"></b></a> + <ul class="dropdown-menu"> + + <li> <a href="../platform/index.html" title="Introduction">Introduction</a> +</li> + + <li> <a href="../platform/core-module.html" title="Core Module">Core Module</a> +</li> + + <li> <a href="../platform/sparql-module.html" title="SPARQL Module">SPARQL Module</a> +</li> + + <li> <a href="../platform/ldp-module.html" title="LDP Module">LDP Module</a> +</li> + + <li> <a href="../platform/backends.html" title="Backends">Backends</a> +</li> + + <li> <a href="../platform/ldcache-module.html" title="LDCache Module">LDCache Module</a> +</li> + + <li> <a href="../platform/ldpath-module.html" title="LDPath Module">LDPath Module</a> +</li> + + <li> <a href="../platform/reasoner-module.html" title="Reasoner Module">Reasoner Module</a> +</li> + + <li> <a href="../platform/security-module.html" title="Security Module">Security Module</a> +</li> + + <li> <a href="../platform/user-module.html" title="User Module">User Module</a> +</li> + + <li> <a href="../platform/versioning-module.html" title="Versioning Module">Versioning Module</a> +</li> + + <li> <a href="../platform/cloud.html" title="Cloud Setup">Cloud Setup</a> +</li> + </ul> + </li> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">Libraries <b class="caret"></b></a> + <ul class="dropdown-menu"> + + <li> <a href="../client-library.html" title="Client Library">Client Library</a> +</li> + + <li class="dropdown-submenu"> + <a href="../kiwi" title="KiWi Triple Store">KiWi Triple Store</a> + <ul class="dropdown-menu"> + <li> <a href="../kiwi/index.html" title="Introduction">Introduction</a> +</li> + <li> <a href="../kiwi/triplestore.html" title="Store">Store</a> +</li> + <li> <a href="../kiwi/sparql.html" title="SPARQL">SPARQL</a> +</li> + <li> <a href="../kiwi/sparql-extensions.html" title="SPARQL Extensions">SPARQL Extensions</a> +</li> + <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> +</li> + <li> <a href="../kiwi/tripletable.html" title="Triple Table">Triple Table</a> +</li> + <li> <a href="../kiwi/reasoner.html" title="Reasoner">Reasoner</a> +</li> + <li> <a href="../kiwi/versioning.html" title="Versioning">Versioning</a> +</li> + <li> <a href="../kiwi/loader.html" title="KiWi Loader">KiWi Loader</a> +</li> + <li> <a href="../kiwi/contextaware.html" title="Context Aware">Context Aware</a> +</li> + </ul> + </li> + + <li class="dropdown-submenu"> + <a href="../ldclient" title="LDClient">LDClient</a> + <ul class="dropdown-menu"> + <li> <a href="../ldclient/index.html" title="Introduction">Introduction</a> +</li> + <li> <a href="../ldclient/usage.html" title="Usage">Usage</a> +</li> + <li> <a href="../ldclient/modules.html" title="Modules">Modules</a> +</li> + <li> <a href="../ldclient/dataproviders.html" title="Data Providers">Data Providers</a> +</li> + </ul> + </li> + + <li class="dropdown-submenu"> + <a href="../ldcache" title="LDCache">LDCache</a> + <ul class="dropdown-menu"> + <li> <a href="../ldcache/index.html" title="Introduction">Introduction</a> +</li> + <li> <a href="../ldcache/usage.html" title="Usage">Usage</a> +</li> + <li> <a href="../ldcache/backends.html" title="Backends">Backends</a> +</li> + <li> <a href="../ldcache/wrappers.html" title="Wrappers">Wrappers</a> +</li> + </ul> + </li> + + <li class="dropdown-submenu"> + <a href="../ldpath" title="LDPath">LDPath</a> + <ul class="dropdown-menu"> + <li> <a href="../ldpath/index.html" title="Introduction">Introduction</a> +</li> + <li> <a href="../ldpath/language.html" title="Language">Language</a> +</li> + <li> <a href="../ldpath/usage.html" title="Usage">Usage</a> +</li> + <li> <a href="../ldpath/backends.html" title="Backends">Backends</a> +</li> + <li> <a href="../ldpath/functions.html" title="Functions">Functions</a> +</li> + <li> <a href="../ldpath/template.html" title="Template">Template</a> +</li> + </ul> + </li> + + <li> <a href="../sesame.html" title="Sesame Tools">Sesame Tools</a> +</li> + </ul> + </li> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">Project <b class="caret"></b></a> + <ul class="dropdown-menu"> + + <li class="dropdown-submenu"> + <a href="../project-info.html" title="Project Information">Project Information</a> + <ul class="dropdown-menu"> + <li> <a href="../index.html" title="About">About</a> +</li> + <li> <a href="../plugin-management.html" title="Plugin Management">Plugin Management</a> +</li> + <li> <a href="../distribution-management.html" title="Distribution Management">Distribution Management</a> +</li> + <li> <a href="../dependency-info.html" title="Dependency Information">Dependency Information</a> +</li> + <li> <a href="../source-repository.html" title="Source Repository">Source Repository</a> +</li> + <li> <a href="../mail-lists.html" title="Mailing Lists">Mailing Lists</a> +</li> + <li> <a href="../issue-tracking.html" title="Issue Tracking">Issue Tracking</a> +</li> + <li> <a href="../integration.html" title="Continuous Integration">Continuous Integration</a> +</li> + <li> <a href="../plugins.html" title="Project Plugins">Project Plugins</a> +</li> + <li> <a href="../license.html" title="Project License">Project License</a> +</li> + <li> <a href="../dependency-management.html" title="Dependency Management">Dependency Management</a> +</li> + <li> <a href="../team-list.html" title="Project Team">Project Team</a> +</li> + <li> <a href="../project-summary.html" title="Project Summary">Project Summary</a> +</li> + <li> <a href="../dependencies.html" title="Dependencies">Dependencies</a> +</li> + </ul> + </li> + + <li class="dropdown-submenu"> + <a href="../project-reports.html" title="Project Reports">Project Reports</a> + <ul class="dropdown-menu"> + <li> <a href="../apidocs/index.html" title="JavaDocs">JavaDocs</a> +</li> + </ul> + </li> + </ul> + </li> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">The ASF <b class="caret"></b></a> + <ul class="dropdown-menu"> + + <li> <a href="http://www.apache.org" title="The Apache Software Foundation">The Apache Software Foundation</a> +</li> + + <li> <a href="http://www.apache.org/foundation/how-it-works.html" title="How Apache Works">How Apache Works</a> +</li> + + <li> <a href="http://www.apache.org/security/" title="Security">Security</a> +</li> + + <li> <a href="http://www.apache.org/foundation/sponsorship.html" title="Become a Sponsor">Become a Sponsor</a> +</li> + + <li> <a href="http://www.apache.org/foundation/thanks.html" title="Thanks">Thanks</a> +</li> + </ul> + </li> + </ul> + + + + + </div> + + </div> + </div> + </div> + + <div class="container"> + <div id="banner"> + <div class="pull-left"> + <div id="bannerLeft"> + <h2>Apache Marmotta Site</h2> + </div> + </div> + <div class="pull-right"> <div id="bannerRight"> + <img src="../images/Marmotta_Logo_250x102.png" alt="Apache Marmotta"/> + </div> + </div> + <div class="clear"><hr/></div> + </div> + + <div id="breadcrumbs"> + <ul class="breadcrumb"> + + + <li id="publishDate">Last Published: 2015-09-11</li> + <li class="divider">|</li> <li id="projectVersion">Version: 3.3.0</li> + + + + + </ul> + </div> + + + + <div id="bodyColumn" > + + <p></p> +<h1>Statistical Aggregation Extension</h1> +<p>Beyond the standard <a href="sparql.html">SPARQL</a> functions, Apache Marmotta also supports the following additional aggregation functions when using the PostgreSQL backend:</p> + +<ul> + +<li><tt>mm:stddev(number)</tt> (statistics) returns the standard deviation of its arguments</li> + +<li><tt>mm:variance(number)</tt> (statistics) returns the variance of its arguments</li> +</ul> + </div> + </div> + + <hr/> + + <footer> + <div class="container"> + + <p id="poweredBy" class="pull-right"> + <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"> + <img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /> + </a> + </p> + + <p> + Copyright © 2012-2015 + <a href="http://www.apache.org">The Apache Software Foundation</a>. + All Rights Reserved. + + </p> + + +<p>Licensed under the Apache License, Version 2.0.</p> + +<p>Apache, Marmotta, the Apache feather and Marmotta logos are trademarks + of The Apache Software Foundation.</p> + + </div> + </footer> + + <script type="text/javascript" src="../js/prettify.js"></script> + <script type="text/javascript" src="../js/marmotta.js"></script> + <script type="text/javascript" src="../js/apache-maven-fluido-1.3.0.min.js"></script> + + </body> + +</html> Modified: websites/staging/marmotta/trunk/content/kiwi/sparql.html ============================================================================== --- websites/staging/marmotta/trunk/content/kiwi/sparql.html (original) +++ websites/staging/marmotta/trunk/content/kiwi/sparql.html Fri Sep 11 13:12:11 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html> <!-- - | Generated by Apache Maven Doxia at 2015-09-07 + | Generated by Apache Maven Doxia at 2015-09-11 | Rendered using Apache Maven Fluido Skin 1.3.0 --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> @@ -8,7 +8,7 @@ <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="schema.dcterms" href="http://purl.org/dc/terms/" /> - <meta name="dcterms.modified" content="2015-09-07" /> + <meta name="dcterms.modified" content="2015-09-11" /> <title>Apache Marmotta - KiWi Native SPARQL</title> <meta name="description" content="Apache Marmotta - An Open Platform for Linked Data - KiWi Native SPARQL" /> <meta name="keywords" content="Apache Marmotta, Linked Data, LDP, LDC, SPARQL, KiWi, Native, SPARQL" /> @@ -170,10 +170,12 @@ </li> <li> <a href="../kiwi/triplestore.html" title="Store">Store</a> </li> - <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> -</li> <li> <a href="../kiwi/sparql.html" title="SPARQL">SPARQL</a> </li> + <li> <a href="../kiwi/sparql-extensions.html" title="SPARQL Extensions">SPARQL Extensions</a> +</li> + <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> +</li> <li> <a href="../kiwi/tripletable.html" title="Triple Table">Triple Table</a> </li> <li> <a href="../kiwi/reasoner.html" title="Reasoner">Reasoner</a> @@ -333,7 +335,7 @@ <ul class="breadcrumb"> - <li id="publishDate">Last Published: 2015-09-07</li> + <li id="publishDate">Last Published: 2015-09-11</li> <li class="divider">|</li> <li id="projectVersion">Version: 3.3.0</li> @@ -362,6 +364,20 @@ </dependency> </pre></div></div> <div class="section"> +<h2>Marmotta Extensions<a name="Marmotta_Extensions"></a></h2> +<p>Starting with the development version of 3.2, Apache Marmotta also provides some <a href="sparql-extensions.html">extensions</a> to SPARQL 1.1:</p> + +<ul> + +<li><a href="sparql-full-text.html">Full-text search and query</a></li> + +<li><a href="sparql-statistics.html">Statistical aggregation</a></li> + +<li><a href="geosparql.html">GeoSPARQL</a></li> + +<li><a href="sparql-mm.html">SPARQL-MM</a></li> +</ul></div> +<div class="section"> <h2>Crypto Extensions<a name="Crypto_Extensions"></a></h2> <p>The SPARQL standard defines a number of crypto functions (e.g. UUID or MD5)). These are all supported by KiWi Native SPARQL for PostgreSQL and MySQL. Note that when using these functions, plain text might still be sent over the network without encryption, depending on your setup (i.e. using SSL for accessing the SPARQL endpoint, and using SSL for connecting to the backend database). Depending on the database you are using, certain additional setups are required:</p> <p>In PostgreSQL, it is necessary to install the pgcrypto extension from the contrib package into the Marmotta database. Depending on your operating system and distribution, this might also require installation of additional software packages (under Debian: postgresql-contrib). To install the pgcrypto extension, connect to the database as superuser and run</p> @@ -377,42 +393,6 @@ psql marmotta </pre></div> <p>You can also use a graphical UI like pgadmin, but make sure to call the command on the correct database (not the whole server).</p></div> <div class="section"> -<h2>Marmotta Extensions<a name="Marmotta_Extensions"></a></h2> -<p>Starting with the development version of Apache Marmotta 3.2, there is also extended function support in SPARQL. The KiWi SPARQL module comes with its own namespace for SPARQL extensions:</p> -<p>PREFIX mm: <a class="externalLink" href="http://marmotta.apache.org/vocabulary/sparql-functions#">http://marmotta.apache.org/vocabulary/sparql-functions#</a></p> -<p>Full-text search works over the literal values of nodes and differs from normal literal queries or regexp filters in that it applies language-specific lingustic processing (e.g. stemming and stop-word elimination).</p> -<p>Full-text search currently offers two SPARQL functions that can be used in the FILTER part of a query and return boolean values (found or not found):</p> - -<ul> - -<li><tt>fulltext-search(text, query, [language])</tt>: searches “text” for the words occurring in “query”, optionally applying the language-specific processing for the given language; query is a simple text literal (list of words) without any boolean connectors; words are AND connected, i.e. all words have to be found in the text for a successful match</li> - -<li><tt>fulltext-query(text, query, [language])</tt>: searches “text” using the boolean query string passed in “query”, optionally applying language-specific processing for the given language; query is a boolean query string following the <a class="externalLink" href="http://www.postgresql.org/docs/9.3/static/textsearch-controls.html#TEXTSEARCH-PARSING-QUERIES">syntax used by PostgreSQL</a></li> -</ul> -<p>Note that full-text search is only available when using backend databases that support this functionality (currently only PostgreSQL and MySQL). Only PostgreSQL has real support for language specific processing. Also note that performance heavily depends on the availability of an appropriate full-text index in the database. The KiWi SPARQL module will automatically create full-text indexes for the languages configured in the KiWiConfiguration used for creating the triple store.</p> -<p>The following example searches for the word “software” occurring in the dc:description field of the resource using the literal language of dc:description:</p> - -<div class="source"> -<pre>PREFIX foaf: <http://xmlns.com/foaf/0.1/> -PREFIX dc: <http://purl.org/dc/elements/1.1/> -PREFIX mm: <http://marmotta.apache.org/vocabulary/sparql-functions#> - -SELECT ?p1 ?fn ?age WHERE { - ?p1 foaf:name ?fn . - ?p1 foaf:age ?age . - ?p1 dc:description ?desc . - FILTER( mm:fulltext-search(str(?desc), "software", lang(?desc)) ) -} -</pre></div> -<p>Beyond the standard SPARQL functions, Apache Marmotta also supports the following additional aggregation functions when using the PostgreSQL backend:</p> - -<ul> - -<li><tt>mm:stddev(number)</tt> (statistics) returns the standard deviation of its arguments</li> - -<li><tt>mm:variance(number)</tt> (statistics) returns the variance of its arguments</li> -</ul></div> -<div class="section"> <h2>Performance Considerations<a name="Performance_Considerations"></a></h2> <p>In practice, the KiWi SPARQL module seriously improves the performance of most SPARQL queries (and even updates) and should therefore almost always be used in conjunction with the KiWi triple store. However, there is no magic, and you need to keep in mind that certain queries will still be problematic. To improve SPARQL performance, try to follow the following recommendations:</p> Modified: websites/staging/marmotta/trunk/content/kiwi/transactions.html ============================================================================== --- websites/staging/marmotta/trunk/content/kiwi/transactions.html (original) +++ websites/staging/marmotta/trunk/content/kiwi/transactions.html Fri Sep 11 13:12:11 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html> <!-- - | Generated by Apache Maven Doxia at 2015-09-07 + | Generated by Apache Maven Doxia at 2015-09-11 | Rendered using Apache Maven Fluido Skin 1.3.0 --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> @@ -8,7 +8,7 @@ <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="schema.dcterms" href="http://purl.org/dc/terms/" /> - <meta name="dcterms.modified" content="2015-09-07" /> + <meta name="dcterms.modified" content="2015-09-11" /> <title>Apache Marmotta - KiWi Transaction Support</title> <meta name="description" content="Apache Marmotta - An Open Platform for Linked Data - KiWi Transaction Support" /> <meta name="keywords" content="Apache Marmotta, Linked Data, LDP, LDC, SPARQL, KiWi, Transaction, Support" /> @@ -170,10 +170,12 @@ </li> <li> <a href="../kiwi/triplestore.html" title="Store">Store</a> </li> - <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> -</li> <li> <a href="../kiwi/sparql.html" title="SPARQL">SPARQL</a> </li> + <li> <a href="../kiwi/sparql-extensions.html" title="SPARQL Extensions">SPARQL Extensions</a> +</li> + <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> +</li> <li> <a href="../kiwi/tripletable.html" title="Triple Table">Triple Table</a> </li> <li> <a href="../kiwi/reasoner.html" title="Reasoner">Reasoner</a> @@ -333,7 +335,7 @@ <ul class="breadcrumb"> - <li id="publishDate">Last Published: 2015-09-07</li> + <li id="publishDate">Last Published: 2015-09-11</li> <li class="divider">|</li> <li id="projectVersion">Version: 3.3.0</li> Modified: websites/staging/marmotta/trunk/content/kiwi/triplestore.html ============================================================================== --- websites/staging/marmotta/trunk/content/kiwi/triplestore.html (original) +++ websites/staging/marmotta/trunk/content/kiwi/triplestore.html Fri Sep 11 13:12:11 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html> <!-- - | Generated by Apache Maven Doxia at 2015-09-07 + | Generated by Apache Maven Doxia at 2015-09-11 | Rendered using Apache Maven Fluido Skin 1.3.0 --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> @@ -8,7 +8,7 @@ <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="schema.dcterms" href="http://purl.org/dc/terms/" /> - <meta name="dcterms.modified" content="2015-09-07" /> + <meta name="dcterms.modified" content="2015-09-11" /> <title>Apache Marmotta - KiWi Triplestore</title> <meta name="description" content="Apache Marmotta - An Open Platform for Linked Data - KiWi Triplestore" /> <meta name="keywords" content="Apache Marmotta, Linked Data, LDP, LDC, SPARQL, KiWi, Triplestore" /> @@ -170,10 +170,12 @@ </li> <li> <a href="../kiwi/triplestore.html" title="Store">Store</a> </li> - <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> -</li> <li> <a href="../kiwi/sparql.html" title="SPARQL">SPARQL</a> </li> + <li> <a href="../kiwi/sparql-extensions.html" title="SPARQL Extensions">SPARQL Extensions</a> +</li> + <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> +</li> <li> <a href="../kiwi/tripletable.html" title="Triple Table">Triple Table</a> </li> <li> <a href="../kiwi/reasoner.html" title="Reasoner">Reasoner</a> @@ -333,7 +335,7 @@ <ul class="breadcrumb"> - <li id="publishDate">Last Published: 2015-09-07</li> + <li id="publishDate">Last Published: 2015-09-11</li> <li class="divider">|</li> <li id="projectVersion">Version: 3.3.0</li> Modified: websites/staging/marmotta/trunk/content/kiwi/tripletable.html ============================================================================== --- websites/staging/marmotta/trunk/content/kiwi/tripletable.html (original) +++ websites/staging/marmotta/trunk/content/kiwi/tripletable.html Fri Sep 11 13:12:11 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html> <!-- - | Generated by Apache Maven Doxia at 2015-09-07 + | Generated by Apache Maven Doxia at 2015-09-11 | Rendered using Apache Maven Fluido Skin 1.3.0 --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> @@ -8,7 +8,7 @@ <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="schema.dcterms" href="http://purl.org/dc/terms/" /> - <meta name="dcterms.modified" content="2015-09-07" /> + <meta name="dcterms.modified" content="2015-09-11" /> <title>Apache Marmotta - KiWi Triple Table</title> <meta name="description" content="Apache Marmotta - An Open Platform for Linked Data - KiWi Triple Table" /> <meta name="keywords" content="Apache Marmotta, Linked Data, LDP, LDC, SPARQL, KiWi, Triple, Table" /> @@ -170,10 +170,12 @@ </li> <li> <a href="../kiwi/triplestore.html" title="Store">Store</a> </li> - <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> -</li> <li> <a href="../kiwi/sparql.html" title="SPARQL">SPARQL</a> </li> + <li> <a href="../kiwi/sparql-extensions.html" title="SPARQL Extensions">SPARQL Extensions</a> +</li> + <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> +</li> <li> <a href="../kiwi/tripletable.html" title="Triple Table">Triple Table</a> </li> <li> <a href="../kiwi/reasoner.html" title="Reasoner">Reasoner</a> @@ -333,7 +335,7 @@ <ul class="breadcrumb"> - <li id="publishDate">Last Published: 2015-09-07</li> + <li id="publishDate">Last Published: 2015-09-11</li> <li class="divider">|</li> <li id="projectVersion">Version: 3.3.0</li> Modified: websites/staging/marmotta/trunk/content/kiwi/versioning.html ============================================================================== --- websites/staging/marmotta/trunk/content/kiwi/versioning.html (original) +++ websites/staging/marmotta/trunk/content/kiwi/versioning.html Fri Sep 11 13:12:11 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html> <!-- - | Generated by Apache Maven Doxia at 2015-09-07 + | Generated by Apache Maven Doxia at 2015-09-11 | Rendered using Apache Maven Fluido Skin 1.3.0 --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> @@ -8,7 +8,7 @@ <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="schema.dcterms" href="http://purl.org/dc/terms/" /> - <meta name="dcterms.modified" content="2015-09-07" /> + <meta name="dcterms.modified" content="2015-09-11" /> <title>Apache Marmotta - KiWi Versioning</title> <meta name="description" content="Apache Marmotta - An Open Platform for Linked Data - KiWi Versioning" /> <meta name="keywords" content="Apache Marmotta, Linked Data, LDP, LDC, SPARQL, KiWi, Versioning" /> @@ -170,10 +170,12 @@ </li> <li> <a href="../kiwi/triplestore.html" title="Store">Store</a> </li> - <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> -</li> <li> <a href="../kiwi/sparql.html" title="SPARQL">SPARQL</a> </li> + <li> <a href="../kiwi/sparql-extensions.html" title="SPARQL Extensions">SPARQL Extensions</a> +</li> + <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> +</li> <li> <a href="../kiwi/tripletable.html" title="Triple Table">Triple Table</a> </li> <li> <a href="../kiwi/reasoner.html" title="Reasoner">Reasoner</a> @@ -333,7 +335,7 @@ <ul class="breadcrumb"> - <li id="publishDate">Last Published: 2015-09-07</li> + <li id="publishDate">Last Published: 2015-09-11</li> <li class="divider">|</li> <li id="projectVersion">Version: 3.3.0</li> Modified: websites/staging/marmotta/trunk/content/ldcache/backends.html ============================================================================== --- websites/staging/marmotta/trunk/content/ldcache/backends.html (original) +++ websites/staging/marmotta/trunk/content/ldcache/backends.html Fri Sep 11 13:12:11 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html> <!-- - | Generated by Apache Maven Doxia at 2015-09-07 + | Generated by Apache Maven Doxia at 2015-09-11 | Rendered using Apache Maven Fluido Skin 1.3.0 --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> @@ -8,7 +8,7 @@ <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="schema.dcterms" href="http://purl.org/dc/terms/" /> - <meta name="dcterms.modified" content="2015-09-07" /> + <meta name="dcterms.modified" content="2015-09-11" /> <title>Apache Marmotta - LDCache Backends</title> <meta name="description" content="Apache Marmotta - An Open Platform for Linked Data - LDCache Backends" /> <meta name="keywords" content="Apache Marmotta, Linked Data, LDP, LDC, SPARQL, LDCache, Backends" /> @@ -170,10 +170,12 @@ </li> <li> <a href="../kiwi/triplestore.html" title="Store">Store</a> </li> - <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> -</li> <li> <a href="../kiwi/sparql.html" title="SPARQL">SPARQL</a> </li> + <li> <a href="../kiwi/sparql-extensions.html" title="SPARQL Extensions">SPARQL Extensions</a> +</li> + <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> +</li> <li> <a href="../kiwi/tripletable.html" title="Triple Table">Triple Table</a> </li> <li> <a href="../kiwi/reasoner.html" title="Reasoner">Reasoner</a> @@ -333,7 +335,7 @@ <ul class="breadcrumb"> - <li id="publishDate">Last Published: 2015-09-07</li> + <li id="publishDate">Last Published: 2015-09-11</li> <li class="divider">|</li> <li id="projectVersion">Version: 3.3.0</li> Modified: websites/staging/marmotta/trunk/content/ldcache/index.html ============================================================================== --- websites/staging/marmotta/trunk/content/ldcache/index.html (original) +++ websites/staging/marmotta/trunk/content/ldcache/index.html Fri Sep 11 13:12:11 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html> <!-- - | Generated by Apache Maven Doxia at 2015-09-07 + | Generated by Apache Maven Doxia at 2015-09-11 | Rendered using Apache Maven Fluido Skin 1.3.0 --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> @@ -8,7 +8,7 @@ <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="schema.dcterms" href="http://purl.org/dc/terms/" /> - <meta name="dcterms.modified" content="2015-09-07" /> + <meta name="dcterms.modified" content="2015-09-11" /> <title>Apache Marmotta - Linked Data Caching</title> <meta name="description" content="Apache Marmotta - An Open Platform for Linked Data - Linked Data Caching" /> <meta name="keywords" content="Apache Marmotta, Linked Data, LDP, LDC, SPARQL, Linked, Data, Caching" /> @@ -170,10 +170,12 @@ </li> <li> <a href="../kiwi/triplestore.html" title="Store">Store</a> </li> - <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> -</li> <li> <a href="../kiwi/sparql.html" title="SPARQL">SPARQL</a> </li> + <li> <a href="../kiwi/sparql-extensions.html" title="SPARQL Extensions">SPARQL Extensions</a> +</li> + <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> +</li> <li> <a href="../kiwi/tripletable.html" title="Triple Table">Triple Table</a> </li> <li> <a href="../kiwi/reasoner.html" title="Reasoner">Reasoner</a> @@ -333,7 +335,7 @@ <ul class="breadcrumb"> - <li id="publishDate">Last Published: 2015-09-07</li> + <li id="publishDate">Last Published: 2015-09-11</li> <li class="divider">|</li> <li id="projectVersion">Version: 3.3.0</li> Modified: websites/staging/marmotta/trunk/content/ldcache/usage.html ============================================================================== --- websites/staging/marmotta/trunk/content/ldcache/usage.html (original) +++ websites/staging/marmotta/trunk/content/ldcache/usage.html Fri Sep 11 13:12:11 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html> <!-- - | Generated by Apache Maven Doxia at 2015-09-07 + | Generated by Apache Maven Doxia at 2015-09-11 | Rendered using Apache Maven Fluido Skin 1.3.0 --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> @@ -8,7 +8,7 @@ <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="schema.dcterms" href="http://purl.org/dc/terms/" /> - <meta name="dcterms.modified" content="2015-09-07" /> + <meta name="dcterms.modified" content="2015-09-11" /> <title>Apache Marmotta - LDCache Usage</title> <meta name="description" content="Apache Marmotta - An Open Platform for Linked Data - LDCache Usage" /> <meta name="keywords" content="Apache Marmotta, Linked Data, LDP, LDC, SPARQL, LDCache, Usage" /> @@ -170,10 +170,12 @@ </li> <li> <a href="../kiwi/triplestore.html" title="Store">Store</a> </li> - <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> -</li> <li> <a href="../kiwi/sparql.html" title="SPARQL">SPARQL</a> </li> + <li> <a href="../kiwi/sparql-extensions.html" title="SPARQL Extensions">SPARQL Extensions</a> +</li> + <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> +</li> <li> <a href="../kiwi/tripletable.html" title="Triple Table">Triple Table</a> </li> <li> <a href="../kiwi/reasoner.html" title="Reasoner">Reasoner</a> @@ -333,7 +335,7 @@ <ul class="breadcrumb"> - <li id="publishDate">Last Published: 2015-09-07</li> + <li id="publishDate">Last Published: 2015-09-11</li> <li class="divider">|</li> <li id="projectVersion">Version: 3.3.0</li> Modified: websites/staging/marmotta/trunk/content/ldcache/wrappers.html ============================================================================== --- websites/staging/marmotta/trunk/content/ldcache/wrappers.html (original) +++ websites/staging/marmotta/trunk/content/ldcache/wrappers.html Fri Sep 11 13:12:11 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html> <!-- - | Generated by Apache Maven Doxia at 2015-09-07 + | Generated by Apache Maven Doxia at 2015-09-11 | Rendered using Apache Maven Fluido Skin 1.3.0 --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> @@ -8,7 +8,7 @@ <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="schema.dcterms" href="http://purl.org/dc/terms/" /> - <meta name="dcterms.modified" content="2015-09-07" /> + <meta name="dcterms.modified" content="2015-09-11" /> <title>Apache Marmotta - LDCache Connection Wrappers</title> <meta name="description" content="Apache Marmotta - An Open Platform for Linked Data - LDCache Connection Wrappers" /> <meta name="keywords" content="Apache Marmotta, Linked Data, LDP, LDC, SPARQL, LDCache, Connection, Wrappers" /> @@ -170,10 +170,12 @@ </li> <li> <a href="../kiwi/triplestore.html" title="Store">Store</a> </li> - <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> -</li> <li> <a href="../kiwi/sparql.html" title="SPARQL">SPARQL</a> </li> + <li> <a href="../kiwi/sparql-extensions.html" title="SPARQL Extensions">SPARQL Extensions</a> +</li> + <li> <a href="../kiwi/transactions.html" title="Transactions">Transactions</a> +</li> <li> <a href="../kiwi/tripletable.html" title="Triple Table">Triple Table</a> </li> <li> <a href="../kiwi/reasoner.html" title="Reasoner">Reasoner</a> @@ -333,7 +335,7 @@ <ul class="breadcrumb"> - <li id="publishDate">Last Published: 2015-09-07</li> + <li id="publishDate">Last Published: 2015-09-11</li> <li class="divider">|</li> <li id="projectVersion">Version: 3.3.0</li>
