Skip to content

Commit

Permalink
[#258] Fix missing JENA properties
Browse files Browse the repository at this point in the history
  • Loading branch information
palagdan authored and blcham committed Sep 13, 2024
1 parent f3b022c commit 9498344
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ public void loadConfiguration() {
}
parseText = this.getPropertyValue(KBSS_MODULE.JENA.is_parse_text, true);
pageSize = this.getPropertyValue(P_PAGE_SIZE, DEFAULT_PAGE_SIZE);
constructQueries = getResourcesByProperty(SML.constructQuery);
constructQueries = getResourcesByProperty(SML.JENA.constructQuery);

isReplace = this.getPropertyValue(SML.replace, false);
isReplace = this.getPropertyValue(SML.JENA.replace, false);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public void loadConfiguration() {
}

private List<String> loadUpdateQueries() {
return getResourcesByProperty(SML.updateQuery).stream().map(
return getResourcesByProperty(SML.JENA.updateQuery).stream().map(
r -> r.getProperty(SP.text).getLiteral().getString()).collect(Collectors.toList());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ public void loadConfiguration() {
// TODO load default values from configuration

// TODO does not work with string query as object is not RDF resource ???
constructQueries = getResourcesByProperty(SML.constructQuery);
constructQueries = getResourcesByProperty(SML.JENA.constructQuery);

log.debug("Loaded {} spin construct queries.", constructQueries.size());

//TODO default value must be taken from template definition
isReplace = this.getPropertyValue(SML.replace, false);
isReplace = this.getPropertyValue(SML.JENA.replace, false);

parseText = this.getPropertyValue(KBSS_MODULE.JENA.is_parse_text, true);
iterationCount = this.getPropertyValue(KBSS_MODULE.JENA.has_max_iteration_count, -1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void loadConfiguration() {
//iterationCount = this.getPropertyValue(KBSS_MODULE.JENA.s_max_iteration_count, 1);
parseText = this.getPropertyValue(KBSS_MODULE.JENA.is_parse_text, true);
chunkSize = this.getPropertyValue(P_CHUNK_SIZE, DEFAULT_CHUNK_SIZE);
selectQuery = getPropertyValue(SML.selectQuery).asResource().as(Select.class);
selectQuery = getPropertyValue(SML.JENA.selectQuery).asResource().as(Select.class);
pageSize = this.getPropertyValue(P_PAGE_SIZE, DEFAULT_PAGE_SIZE);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void loadConfiguration() {
//iterationCount = this.getPropertyValue(KBSS_MODULE.JENA.s_max_iteration_count, 1);
parseText = this.getPropertyValue(KBSS_MODULE.JENA.is_parse_text, true);
chunkSize = this.getPropertyValue(P_CHUNK_SIZE, DEFAULT_CHUNK_SIZE);
selectQuery = getPropertyValue(SML.selectQuery).asResource().as(Select.class);
selectQuery = getPropertyValue(SML.JENA.selectQuery).asResource().as(Select.class);
}

@NotNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public void loadConfiguration() {

// TODO does not work with string query as object is not RDF resource ???
constructQueries = resource
.listProperties(SML.constructQuery)
.listProperties(SML.JENA.constructQuery)
.toList().stream()
.map(st -> st.getObject().asResource())
.collect(Collectors.toList());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ private String annotateObjectLiteral(String objectValue) {
@Override
public void loadConfiguration() {
super.loadConfiguration();
selectQuery = getPropertyValue(SML.selectQuery).asResource().as(Select.class);
selectQuery = getPropertyValue(SML.JENA.selectQuery).asResource().as(Select.class);
}

@Override
Expand Down

0 comments on commit 9498344

Please sign in to comment.