private List<StatementsPair> fakeMapping(){ Resource subjectPattern = new ResourceImpl(); Property predPattern = new PropertyImpl("http://www.recshop.fake/cd#year"); RDFNode objectPattern = new ResourceImpl(); StatementPattern pattern = new StatementPattern(subjectPattern, predPattern, objectPattern, true,false,true); Resource subject = new ResourceImpl(); Property pred = new PropertyImpl("http://www.recshop.fake/new#year"); RDFNode object = new ResourceImpl(); StatementPattern replacement = new StatementPattern(subject, pred, object, true,false,true); return asList( new StatementsPair(pattern, replacement) ); }
public static Property propertyForName(String name) { return new PropertyImpl(uri, name); }