Skip to content

Commit

Permalink
[Upd] Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
blcham committed Sep 29, 2023
1 parent 080fac8 commit 93ecf99
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Expand Up @@ -41,6 +41,7 @@ public class ImportE5XModule extends AbstractModule {
private static final Logger LOG = LoggerFactory.getLogger(ImportE5XModule.class);

// TODO - this parameter id defined with IRI <http://onto.fel.cvut.cz/ontologies/lib/module-param/has-resource-uri> in s-pipes-modules\module.sms.ttl
// TODO - we should be able to annotate directly "StreamResource e5xResource" instead
@Parameter(name = "has-resource-uri", comment = "Uri of a resource referencing content of an e5x file.")
private String e5xResourceUriStr;

Expand Down
Expand Up @@ -57,7 +57,9 @@ public class SUTimeModuleNew extends AbstractModule {
private boolean isReplace;

//kbss:parseText
@Parameter(name = "is-parse-text", comment = "Whether the query should be taken from sp:text property instead of from SPIN serialization")
@Parameter(urlPrefix = KBSS_MODULE.uri, name = "is-parse-text",
comment = "Whether the query should be taken from sp:text property instead of from SPIN serialization," +
" default is true.")
private boolean parseText;

@Parameter(urlPrefix = DescriptorModel.prefix, name = "has-rule-file", comment = "Rule file, multivalued.")// TODO - review comment
Expand Down
Expand Up @@ -3,7 +3,6 @@
import cz.cvut.spipes.constants.KBSS_MODULE;
import cz.cvut.spipes.constants.SML;
import cz.cvut.spipes.engine.ExecutionContext;
import cz.cvut.spipes.modules.annotations.SPipesModule;
import cz.cvut.spipes.util.JenaUtils;
import cz.cvut.spipes.util.QueryUtils;
import org.apache.jena.query.Query;
Expand Down Expand Up @@ -36,8 +35,9 @@ public abstract class ApplyConstructAbstractModule extends AnnotatedAbstractModu
protected boolean isReplace;

//kbss:parseText
@Parameter(name = "is-parse-text",
comment = "Whether the query should be taken from sp:text property instead of from SPIN serialization"
@Parameter(urlPrefix = KBSS_MODULE.uri, name = "is-parse-text",
comment = "Whether the query should be taken from sp:text property instead of from SPIN serialization," +
" default is true."
)
protected boolean parseText;

Expand Down Expand Up @@ -182,7 +182,7 @@ public void loadConfiguration() {
//TODO default value must be taken from template definition
isReplace = this.getPropertyValue(SML.replace, false);

parseText = this.getPropertyValue(KBSS_MODULE.is_parse_text, false);
parseText = this.getPropertyValue(KBSS_MODULE.is_parse_text, true);
iterationCount = this.getPropertyValue(KBSS_MODULE.has_max_iteration_count, -1);
}

Expand Down
Expand Up @@ -15,7 +15,7 @@
@SPipesModule(label = "apply construct with scrollable cursor",
comment = "Runs one or more construct queries (bound to sml:constructQuery) on the input triples. Queries are " +
"executed multiple times with scrollable cursor that is injected through query marker #${LIMIT_OFFSET}. " +
"The marker is replaced each time with appropriatei by sparql constructs 'LIMIT ?limit' and 'OFFSET ?offset'. " +
"The marker is replaced each time with appropriate by sparql constructs 'LIMIT ?limit' and 'OFFSET ?offset'. " +
"Within each construct query The output RDF will consist of the constructed triples and (unless sml:replace is true) " +
"the input triples.")
public class ApplyConstructWithScrollableCursorModule extends ApplyConstructAbstractModule {
Expand Down

0 comments on commit 93ecf99

Please sign in to comment.