For a continuous function f : \({\mathbb{R}}\) → \({\mathbb{R}}\) we define the corresponding graph by setting Γf ≔ {(x1, f(x1)) : x1 ∈ \({\mathbb{R}}\) } . We give the optimal Sobolev extension properties for the upper and lower domains corresponding to the graph \({\Gamma }_{{\psi }_{c}^{\alpha }}\) for \({\psi }_{c}^{\alpha }\) (x1) = d(x1, \(\mathcal{C}\) )α, where \(\mathcal{C}\) is the classical ternary Cantor set in the unit interval and α ∈ (0, 1).