You can absolutely implement this in a RDBMS. There are some advantages to a proper graph database though.
But SPARQL is a dead-end - I don't think anyone is really using that in practice outside a dew public demonstration apps. To a large extent this is true of RDF too: triples are useful, RDF gets in the way.