Author: rvesse
Date: Tue Feb 17 14:45:43 2015
New Revision: 1660394

URL: http://svn.apache.org/r1660394
Log:
Correct code examples in Elephas documentation

Modified:
    jena/site/trunk/content/documentation/hadoop/mapred.mdtext

Modified: jena/site/trunk/content/documentation/hadoop/mapred.mdtext
URL: 
http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/hadoop/mapred.mdtext?rev=1660394&r1=1660393&r2=1660394&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/hadoop/mapred.mdtext (original)
+++ jena/site/trunk/content/documentation/hadoop/mapred.mdtext Tue Feb 17 
14:45:43 2015
@@ -40,7 +40,7 @@ Finally you may be interested in the usa
 
 Filtering is another classic Map/Reduce use case, here you want to take the 
data and extract only the portions that you are interested in based on some 
criteria.  All our filter `Mapper` implementations also support a Job 
configuration option named `rdf.mapreduce.filter.invert` allowing their effects 
to be inverted if desired e.g.
 
-    config.setProperty(RdfMapReduceConstants.FILTER_INVERT, true);
+    config.setBoolean(RdfMapReduceConstants.FILTER_INVERT, true);
 
 ### Valid Data
 
@@ -61,11 +61,11 @@ In some cases you may only be interestin
 
 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 `rdf:type` 
declarations then you might want to use the `TripleFilterByPredicateUriMapper` 
or `QuadFilterByPredicateUriMapper` as appropriate.  The job configuration 
option `rdf.mapreduce.filter.predicate.uris` is used to provide a comma 
separated list of the full URIs you want the filter to accept e.g.
 
-    config.setProperty(RdfMapReduceConstants.FILTER_PREDICATE_URIS, 
"http://example.org/predicate,http://another.org/predicate";);
+    config.setBoolean(RdfMapReduceConstants.FILTER_PREDICATE_URIS, 
"http://example.org/predicate,http://another.org/predicate";);
 
 Similar to the counting of node usage you can substitute `Predicate` for 
`Subject`, `Object` or `Graph` 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 `QuadFilterBySubjectUriMapper` and the 
`rdf.mapreduce.filter.subject.uris` configuration option e.g.
 
-    config.setProperty(RdfMapReduceConstants.FILTER_SUBJECT_URIS, 
"http://example.org/myInstance";);
+    config.setBoolean(RdfMapReduceConstants.FILTER_SUBJECT_URIS, 
"http://example.org/myInstance";);
 
 ## Grouping
 


Reply via email to