remove only langtag literals (#349)
This commit is contained in:
parent
57d93285ff
commit
4acb10fc3f
1 changed files with 3 additions and 1 deletions
|
@ -50,6 +50,7 @@ public class ProcessRdfForm {
|
|||
private EditN3GeneratorVTwo populator;
|
||||
|
||||
private Map<String,String> urisForNewResources = null;
|
||||
private static final String langStringDatatypeUri = RDF.dtLangString.getURI();
|
||||
// private VitroRequest _vreq;
|
||||
/**
|
||||
* Construct the ProcessRdfForm object.
|
||||
|
@ -368,7 +369,8 @@ public class ProcessRdfForm {
|
|||
if (obj.isLiteral()) {
|
||||
Literal lit = obj.asLiteral();
|
||||
String lang = lit.getLanguage();
|
||||
if (! linguisticContext.equals(lang)) {
|
||||
if (langStringDatatypeUri.equals(lit.getDatatypeURI()) &&
|
||||
! linguisticContext.equals(lang)) {
|
||||
//UQAM Remove if linguisticContext != lang of the Literal
|
||||
model.remove(subj, pred, obj);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue