### Question:
RdfModelConverter { public Set<Fact> rdfModelToFacts(final Model model) { return model.stream().map((statement) -> rdfStatementToFact(statement)).collect(Collectors.toSet()); } RdfModelConverter();  RdfModelConverter(boolean skolemize, String triplePredicateName); Set<Fact> rdfModelToFacts(final Model model); void addAll(KnowledgeBase knowledgeBase, Model model); void addFacts(KnowledgeBase knowledgeBase, Model model); void addPrefixes(KnowledgeBase knowledgeBase, Model model); static final String RDF_TRIPLE_PREDICATE_NAME; }### Answer:
@Test public void getFactSet_succeeds() throws RDFParseException, RDFHandlerException, IOException, PrefixDeclarationException { RdfModelConverter rdfModelConverter = new RdfModelConverter(); Model model = RdfTestUtils.parseFile(new File(RdfTestUtils.INPUT_FOLDER + "test-turtle.ttl"), RDFFormat.TURTLE); Predicate predicate = Expressions.makePredicate("TRIPLE", 3); Term terma = Expressions.makeAbstractConstant("http: Term termb = Expressions.makeAbstractConstant("http: Term termc = Expressions.makeAbstractConstant("http: Fact fact = Expressions.makeFact(predicate, terma, termb, termc); Set<Fact> expected = new HashSet<Fact>(); expected.add(fact); Set<Fact> facts = rdfModelConverter.rdfModelToFacts(model); assertEquals(expected, facts); }