<html>
<head>
	<title>FedX Documentation</title>
</head>

<body>
<div id="content" style="width:800px">

<h2>Data configuration</h2>

<a href="../Index.html">back</a>

<p>Federation members can be added to a federation either directly as a list of endpoints, or using a data configuration
file via the <i>dataConfig</i> property (see <a href="java.html">Java examples</a>). In a data configuration the federation
members are specified in a turtle syntax.</p>


<h3>Example 1: SPARQL Federation:</h3>

<pre>
@prefix fluid: &lt;http://fluidops.org/config#>.

&lt;http://DBpedia> fluid:store "SPARQLEndpoint";
fluid:SPARQLEndpoint "http://dbpedia.org/sparql";
fluid:supportsASKQueries "false" .

&lt;http://SWDF> fluid:store "SPARQLEndpoint";
fluid:SPARQLEndpoint "http://data.semanticweb.org/sparql".

&lt;http://LinkedMDB> fluid:store "SPARQLEndpoint";
fluid:SPARQLEndpoint "http://data.linkedmdb.org/sparql".
</pre>

<p>Note: if a SPARQL endpoint does not support ASK queries, 
the endpoint can be configured to use SELECT queries instead
using <i>fluid:supportsASKQueries "false"</i>. This is
for instance useful for Virtuoso based endpoints like
DBpedia. Moreover note that for convenience the public DBpedia 
endpoint is automatically configured to use SELECT queries</p

<h3>Example 2: SPARQL Federation with Sesame remote repositories</h3>

<pre>
&lt;http://dbpedia&gt; fluid:store "RemoteRepository";
fluid:repositoryServer "http://&lt;host&gt;/openrdf-sesame" ;
fluid:repositoryName "&lt;repoName&gt;" .
</pre>

<h3>Example 3: Local Federation (NativeStore):</h3>

<pre>
@prefix fluid: &lt;http://fluidops.org/config#>.

&lt;http://DBpedia> fluid:store "NativeStore";
fluid:RepositoryLocation "repositories\\native-storage.dbpedia36".

&lt;http://NYTimes> fluid:store "NativeStore";
fluid:RepositoryLocation "repositories\\native-storage.nytimes".
</pre>

Note that also hybrid combinations are possible.

</div>
</body>
</html>