### Question:
InMemoryRepository extends RDFRepositoryBase { public Model getModel() { return model.getNamedModel(DEFAULT_GRAPH); } InMemoryRepository(); private  InMemoryRepository(SPARQLQueryBuilder sqb, UniqueURIGenerator uriGenerator); void addData(Model newData); Model getModel();  }### Answer:
@Test public void test_publication_has_record_id() throws Exception { String publication = "{\"@context\": {\"dcterms\": \"http: final Model inputModel = RDFModelUtil.modelFrom(publication, Lang.JSONLD); String publicationId = repository.createPublication(inputModel, A_BIBLIO_NO); Query query = QueryFactory.create("ASK {<" + publicationId + "> <" + BaseURI.ontology("recordId") + "> ?value .}"); QueryExecution qexec = QueryExecutionFactory.create(query,repository.getModel()); assertTrue(qexec.execAsk()); }