Updates to include addSparqlForAdditionalUrisInScope and addSparqlForAdditionalLiteralsInScope and also updated addSparqlForExistingLiteral (as it wasn't setting the map created if map did not exist).
This commit is contained in:
parent
5774a1ab6d
commit
e99114ce44
1 changed files with 34 additions and 1 deletions
|
@ -942,6 +942,7 @@ public class EditConfigurationVTwo {
|
|||
if( map == null ) {
|
||||
map = new HashMap<String,String>();
|
||||
map.put(key, sparql);
|
||||
setSparqlForExistingLiterals(map);
|
||||
}else{
|
||||
map.put(key, sparql);
|
||||
}
|
||||
|
@ -963,6 +964,38 @@ public class EditConfigurationVTwo {
|
|||
}
|
||||
}
|
||||
|
||||
public void addSparqlForAdditionalLiteralsInScope(String key, String sparql){
|
||||
if( key == null || key.isEmpty() )
|
||||
throw new IllegalArgumentException("key must not be null");
|
||||
if( sparql == null || sparql .isEmpty() )
|
||||
throw new IllegalArgumentException("sparql must not be null");
|
||||
|
||||
Map<String,String> map = sparqlForAdditionalLiteralsInScope;
|
||||
if( map == null ) {
|
||||
map = new HashMap<String,String>();
|
||||
map.put(key, sparql);
|
||||
setSparqlForAdditionalLiteralsInScope(map);
|
||||
}else{
|
||||
map.put(key, sparql);
|
||||
}
|
||||
}
|
||||
|
||||
public void addSparqlForAdditionalUrisInScope(String key, String sparql){
|
||||
if( key == null || key.isEmpty() )
|
||||
throw new IllegalArgumentException("key must not be null");
|
||||
if( sparql == null || sparql .isEmpty() )
|
||||
throw new IllegalArgumentException("sparql must not be null");
|
||||
|
||||
Map<String,String> map = sparqlForAdditionalUrisInScope;
|
||||
if( map == null ) {
|
||||
map = new HashMap<String,String>();
|
||||
map.put(key, sparql);
|
||||
setSparqlForAdditionalUrisInScope(map);
|
||||
}else{
|
||||
map.put(key, sparql);
|
||||
}
|
||||
}
|
||||
|
||||
public void addField( FieldVTwo field){
|
||||
if( field == null )
|
||||
throw new IllegalArgumentException("field must not be null");
|
||||
|
|
Loading…
Add table
Reference in a new issue