def METHOD_NAME(self):
    origin_org = OrganizationFactory()
    page_size = 3
    total = 4
    uri = url_for('api.organization_rdf', org=origin_org.id, _external=True)
    uri_first = url_for('api.organization_rdf_format', org=origin_org.id, format='json',
                        page=1, page_size=page_size, _external=True)
    uri_last = url_for('api.organization_rdf_format', org=origin_org.id, format='json',
                       page=2, page_size=page_size, _external=True)
    VisibleDatasetFactory.create_batch(total, organization=origin_org)
    # First page
    datasets = Dataset.objects.paginate(1, page_size)
    catalog = build_org_catalog(origin_org, datasets, format='json')
    graph = catalog.graph
    self.assertIsInstance(catalog, RdfResource)
    self.assertEqual(catalog.identifier, URIRef(uri))
    types = [o.identifier for o in catalog.objects(RDF.type)]
    self.assertIn(DCAT.Catalog, types)
    self.assertIn(HYDRA.Collection, types)
    self.assertEqual(catalog.value(HYDRA.totalItems), Literal(total))
    self.assertEqual(len(list(catalog.objects(DCAT.dataset))), page_size)
    paginations = list(graph.subjects(RDF.type,
                                      HYDRA.PartialCollectionView))
    self.assertEqual(len(paginations), 1)
    pagination = graph.resource(paginations[0])
    self.assertEqual(pagination.identifier, URIRef(uri_first))
    self.assertEqual(pagination.value(HYDRA.first).identifier, URIRef(uri_first))
    self.assertEqual(pagination.value(HYDRA.next).identifier, URIRef(uri_last))
    self.assertEqual(pagination.value(HYDRA.last).identifier, URIRef(uri_last))
    self.assertNotIn(HYDRA.previous, pagination)
    # Second page
    datasets = Dataset.objects.paginate(2, page_size)
    catalog = build_org_catalog(origin_org, datasets, format='json')
    graph = catalog.graph
    self.assertIsInstance(catalog, RdfResource)
    self.assertEqual(catalog.identifier, URIRef(uri))
    types = [o.identifier for o in catalog.objects(RDF.type)]
    self.assertIn(DCAT.Catalog, types)
    self.assertIn(HYDRA.Collection, types)
    self.assertEqual(catalog.value(HYDRA.totalItems), Literal(total))
    self.assertEqual(len(list(catalog.objects(DCAT.dataset))), 1)
    paginations = list(graph.subjects(RDF.type,
                                      HYDRA.PartialCollectionView))
    self.assertEqual(len(paginations), 1)
    pagination = graph.resource(paginations[0])
    self.assertEqual(pagination.identifier, URIRef(uri_last))
    self.assertEqual(pagination.value(HYDRA.first).identifier, URIRef(uri_first))
    self.assertEqual(pagination.value(HYDRA.previous).identifier, URIRef(uri_first))
    self.assertEqual(pagination.value(HYDRA.last).identifier, URIRef(uri_last))
    self.assertNotIn(HYDRA.next, pagination)