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
|
@ -941,7 +941,8 @@ public class EditConfigurationVTwo {
|
||||||
Map<String,String> map = sparqlForExistingLiterals;
|
Map<String,String> map = sparqlForExistingLiterals;
|
||||||
if( map == null ) {
|
if( map == null ) {
|
||||||
map = new HashMap<String,String>();
|
map = new HashMap<String,String>();
|
||||||
map.put(key, sparql);
|
map.put(key, sparql);
|
||||||
|
setSparqlForExistingLiterals(map);
|
||||||
}else{
|
}else{
|
||||||
map.put(key, sparql);
|
map.put(key, sparql);
|
||||||
}
|
}
|
||||||
|
@ -962,6 +963,38 @@ public class EditConfigurationVTwo {
|
||||||
map.put(key, sparql);
|
map.put(key, sparql);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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){
|
public void addField( FieldVTwo field){
|
||||||
if( field == null )
|
if( field == null )
|
||||||
|
|
Loading…
Add table
Reference in a new issue