diff --git a/src/main/java/gr/seab/r2rml/beans/Generator.java b/src/main/java/gr/seab/r2rml/beans/Generator.java index 907b056..a293d0f 100644 --- a/src/main/java/gr/seab/r2rml/beans/Generator.java +++ b/src/main/java/gr/seab/r2rml/beans/Generator.java @@ -338,9 +338,9 @@ public void createTriples(MappingDocument mappingDocument) { } } - for (String predicate : predicateObjectMap.getPredicates()) { + for (Template predicate : predicateObjectMap.getPredicates()) { - Property p = resultModel.createProperty(predicate); + Property p = resultModel.createProperty(util.fillTemplate(predicate, rs, encodeURLs)); if (objectTemplate != null && objectTemplate.getTermType() != TermType.AUTO) { //Literal o = resultModel.createLiteral(u.fillTemplate(predicateObjectMap.getObjectTemplate(), rs)); diff --git a/src/main/java/gr/seab/r2rml/beans/Parser.java b/src/main/java/gr/seab/r2rml/beans/Parser.java index a489f3a..96c92d1 100644 --- a/src/main/java/gr/seab/r2rml/beans/Parser.java +++ b/src/main/java/gr/seab/r2rml/beans/Parser.java @@ -279,11 +279,20 @@ public ArrayList createPredicateObjectMapsForResource(Resour PredicateObjectMap predicateObjectMap = new PredicateObjectMap(); NodeIterator iterPredicate = mapModel.listObjectsOfProperty(rnPredicateObject.asResource(), mapModel.getProperty(rrNs + "predicate")); - ArrayList predicates = new ArrayList(); + ArrayList