You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by ki...@apache.org on 2021/12/09 19:13:15 UTC

[jena-site] branch main updated: typos

This is an automated email from the ASF dual-hosted git repository.

kinow pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 27d9ce8  typos
27d9ce8 is described below

commit 27d9ce8c441bd98c964eefeb732344cd0b5809d2
Author: Erich Bremer <er...@ebremer.com>
AuthorDate: Thu Dec 9 12:42:21 2021 -0500

    typos
---
 source/documentation/query/writing_propfuncs.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/source/documentation/query/writing_propfuncs.md b/source/documentation/query/writing_propfuncs.md
index ecf0051..ca292dc 100644
--- a/source/documentation/query/writing_propfuncs.md
+++ b/source/documentation/query/writing_propfuncs.md
@@ -64,15 +64,15 @@ Assuming you have an implementation of
 
 
     final PropertyFunctionRegistry reg = PropertyFunctionRegistry.chooseRegistry(ARQ.getContext());
-    reg.put("urn:ex:fn#example", new ExamplePropertyFunctionFactory);
+    reg.put("urn:ex:fn#example", new ExamplePropertyFunctionFactory());
     PropertyFunctionRegistry.set(ARQ.getContext(), reg);
 
 
 The only difference between global and dataset-specific registration is where the `Context` object comes from:
 
-    final Dataset ds = DatasetFactory.createMem();
+    final Dataset ds = DatasetFactory.createGeneral();
     final PropertyFunctionRegistry reg = PropertyFunctionRegistry.chooseRegistry(ds.getContext());
-    reg.put("urn:ex:fn#example", new ExamplePropertyFunctionFactory);
+    reg.put("urn:ex:fn#example", new ExamplePropertyFunctionFactory());
     PropertyFunctionRegistry.set(ds.getContext(), reg);
 
 Note that 
@@ -92,7 +92,7 @@ The implementation of a Property Function is actually quite straight forward onc
     		return new PFuncSimple()
     		{
     			@Override
-    			public QueryIterator execEvaluated(final Binding parent, final Node subject, final Node predicate, final Node object, final ExecutionContext execCxt) 
+    			public QueryIterator execEvaluated(final Binding parent, final Node subject, final Node predicate, final Node object, final ExecutionContext execCtx) 
     			{	
                     return QueryIterNullIterator.create(execCtx);
     			}