jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r940473 - in /websites/staging/jena/trunk/content: ./ documentation/hadoop/mapred.html
Date Tue, 17 Feb 2015 14:48:19 GMT
Author: buildbot
Date: Tue Feb 17 14:48:18 2015
New Revision: 940473

Log:
Staging update by buildbot for jena

Modified:
    websites/staging/jena/trunk/content/   (props changed)
    websites/staging/jena/trunk/content/documentation/hadoop/mapred.html

Propchange: websites/staging/jena/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Feb 17 14:48:18 2015
@@ -1 +1 @@
-1660394
+1660396

Modified: websites/staging/jena/trunk/content/documentation/hadoop/mapred.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/hadoop/mapred.html (original)
+++ websites/staging/jena/trunk/content/documentation/hadoop/mapred.html Tue Feb 17 14:48:18
2015
@@ -208,12 +208,12 @@
 <p>In some cases you may only be interesting in triples/quads that are grounded i.e.
don't contain blank nodes in which case the <code>GroundTripleFilterMapper</code>
and <code>GroundQuadFilterMapper</code> can be used.</p>
 <h3 id="data-with-a-specific-uri">Data with a specific URI</h3>
 <p>In lots of case you may want to extract only data where a specific URI occurs in
a specific position, for example if you wanted to extract all the <code>rdf:type</code>
declarations then you might want to use the <code>TripleFilterByPredicateUriMapper</code>
or <code>QuadFilterByPredicateUriMapper</code> as appropriate.  The job configuration
option <code>rdf.mapreduce.filter.predicate.uris</code> is used to provide a comma
separated list of the full URIs you want the filter to accept e.g.</p>
-<div class="codehilite"><pre><span class="n">config</span><span
class="p">.</span><span class="n">setBoolean</span><span class="p">(</span><span
class="n">RdfMapReduceConstants</span><span class="p">.</span><span
class="n">FILTER_PREDICATE_URIS</span><span class="p">,</span> &quot;<span
class="n">http</span><span class="p">:</span><span class="o">//</span><span
class="n">example</span><span class="p">.</span><span class="n">org</span><span
class="o">/</span><span class="n">predicate</span><span class="p">,</span><span
class="n">http</span><span class="p">:</span><span class="o">//</span><span
class="n">another</span><span class="p">.</span><span class="n">org</span><span
class="o">/</span><span class="n">predicate</span>&quot;<span
class="p">);</span>
+<div class="codehilite"><pre><span class="n">config</span><span
class="p">.</span><span class="n">set</span><span class="p">(</span><span
class="n">RdfMapReduceConstants</span><span class="p">.</span><span
class="n">FILTER_PREDICATE_URIS</span><span class="p">,</span> &quot;<span
class="n">http</span><span class="p">:</span><span class="o">//</span><span
class="n">example</span><span class="p">.</span><span class="n">org</span><span
class="o">/</span><span class="n">predicate</span><span class="p">,</span><span
class="n">http</span><span class="p">:</span><span class="o">//</span><span
class="n">another</span><span class="p">.</span><span class="n">org</span><span
class="o">/</span><span class="n">predicate</span>&quot;<span
class="p">);</span>
 </pre></div>
 
 
 <p>Similar to the counting of node usage you can substitute <code>Predicate</code>
for <code>Subject</code>, <code>Object</code> or <code>Graph</code>
as desired.  You will also need to do this in the job configuration option, for example to
filter on subject URIs in quads use the <code>QuadFilterBySubjectUriMapper</code>
and the <code>rdf.mapreduce.filter.subject.uris</code> configuration option e.g.</p>
-<div class="codehilite"><pre><span class="n">config</span><span
class="p">.</span><span class="n">setBoolean</span><span class="p">(</span><span
class="n">RdfMapReduceConstants</span><span class="p">.</span><span
class="n">FILTER_SUBJECT_URIS</span><span class="p">,</span> &quot;<span
class="n">http</span><span class="p">:</span><span class="o">//</span><span
class="n">example</span><span class="p">.</span><span class="n">org</span><span
class="o">/</span><span class="n">myInstance</span>&quot;<span
class="p">);</span>
+<div class="codehilite"><pre><span class="n">config</span><span
class="p">.</span><span class="n">set</span><span class="p">(</span><span
class="n">RdfMapReduceConstants</span><span class="p">.</span><span
class="n">FILTER_SUBJECT_URIS</span><span class="p">,</span> &quot;<span
class="n">http</span><span class="p">:</span><span class="o">//</span><span
class="n">example</span><span class="p">.</span><span class="n">org</span><span
class="o">/</span><span class="n">myInstance</span>&quot;<span
class="p">);</span>
 </pre></div>
 
 



Mime
View raw message